Get a document
Changed onRequest
- Base URLhttps://api.talonic.com
- AuthHTTP bearer
Path parameters
Resource UUID.
Response
Document details.
Which converter produced the document's markdown. Present only when recorded. vision_fallback = OCR failed and Talonic read the file from its page images.
True when the markdown is NOT a verbatim transcription of the file (a summary, translation or truncated read after an OCR failure). Quotes and provenance from such text are never reported as verified. Present only when recorded.
Why the verbatim guard flagged the text. Present only when text_degraded is true.
Where the document is in processing, as stored. There is no processing value.
In progress, keep polling:
- pending, uploading, queued: waiting to start.
- extracting: the document is being read.
- ocr_retrying, retrying: a step failed and is being tried again.
- stage2_queued, batch_queued, batch_processing: the text is read and capturing the values is queued or running.
Finished:
- completed: the document was read and its values are available.
- extracted: the text was read. Final for a document processed for text only, otherwise a step before completed.
- uploaded: the file is stored and nothing else has run. Final for a document uploaded for storage only.
- duplicate: the file is identical to a document already in the workspace and is not read again. GET /v1/documents/{id}/fields returns that document's fields.
Failed:
- error: processing failed; the error field carries the message.
- ocr_failed, extract_failed: the file could not be read.
- extraction_failed: the file was read, but its values could not be captured.
- upload_failed: the file could not be stored.
- partial: processing stopped with an error after some values were captured.
Removed:
- deleted, disposed: the document was deleted or destroyed and only its record is kept.
Human-readable failure message. Present ONLY when status is error; omitted otherwise.
Number of fields captured from the document. 0 until extraction completes.
Compliance triage signals for the document. null until triage has run.
Folder path of the file at its source, when ingested from a connector.
Caller grouping key supplied at ingest (batch_id). Present ONLY when the document was tagged; omitted otherwise (backwards-compatible).
Caller flat metadata supplied at ingest. Present ONLY when the document was tagged; omitted otherwise (backwards-compatible).
Per-stage pipeline timing log (OCR, classify, extract). Present ONLY when at least one stage has been recorded; omitted otherwise.
Example response
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"filename": "contract-2024.pdf",
"pages": 12,
"size_bytes": 1048576,
"mime_type": "application/pdf",
"type_detected": "Service Contract",
"language_detected": "en",
"text_source": "ocr",
"text_degraded_reasons": [
"summary_phrasing",
"language_mismatch:en!=de"
],
"status": "completed",
"error": "Extraction failed",
"source": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"type": "manual"
},
"field_count": 42,
"triage": {
"sensitivity": "internal",
"department": "finance",
"jurisdiction": "DE",
"pii_detected": true,
"pii_categories": [
"name",
"email"
],
"confidentiality_marking": "Vertraulich"
},
"original_path": "/invoices/2026/04",
"batch_id": "2026-07-14-run-042",
"metadata": {
"customer": "bridgeway",
"source": "sftp"
},
"extraction_count": 1,
"latest_extraction_id": "d1a2b3c4-5678-9abc-def0-1234567890ab",
"processing_log": [
{
"step": "ocr",
"status": "completed",
"duration_ms": 3120
}
],
"created_at": "2026-04-25T14:30:00.000Z"
}Changes
- warning
added the new
batch_processingenum value to thestatusresponse property for the response status - warning
added the new
batch_queuedenum value to thestatusresponse property for the response status - warning
added the new
deletedenum value to thestatusresponse property for the response status
16 more changes in this revision
- warning