POST/v1/postflows/{id}/items/files/start

Start a file of items for a Postflow

The uploaded file becomes an ingestion, answered 202: a job scans it, reads it as a stream and makes its cards with the single create's rules. Poll GET /v1/ingestions/{id} or wait for the ingestion.completed webhook. Starting the same upload again answers the same ingestion. Under load new files are refused with 429 ingestions_busy and Retry-After.

Scope items.writeIdempotent with a keyRate limit class upload

Path parameters

idstringrequired

Headers

Idempotency-Keystringmax length 255

Up to 255 characters, scoped to the organisation and the endpoint, kept for 24 hours: a repeat with the same body replays the stored response with Idempotent-Replayed: true (API-004).

Body

uploadIdstringrequiredmin length 1max length 40

Returns

13 fields of the 202 answer
idstringrequired
kindenumrequired
postflow_batchpostflow_file
statusenumrequired
UPLOADEDPARSINGPROCESSINGDONEFAILEDCANCELLEDEXPIRED
postflowIdstringrequired
formatenumrequired
jsonndjsoncsv
isTestbooleanrequired
countsobjectrequired
7 fields
totalintegerrequired
processedintegerrequired
createdintegerrequired
needsAttentionintegerrequired
suppressedintegerrequired
duplicatesintegerrequired
refusedintegerrequired
errorsarray of objectsrequired
2 fields
codestringrequired
messagestringrequired
errorFileobject or nullrequired
2 fields
rowsintegerrequired
pathstringrequired
createdAtstringrequired
startedAtstring or nullrequired
finishedAtstring or nullrequired
purgedAtstring or nullrequired

Responses

202The file was accepted
401Authentication required or API key invalid
403Permission or scope missing, organisation suspended
404Not found
409A request with this Idempotency-Key is still in progress (idempotency_in_progress)
422Validation failed
429Rate limited for this API key and class; wait Retry-After seconds
otherError (RFC 9457 problem details)