Delivery Endpoint Reference
Reference for 3 Delivery endpoints of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.
Outbound delivery. Configure destinations (six live connectors: webhook, sftp, s3, azure_blob, google_drive, onedrive), create bindings that join signal filters to deliverable types + destinations + serializers, and inspect the history/DLQ/events log. Every delivery is at-least-once with an idempotency key on the wire. ## Webhook Contract Event payload: ``json { "event": { "event_type": "document.extracted", "event_id": "42", "binding_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "idempotency_key": "c9f3a7e1b2d4f6a8e0c2d4f6a8e0c2d4", "attempt": 1, "delivered_at": "2026-04-25T14:30:00.000Z" }, "payload": { "document_id": "...", "data": { "...extracted fields..." } } } ` **Event types:** document.extracted (deliver with the document.capture deliverable for the raw field map; its payload gains optional metadata/ batch_id read from the document's own client_metadata/client_batch_id columns — document-scoped, not request-scoped, since this deliverable has no run-request context; present only when set), document.extraction_failed, document.structured (per-document structured fields from a Spec pipeline / /v1/run; deliver with the pipeline.capture deliverable — its payload carries run_id (null outside /v1/run), document_id, pipeline_id, fields for submission correlation, and optional metadata/batch_id; for a /v1/run-attributed document these read the ATTRIBUTED REQUEST's per-input merged bag first — correct under byte-identical dedup and append, where the canonical documents row can carry a different submission's tags — falling back to the documents row when no request is attributed; present only when set), run.dataspace.completed, run.dataspace.failed, result.dataspace.completed, result.dataspace.failed, run.structuring.completed, run.structuring.failed, run.resolution.completed, run.resolution.failed, run.extraction.completed, run.extraction.failed, result.flagged, result.approved, result.rejected, delivery.item.completed, delivery.item.failed, dispatch.row.requested (a Spec Dispatch node was manually triggered at row grain — one signal per record; payload carries pipeline_id, spec_id, stage_id, dispatch_id, row_source (document | product), document_id and optional product_record_id; deliver with the pipeline.capture deliverable), dispatch.pipeline.requested (manual Dispatch at pipeline grain — one signal per chunk of structured rows; payload carries pipeline_id, spec_id, stage_id, dispatch_id, scope (all | changed_since), chunk ({ index, count }) and record_count; deliver with pipeline.rows), dispatch.assembly.requested (same payload, assembled records; deliver with pipeline.assembly_product), dispatch.matcher.requested (same payload, matched records; deliver with pipeline.matcher_product), dispatch.data_product.requested (manual Dispatch at data-product grain — one signal per dispatch; payload carries pipeline_id, spec_id, stage_id, dispatch_id and data_product_id; deliver with data_product.export), pipeline.completed (a Spec run finished every step; payload carries pipeline_id, schema_id and optional run_request_id/ document_ids for the submitting POST /v1/run request; deliver with the pipeline.rows deliverable), pipeline.failed (a Spec run terminated with a fatal error; payload carries the error object plus optional run_request_id and schema_id — pipeline_id is null when the failure preceded pipeline creation, in which case the run-request id is the only handle; deliver with the notification deliverable). **Typed structured values:** pipeline.completed and document.structured emit typed field values natively — a field backed by a structured subschema arrives as an array of objects (e.g. [{"label":"BoL","value":"123"}]), not a stringified scalar, and each object's subfields are typed per their declared subfield data_type. A consumer that assumes every field value is a scalar breaks silently on such a field; that is the consumer's contract violation, not a payload change. document.extracted is unaffected — its arrays are pre-flattened at the capture layer. The same subfield typing applies on json/ndjson delivery and on the /v1 poll — GET /v1/run/{id}/results and GET /v1/pipelines/{id}/results, both the fields map and the ?include=cells cells[].value — so the poll and the webhook agree. Per-subfield miss behavior follows the wire form of the declared type: a number or boolean subfield value that fails to parse emits null (these types have no string wire form, so the wire stays strictly number-or-null / boolean-or-null); an enum or date subfield value that is out-of-vocabulary or unparseable passes through as its raw string (these types ARE string-typed on the wire, so a present value is never dropped). A nested array or object subfield value passes through raw. The audit[].value view is the deliberate raw history view and is never type-projected. Every extraction WIRE leaf remains string-typed — subfield typing is derived at this outbound edge, not carried on the extraction wire. **Signature verification (HMAC-SHA256):** Header: X-Talonic-Signature: t=1714060200000,v1=abc123... `javascript const crypto = require('crypto'); const [tPart, vPart] = signature.split(','); const timestamp = tPart.split('=')[1]; const received = vPart.split('=')[1]; const expected = crypto.createHmac('sha256', signingSecret) .update(timestamp + '.' + rawBody).digest('hex'); const valid = crypto.timingSafeEqual( Buffer.from(received), Buffer.from(expected)); ` **Retry policy:** Up to 7 attempts — 0s, 30s, 2m, 8m, 30m, 2h, 8h (~10.5h total). HTTP 429/5xx are retryable. HTTP 4xx (except 408) goes to DLQ immediately. **Dead-letter queue recovery:** When all retries are exhausted, the delivery lands in the DLQ. List failed deliveries with GET /v1/delivery/dlq (filterable by binding_id and error_code). Inspect a single entry with GET /v1/delivery/dlq/{id}. Replay with POST /v1/delivery/dlq/{id}/replay` — this deletes the DLQ entry, re-signs the payload with the current signing secret, resets the retry counter to attempt 1, and re-enqueues the delivery through the full backoff ladder.
Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.
/v1/delivery/dlqQuery parameters
curl
curl -X DELETE 'https://api.talonic.com/v1/delivery/dlq' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/delivery/dlq", {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
},
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();Response 200 — Rows removed.
{
"deleted": 1
}- 401 — Missing or invalid API key.
- 429 — Daily rate limit exceeded.
/v1/delivery/dlq/{id}Path parameters
curl
curl -X GET 'https://api.talonic.com/v1/delivery/dlq/a1b2c3d4-e5f6-7890-abcd-ef1234567890' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/delivery/dlq/a1b2c3d4-e5f6-7890-abcd-ef1234567890", {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
},
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();Response 200 — Dead-letter detail.
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"customer_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"binding_id": "d0e1f2a3-b4c5-6789-defa-890123456789",
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_item_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"error_code": "delivery_timeout",
"error_message": "string",
"attempts": 1,
"created_at": "2026-04-25T14:30:00.000Z"
}- 401 — Missing or invalid API key.
- 404 — The requested resource was not found.
- 429 — Daily rate limit exceeded.
/v1/exports/{path}Path parameters
/v1/exports/.curl
curl -X GET 'https://api.talonic.com/v1/exports/path' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/exports/path", {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
},
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 2xx: no JSON body- 410 — Gone — use
/v1/delivery/bindings(and/v1/delivery/destinations) instead.