POST/v1/postflows/{id}/flow/test-drive

Drive a sample card through the journey

Runs the given definition, the draft or the published journey in memory: waits pass at once (their end is shown), webhook steps answer as given (default success without a body) and show the request without secrets, a frequency limit counts the given number. Nothing is stored, called, notified or sent. Needs the flow builder.

Scope postflows.read

Path parameters

idstringrequired

Body

definitionobject
2 fields
schemaVersionnumberrequired
stepsarray of objectsrequiredmin items 1
sourceenum
draftpublished
sampleobjectdefault {}
9 fields
cardIdstring
recipientobjectdefault {}
6 fields
namestringmax length 200
addressLine1stringmax length 200
addressLine2string or null
postalCodestringmax length 20
citystringmax length 120
countrystringmax length 2default "NL"
variablesobjectdefault {}
externalIdstring or null
metadataobject or null
sendDatedate or null
originenumdefault "api"
apiportalintegration
isTestbooleandefault false
contactobject or null
2 fields
addeddate or nulldefault null
attributesobjectdefault {}
nowdate-time
eventsobjectdefault {}
webhookResultsobjectdefault {}
frequencyCountintegermin 0max 1000default 0

Returns

9 fields of the 200 answer
issuesarray of objectsrequired
4 fields
stepIdstring or nullrequired
codestringrequired
messagestringrequired
severityenumrequired
errorwarning
patharray of objectsrequired
5 fields
stepIdstringrequired
typestringrequired
namestring or nullrequired
atdate-timerequired
outcomeobjectrequired
requestsarray of objectsrequired
6 fields
stepIdstringrequired
methodstringrequired
urlstringrequired
headersobjectrequired
bodystring or nullrequired
resultobjectrequired
3 fields
okbooleanrequired
statusinteger or nullrequired
errorstring or nullrequired
notificationsarray of objectsrequired
5 fields
stepIdstringrequired
titlestringrequired
bodystringrequired
rolesarray of stringrequired
userIdsarray of stringrequired
endobject or nullrequired
4 fields
kindenumrequired
senddisqualifycontrolstoppedwaitwebhook
stepIdstringrequired
reasonstring or nullrequired
atdate-timerequired
variablesobjectrequired
labelsarray of stringrequired
sendDatedate or nullrequired
sendobject or nullrequired
5 fields
templateIdstringrequired
templateNamestring or nullrequired
versionNumberinteger or nullrequired
warningsarray of objectsrequired
3 fields
codeenumrequired
address_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_failed
fieldstringrequired
messagestringrequired
variablesobjectrequired

Responses

200Success
401Authentication required or API key invalid
403Permission or scope missing, organisation suspended
404Not found
422Validation failed
429Rate limited for this API key and class; wait Retry-After seconds
otherError (RFC 9457 problem details)