POST/v1/postflows

Create 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 key

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

namestringrequiredmin length 1max length 160
descriptionstringmax length 2000
templateIdstringrequiredmin length 1
versionPolicyenumdefault "LATEST_PUBLISHED"
LATEST_PUBLISHEDPINNED
pinnedVersionIdstringmin length 1
finishstringrequiredmin length 1max length 40
destinationstringmin length 2max length 2default "NL"
dispatchobjectdefault {"strategy":"IMMEDIATE","strictMinimum":false}
4 fields
strategyenumdefault "IMMEDIATE"
IMMEDIATESEND_DATEMIN_COUNT_MAX_WAIT
minCountintegermin 1max 1000000
maxWaitDaysintegermin 1max 365
strictMinimumbooleandefault false
requiresApprovalboolean
advertisingCategorystring or null
pixelTriggerobject or null
5 fields
eventstringrequired
conditionsarray of objectsmax items 10default []
3 fields
propertystringrequired
openumrequired
eqneqcontainsgtgteltlteexists
valueone of
countobject or nulldefault null
2 fields
timesintegerrequiredmin 2max 1000
daysintegerrequiredmin 1max 365
absenceobject or nulldefault null
2 fields
eventstringrequired
daysintegerrequiredmin 1max 365
cooldownDaysintegermin 0max 365default 30
contactDateTriggerobject or null
4 fields
fieldstringrequired

`added`, or `attributes.` followed by the name of a contact field

directionenumrequired
beforeonafter
daysintegerrequiredmin 0max 365
annualbooleanrequired

Every year (a birthday) or once (a renewal date)

attributionWindowDaysintegermin 1max 180default 30
postKindenum
ADVERTISING_CUSTOMERSADVERTISING_NON_CUSTOMERSNO_ADVERTISING

Returns

21 fields of the 201 answer
idstringrequired
namestringrequired
descriptionstring or nullrequired
statusenumrequired
ACTIVEPAUSEDARCHIVED
templateIdstringrequired
versionPolicyenumrequired
LATEST_PUBLISHEDPINNED
pinnedVersionIdstring or nullrequired
productIdstringrequired
productSpecificationIdstringrequired
finishstringrequired
destinationstringrequired
dispatchobjectrequired
4 fields
strategyenumrequired
IMMEDIATESEND_DATEMIN_COUNT_MAX_WAIT
minCountinteger or nullrequired
maxWaitDaysinteger or nullrequired
strictMinimumbooleanrequired
requiresApprovalboolean or nullrequired
advertisingCategorystring or nullrequired
flowVersionIdstring or nullrequired
pixelTriggerobject or nullrequired
5 fields
eventstringrequired
conditionsarray of objectsrequiredmax items 10
3 fields
propertystringrequired
openumrequired
eqneqcontainsgtgteltlteexists
valueone of
countobject or nullrequired
2 fields
timesintegerrequiredmin 2max 1000
daysintegerrequiredmin 1max 365
absenceobject or nullrequired
2 fields
eventstringrequired
daysintegerrequiredmin 1max 365
cooldownDaysintegerrequiredmin 0max 365
contactDateTriggerobject or nullrequired

E118-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

directionenumrequired
beforeonafter
daysintegerrequiredmin 0max 365
annualbooleanrequired

Every year (a birthday) or once (a renewal date)

attributionWindowDaysintegerrequired
postKindenumrequired
ADVERTISING_CUSTOMERSADVERTISING_NON_CUSTOMERSNO_ADVERTISING
createdAtdate-timerequired
updatedAtdate-timerequired

Responses

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)