POST
/v1/postflows/{id}/itemsCreate an item in a Postflow
Accepted with 202: the item starts HELD, or NEEDS_ATTENTION with warnings when the recipient or variables have content problems (repair in the portal or through PATCH), or SUPPRESSED when the address is on the suppression list. Test keys create test items.
Scope
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
recipientobjectrequired6 fields
namestringmax length 200addressLine1stringmax length 200addressLine2stringmax length 200postalCodestringmax length 20citystringmax length 120countrystringmax length 40variablesobjectdefault {}sendDatedateexternalIdstringmin length 1max length 200metadataobjectadvertisingCategorystring or nullReturns
33 fields of the 202 answer
idstringrequiredstatusenumrequiredNEEDS_ATTENTIONSUPPRESSEDHELDPENDING_APPROVALREADYSCHEDULED_FOR_RUNIN_PRODUCTIONCOMPLETEDFAILEDCANCELLEDRETURNEDNOT_SENTIN_FLOWDISQUALIFIEDCONTROL_GROUPcustomerStatusenumrequiredNEEDS_ATTENTIONSUPPRESSEDSCHEDULEDIN_PRODUCTIONHANDED_TO_CARRIERCOMPLETEDFAILEDCANCELLEDRETURNEDNOT_SENTIN_FLOWDISQUALIFIEDCONTROL_GROUPneedsAttentionbooleanrequiredwarningsarray of objectsrequired3 fields
codeenumrequiredaddress_invalidpostal_code_invalidhouse_number_missingcity_missingcountry_not_supporteddestination_not_supportedvariable_missingvariable_type_invalidvariable_too_longimage_fetch_failedimage_resolution_lowtext_overflowexpression_invalidlate_delivery_expectedwaiting_for_fundssuppressedcarrier_codes_missingexcluded_from_runrender_failedproduction_failedflow_step_failedfieldstringrequiredmessagestringrequiredsourceenumrequiredPOSTFLOWPOSTBATCHSAMPLEpostflowIdstring or nullrequiredpostbatchIdstring or nullrequiredtemplateVersionIdstring or nullrequiredproductobjectrequired4 fields
idstringrequiredspecificationIdstringrequiredfinishstringrequireddestinationstringrequiredadvertisingCategorystring or nullrequiredpostKindenumrequiredADVERTISING_CUSTOMERSADVERTISING_NON_CUSTOMERSNO_ADVERTISINGsuppressionReasonenum or nullrequiredlistpostfilterdeceasedresidentsbooleanrequiredisTestbooleanrequiredisSamplebooleanrequiredrecipientobject or nullrequired6 fields
namestringrequiredaddressLine1stringrequiredaddressLine2string or nullrequiredpostalCodestringrequiredcitystringrequiredcountrystringrequiredvariablesobject or nullrequiredsendDatedate or nullrequiredexternalIdstring or nullrequiredmetadataobject or nullrequiredcreatedAtdate-timerequiredupdatedAtdate-timerequiredreadyAtdate-time or nullrequiredscheduledAtdate-time or nullrequiredhandedToCarrierAtdate-time or nullrequiredcompletedAtdate-time or nullrequiredfailedAtdate-time or nullrequiredcancelledAtdate-time or nullrequiredanonymisedAtdate-time or nullrequiredqrobject or nullrequired4 fields
shortUrlstringrequiredscanCountintegerrequiredfirstScannedAtdate-time or nullrequiredlastScannedAtdate-time or nullrequiredpriceobject or nullrequired14 fields
idstringrequiredunitPriceCentsintegerrequiredlistUnitPriceCentsintegerrequiredcurrencystringrequireddiscountPercentnumber or nullrequiredtierQuantityintegerrequiredtierBasisenumrequiredpostbatchrolling30dbasisQuantityintegerrequiredvatTreatmentstringrequiredvatRateintegerrequiredpagesinteger or nullrequiredsheetsinteger or nullrequiredextraSheetCentsinteger or nullrequiredcomputedAtdate-timerequiredflowobject or nullrequired9 fields
versionIdstringrequiredstepIdstring or nullrequiredwakeAtdate-time or nullrequiredsendStepIdstring or nullrequiredlabelsarray of stringrequiredstoppedobject or nullrequired2 fields
stepIdstringrequiredreasonstringrequireddisqualifiedobject or nullrequired2 fields
stepIdstringrequiredreasonstringrequiredcontrolGroupobject or nullrequired1 fields
stepIdstringrequiredwebhookobject or nullrequired2 fields
attemptintegerrequiredlastErrorstring or nullrequiredResponses
202Success
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)