POST
/v1/postflowsCreate a Postflow
The product follows from the template; the template needs a published version. Pause, resume, archive, stats and the list arrive with the next release.
Scope
postflows.writeIdempotent with a keyHeaders
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
namestringrequiredmin length 1max length 160descriptionstringmax length 2000templateIdstringrequiredmin length 1versionPolicyenumdefault "LATEST_PUBLISHED"LATEST_PUBLISHEDPINNEDpinnedVersionIdstringmin length 1finishstringrequiredmin length 1max length 40destinationstringmin length 2max length 2default "NL"dispatchobjectdefault {"strategy":"IMMEDIATE","strictMinimum":false}4 fields
strategyenumdefault "IMMEDIATE"IMMEDIATESEND_DATEMIN_COUNT_MAX_WAITminCountintegermin 1max 1000000maxWaitDaysintegermin 1max 365strictMinimumbooleandefault falserequiresApprovalbooleanadvertisingCategorystring or nullpixelTriggerobject or null5 fields
eventstringrequiredconditionsarray of objectsmax items 10default []3 fields
propertystringrequiredopenumrequiredeqneqcontainsgtgteltlteexistsvalueone ofcountobject or nulldefault null2 fields
timesintegerrequiredmin 2max 1000daysintegerrequiredmin 1max 365absenceobject or nulldefault null2 fields
eventstringrequireddaysintegerrequiredmin 1max 365cooldownDaysintegermin 0max 365default 30contactDateTriggerobject or null4 fields
fieldstringrequired`added`, or `attributes.` followed by the name of a contact field
directionenumrequiredbeforeonafterdaysintegerrequiredmin 0max 365annualbooleanrequiredEvery year (a birthday) or once (a renewal date)
attributionWindowDaysintegermin 1max 180default 30postKindenumADVERTISING_CUSTOMERSADVERTISING_NON_CUSTOMERSNO_ADVERTISINGReturns
21 fields of the 201 answer
idstringrequirednamestringrequireddescriptionstring or nullrequiredstatusenumrequiredACTIVEPAUSEDARCHIVEDtemplateIdstringrequiredversionPolicyenumrequiredLATEST_PUBLISHEDPINNEDpinnedVersionIdstring or nullrequiredproductIdstringrequiredproductSpecificationIdstringrequiredfinishstringrequireddestinationstringrequireddispatchobjectrequired4 fields
strategyenumrequiredIMMEDIATESEND_DATEMIN_COUNT_MAX_WAITminCountinteger or nullrequiredmaxWaitDaysinteger or nullrequiredstrictMinimumbooleanrequiredrequiresApprovalboolean or nullrequiredadvertisingCategorystring or nullrequiredflowVersionIdstring or nullrequiredpixelTriggerobject or nullrequired5 fields
eventstringrequiredconditionsarray of objectsrequiredmax items 103 fields
propertystringrequiredopenumrequiredeqneqcontainsgtgteltlteexistsvalueone ofcountobject or nullrequired2 fields
timesintegerrequiredmin 2max 1000daysintegerrequiredmin 1max 365absenceobject or nullrequired2 fields
eventstringrequireddaysintegerrequiredmin 1max 365cooldownDaysintegerrequiredmin 0max 365contactDateTriggerobject or nullrequiredE118-01: the date of a contact when it is the entry, else null
4 fields
fieldstringrequired`added`, or `attributes.` followed by the name of a contact field
directionenumrequiredbeforeonafterdaysintegerrequiredmin 0max 365annualbooleanrequiredEvery year (a birthday) or once (a renewal date)
attributionWindowDaysintegerrequiredpostKindenumrequiredADVERTISING_CUSTOMERSADVERTISING_NON_CUSTOMERSNO_ADVERTISINGcreatedAtdate-timerequiredupdatedAtdate-timerequiredResponses
201Success
401Authentication required or API key invalid
403Permission or scope missing, organisation suspended
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)