Skip to main content

Get Markdown

Retrieve the markdown text representation of a processed document. The markdown includes headings, tables, and structured content extracted from the original file.

GET/v1/documents/:id/markdown

Path parameters

ParameterTypeDescription
idstringThe document ID

Example

curl https://api.talonic.com/v1/documents/doc_xyz789/markdown \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Use cases

The markdown endpoint is useful for building document previews, feeding content into LLMs, and creating searchable indexes. It complements the structured extraction data by preserving the document's original text layout.