API reference
API reference
Every operation of the markitdown.ai API v1 (37 endpoints), generated from the OpenAPI 3.1 document, with a playground on each page.
What is in this reference?
Base URL https://api.markitdown.ai/v1. Each page below is generated from https://api.markitdown.ai/openapi.json (version 2.0.0) and lists the parameters, request body and responses of one operation. The per-format estimate endpoints share one page, and every error code is in one table at /docs/errors. Hand-written guides live under Documentation.
Convert
- POST/v1/convert/excelConvert Excel to Markdown
- POST/v1/convert/htmlConvert HTML to Markdown
- POST/v1/convert/imageConvert an image to Markdown
- POST/v1/convert/markdown/htmlConvert Markdown to HTML
- POST/v1/convert/markdown/textConvert Markdown to plain text
- POST/v1/convert/pdfConvert PDF to Markdown
- POST/v1/convert/powerpointConvert PowerPoint to Markdown
- POST/v1/convert/textConvert text to Markdown
- POST/v1/convert/urlConvert a web page to Markdown
- POST/v1/convert/wordConvert Word to Markdown
- POST/v1/convert/{name}/estimateEstimate credits for any conversion
Conversions
- GET/v1/conversionsList conversions
- GET/v1/conversions/{id}Get a conversion
- DELETE/v1/conversions/{id}Delete a conversion and its files
- GET/v1/conversions/{id}/eventsServer-Sent Events progress stream
- GET/v1/conversions/{id}/filesList a conversion's source files (with their outputs)
- GET/v1/conversions/{id}/files/{file_id}Get one file
- GET/v1/conversions/{id}/files/{file_id}/contentDownload a file's content (source preview or output body)
- POST/v1/conversions/{id}/files/{file_id}/retryRetry a failed source file
Uploads
Webhooks
Formats
Usage
Sources and specs: RFC 9110: HTTP Semantics · RFC 7763: The text/markdown Media Type