Documents
get/v1/documents

Request

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

Query parameters

limit, integer

Maximum number of items to return (1–100).

cursor, string

Opaque pagination cursor from a previous response's pagination.next_cursor.

order, 'asc' | 'desc'

Sort order by creation date.

source_id, string uuid
Example:a1b2c3d4-e5f6-7890-abcd-ef1234567890

Filter by source connection ID.

source_type, string

Filter by source type (e.g. api, manual).

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'

Filter by document status, matched exactly. The values are those of status on the document response; there is no processing value.

text_degraded, 'true' | 'false'

Only documents whose markdown is (true) or is not (false) flagged as a non-verbatim transcription.

text_source, 'ocr' | 'local_parser' | 'vision_fallback'

Filter by the converter that produced the markdown.

after, string date-time

Return documents created after this timestamp (ISO 8601).

before, string date-time

Return documents created before this timestamp (ISO 8601).

search, string

Case-insensitive filename search.

Response

Paginated list of documents.

intersection required
object
data, DocumentResponse[]

Example response

{
  "pagination": {
    "total": 142,
    "limit": 20,
    "has_more": true,
    "next_cursor": "ZDFhMmIzYzR8MjAyNi0wNC0wM1QxMjowMDowMC4wMDBa"
  },
  "data": [
    {
      "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

    • breaking

      removed the enum value processing from the query request parameter status

    • warning

      added the new batch_processing enum value to the allOf[subschema #2]/data/items/status response property for the response status

    • warning

      added the new batch_queued enum value to the allOf[subschema #2]/data/items/status response property for the response status

    34 more changes in this revision