Get the OCR-converted markdown of a document
Changed onReturns the full markdown representation produced by OCR for the document. Equivalent to passing include_markdown=true on /v1/extract, but callable at any time after OCR has completed. Useful for PDF-to-markdown conversion without requiring a schema or re-running extraction.
Returns 404 if the document does not exist, is still being processed, or is an image that did not produce OCR output.
A document ingested by /v1/run under a Spec whose Source stage sets markdown_policy: on_demand is stored without OCR. The first call to this endpoint starts its OCR and waits a short, bounded time for it: 200 with the markdown when it finishes in time, otherwise 202 with a Retry-After header (seconds); call again after that delay.
Request
- Base URLhttps://api.talonic.com
- AuthHTTP bearer
Path parameters
Resource UUID.
Response
Document markdown.
ID of the document the markdown was produced from.
Full OCR-converted markdown body.
Example response
{
"document_id": "f0e1d2c3-b4a5-9687-8765-432109876543",
"markdown": "# Invoice INV-2024-0042\nVendor: Acme Corp..."
}Changes
- info
added the success response with the status
- info