Get Document
Retrieve a single document by ID with GET /v1/documents/:id: processing status, detected type and language, triage metadata, and extraction links.
The Get Document endpoint, GET /v1/documents/:id, retrieves the full metadata for one document in your Talonic workspace: processing status, detected document type and language, file size and page count, triage information, and links to its extractions. It is the polling target for checking when a document finishes processing. The response also includes a dashboard link for viewing the document in the Talonic platform UI.
/v1/documents/:idcurl
Response
Response fields
Response
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"filename": "invoice-0847.pdf",
"pages": 2,
"size_bytes": 184320,
"mime_type": "application/pdf",
"type_detected": "invoice",
"language_detected": "en",
"status": "completed",
"source": {
"id": null,
"type": "manual"
},
"triage": {
"sensitivity": "internal",
"department": "finance",
"jurisdiction": "EU",
"pii_detected": false,
"pii_categories": [],
"regulated_data": false,
"confidentiality_marking": null
},
"original_path": null,
"extraction_count": 1,
"latest_extraction_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"created_at": "2024-09-14T10:32:00.000Z",
"links": {
"self": "/v1/documents/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"extractions": "/v1/documents/a1b2c3d4-e5f6-7890-abcd-ef1234567890/extractions",
"dashboard": "https://app.talonic.com/documents/a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}Most integrations call this endpoint after receiving an extraction.complete webhook or after polling a document's status until it reaches completed. A typical workflow is to extract a document via POST /v1/extract, store the returned document.id, then fetch full metadata here when needed.
The response includes the current status field which will be completed when extraction has finished, processing while in progress, or error if something went wrong. Use the latest_extraction_id to navigate directly to the extraction result via GET /v1/extractions/:id.
Pair this with GET /v1/documents/:id/markdown to retrieve the raw OCR text, or with GET /v1/extractions/:id/data for just the structured field values. To list every extraction a document has, call GET /v1/documents/:id/extractions. Note that the triage object is only populated after ingestion completes and may be null for documents still in processing.
links.dashboard URL opens the document directly in the Talonic platform UI, which is useful for sharing with team members who need to review or correct extractions.Errors
Error responses