Convert a document to Markdown
Convert a base64-encoded DOCX, XLSX, PPTX, ODF, EPUB, RTF, CSV, HTML or text file to Markdown with the Webfold document engine. The file travels in the request; the server never fetches a URL for this endpoint. Up to 25 MiB decoded. Metered as documents.convert. Set format or send a filename with a supported extension.
POST
/v1/documents/convertAuthorization
AuthorizationBearer token (JWT) · headerrequiredBearer API key issued for your account. Send Authorization: Bearer <key>.
Request body
requiredapplication/jsoncontent_base64stringrequiredThe file, base64 (standard alphabet). Up to 25 MiB decoded.
filenamestringUsed to infer the format from its extension.
formatstringOverrides the extension in filename.
Allowed:
docxdocmpptxxlsxxlsmxlsbxlsodtodpodsepubrtfcsvhtmlhtmtxtmdmarkdownResponses
200
The document as Markdown
formatstringrequiredbytesintegerrequiredcharactersintegerrequiredmarkdownstringrequired400
Bad request
string401
Missing or invalid bearer token
string403
Billing or plan entitlement blocked the request
string