Skip to main content

talonic_to_markdown

Get OCR-converted markdown for a document. Accepts document_id (cheapest — no re-upload), file_data + filename, file_path, or file_url.

ParameterTypeDescription
document_idstringID of an already-ingested document (cheapest path).
file_datastringBase64-encoded file bytes. Pair with `filename`.
filenamestringOriginal filename with extension.
file_pathstringLocal file path.
file_urlstringRemote URL the API fetches server-side.

Example

Tool input
{
  "document_id": "doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c"
}
Tool response
# Invoice INV-2026-001

**Meridian Energy AG**
Musterstraße 42, 10115 Berlin

| Item                  | Amount     |
|-----------------------|------------|
| Consulting — April    | €1,200.00  |
| Travel expenses       | €300.00    |
| **Total**             | **€1,500.00** |

Due date: 15 June 2026
Payment terms: Net 30