Delivery Config
Get and replace a Spec's delivery configuration: the outbound settings the pipeline uses when routing produced data to destinations after a run finishes.
The delivery config is the Spec outbound configuration. It captures how a finished run routes its produced data to destinations — the settings the Spec editor's Delivery stage edits. The GET endpoint reads the current config, and the POST endpoint replaces it wholesale. An unset config reads back as an empty object, which is the state of every freshly created Spec.
The config body is a free-form JSON object, so the exact keys depend on how your delivery is wired (bindings, formats, and destinations). The Spec stores the object under delivery_config and echoes the stored object back as the POST response. POST replaces the stored object rather than merging, so the safe editing pattern is read-modify-write: GET the current config, change the keys you want, and send the whole object back.
Note what this config is not: it does not create destinations or bindings by itself. Destinations (where data lands) and bindings (which signals fire deliveries) are managed by the delivery endpoints under /v1/delivery, and webhook subscriptions by /v1/webhooks. The Spec's delivery config carries the Spec-level shaping on top of that wiring — for example the export format and the mapping from Spec field names to the column headers a destination expects.
Reads require the read scope and writes the write scope, like the rest of the Spec-config surface. Both routes 404 for a schema id that does not exist under your organization — a foreign tenant's Spec is indistinguishable from a missing one.
/v1/schemas/{id}/delivery/v1/schemas/{id}/deliveryBody parameters
Read the config
curl -s https://api.talonic.com/v1/schemas/a1b2c3d4-e5f6-7890-abcd-ef1234567890/delivery \
-H "Authorization: Bearer tlnc_your_api_key"Replace the config
curl -X POST https://api.talonic.com/v1/schemas/a1b2c3d4-e5f6-7890-abcd-ef1234567890/delivery \
-H "Authorization: Bearer tlnc_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"format": "csv",
"destination_id": "9f8e7d6c-5b4a-3210-fedc-ba9876543210",
"field_map": {
"invoice_number": "Invoice #",
"total": "Amount"
}
}'Response
GET returns the stored delivery_config object, or {} when none is set. POST returns the config object as stored — not the whole Spec record — so a successful write echoes back what you sent.
Response (GET delivery)
{
"format": "csv",
"destination_id": "9f8e7d6c-5b4a-3210-fedc-ba9876543210",
"field_map": {
"invoice_number": "Invoice #",
"total": "Amount"
}
}Errors
Error responses