Process

Submit a document for processing

Deprecated: prefer /v1/pipelines for new integrations; this endpoint remains supported.

Upload a document and trigger a configured processing pipeline. Always returns 202. Results delivered via process.completed webhook.

Idempotency is automatic: the same (config_id, batch_id, file) combination returns the existing run without re-processing. If batch_id is absent, dedup applies within a 24-hour window.

post/v1/process

Request

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

Request body multipart/form-data

object required
config_id, string required

Processing configuration ID (from GET /v1/configs).

batch_id, string

Optional batch identifier. Enables permanent dedup for this (config, batch, file) triple.

file, string binary required

Document file to process. Max 500 MB.

metadata, string

Optional JSON string with additional metadata.

Example request

{
  "config_id": "cfg_bridgeway_invoice_v1",
  "batch_id": "BW-2026-0512-001"
}

Response

Idempotency hit — returning existing run result.

RunResponse required
run_id, string uuid
status, 'pending' | 'running' | 'step_extract' | 'step_structure' | 'step_reconcile' | 'completed' | 'failed'
config_id, string
batch_id, string
created_at, string date-time
started_at, string date-time
completed_at, string date-time
duration_ms, integer
current_step, string
markdown, string

OCR-converted markdown (on completion).

structured_data, union

Structured extraction results (on completion). Shape forks on document count: a SINGLE-document run returns one flat field_key -> value object; a MULTI-document run returns an array of those row objects. A review-held cell arrives as null. Values are the typed projection (subfields cast to their declared types), matching the run.completed webhook byte-for-byte. Prefer records[] for new integrations — it is always an array and binds each row to its source document.

reconciliation, object

Reconciliation results (on completion).

error, object

Error detail (on failure).

Example response

{
  "structured_data": {
    "invoice_date": "2026-08-07",
    "carrier_name": "ACME LOGISTICS",
    "total_carrier_pay": "1400.00",
    "bill_to_name": null
  }
}

Changes

No recorded changes to this operation across all 32 revisions of this API.