Convert Document to Markdown
curl --request POST \
--url https://api.zerodrive.dev/v1/files/convert-markdown \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "Docs/guide.pdf",
"save_path": "Docs/guide.md"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: 'Docs/guide.pdf', save_path: 'Docs/guide.md'})
};
fetch('https://api.zerodrive.dev/v1/files/convert-markdown', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/files/convert-markdown"
payload = {
"path": "Docs/guide.pdf",
"save_path": "Docs/guide.md"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Convert Document to Markdown
Extract clean Markdown from .pdf, .docx, .pptx, .xlsx, .odt, .ods, or .odp files up to 15 MB.
POST
https://api.zerodrive.dev
/
v1
/
files
/
convert-markdown
Convert Document to Markdown
curl --request POST \
--url https://api.zerodrive.dev/v1/files/convert-markdown \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "Docs/guide.pdf",
"save_path": "Docs/guide.md"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: 'Docs/guide.pdf', save_path: 'Docs/guide.md'})
};
fetch('https://api.zerodrive.dev/v1/files/convert-markdown', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/files/convert-markdown"
payload = {
"path": "Docs/guide.pdf",
"save_path": "Docs/guide.md"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Authorizations
Body
application/json
Response
Extracted markdown text and optional saved path
The response is of type object.

