Documents
get/v1/documents/{id}

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

id, string uuid required
Example:a1b2c3d4-e5f6-7890-abcd-ef1234567890

Resource UUID.

Response

Document details.

DocumentResponse required
id, string uuid required
filename, string required
pages, integer
size_bytes, integer
mime_type, string
type_detected, string nullable
language_detected, string nullable
text_source, 'ocr' | 'local_parser' | 'vision_fallback'

Which converter produced the document's markdown. Present only when recorded. vision_fallback = OCR failed and Talonic read the file from its page images.

text_degraded, boolean

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.

text_degraded_reasons, string[]

Why the verbatim guard flagged the text. Present only when text_degraded is true.

status, 'pending' | 'uploading' | 'queued' | 'uploaded' | 'extracting' | 'ocr_retrying' | 'retrying' | 'stage2_queued' | 'batch_queued' | 'batch_processing' | 'extracted' | 'completed' | 'duplicate' | 'partial' | 'error' | 'ocr_failed' | 'extraction_failed' | 'extract_failed' | 'upload_failed' | 'deleted' | 'disposed' required

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.
error, string

Human-readable failure message. Present ONLY when status is error; omitted otherwise.

source, object
field_count, integer

Number of fields captured from the document. 0 until extraction completes.

triage, object nullable

Compliance triage signals for the document. null until triage has run.

original_path, string nullable

Folder path of the file at its source, when ingested from a connector.

batch_id, string

Caller grouping key supplied at ingest (batch_id). Present ONLY when the document was tagged; omitted otherwise (backwards-compatible).

metadata, object

Caller flat metadata supplied at ingest. Present ONLY when the document was tagged; omitted otherwise (backwards-compatible).

extraction_count, integer
latest_extraction_id, string uuid nullable
processing_log, object[]

Per-stage pipeline timing log (OCR, classify, extract). Present ONLY when at least one stage has been recorded; omitted otherwise.

created_at, string date-time required
links, object

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_processing enum value to the status response property for the response status

    • warning

      added the new batch_queued enum value to the status response property for the response status

    • warning

      added the new deleted enum value to the status response property for the response status

    16 more changes in this revision