/v1/postflows/{id}/items/batchCreate items in a Postflow in one batch
Up to 5,000 items or 20 MB, each the body of a single create. The batch is checked as a whole (the Postflow, the Idempotency-Key) and answered 202 with an ingestion; its items are made by a job with the single create's rules, in order. Read each item's outcome (its card or the reason it was refused) from GET /v1/ingestions/{id} and its rows, the error file or the ingestion.completed webhook. Duplicates within the batch (the same address, or the same externalId) make no card. The same Idempotency-Key with the same body answers the same ingestion. Counts toward the itemCreate rate limit by its items: a batch is let in while the minute has room left and then counts in full. Under load new batches are refused with 429 ingestions_busy and Retry-After.
items.writeIdempotent with a keyRate limit class itemCreatePath parameters
idstringrequiredHeaders
Idempotency-Keystringmax length 255Up 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
itemsarray of objectsrequiredmin items 1max items 50006 fields
recipientobjectrequired6 fields
namestringmax length 200addressLine1stringmax length 200addressLine2stringmax length 200postalCodestringmax length 20citystringmax length 120countrystringmax length 40variablesobjectdefault {}sendDatedateexternalIdstringmin length 1max length 200metadataobjectadvertisingCategorystring or nullReturns
13 fields of the 202 answer
idstringrequiredkindenumrequiredpostflow_batchpostflow_filestatusenumrequiredUPLOADEDPARSINGPROCESSINGDONEFAILEDCANCELLEDEXPIREDpostflowIdstringrequiredformatenumrequiredjsonndjsoncsvisTestbooleanrequiredcountsobjectrequired7 fields
totalintegerrequiredprocessedintegerrequiredcreatedintegerrequiredneedsAttentionintegerrequiredsuppressedintegerrequiredduplicatesintegerrequiredrefusedintegerrequirederrorsarray of objectsrequired2 fields
codestringrequiredmessagestringrequirederrorFileobject or nullrequired2 fields
rowsintegerrequiredpathstringrequiredcreatedAtstringrequiredstartedAtstring or nullrequiredfinishedAtstring or nullrequiredpurgedAtstring or nullrequired