POST
/v1/postflows/{id}/flow/publishPublish the journey draft
Publishes the draft as the next version; new cards enter it, cards already in the journey keep their version. The first Send card step is mirrored on the Postflow. Refused while the draft has errors (flow_invalid with the issues). Fires postflow.flow_published.
Scope
postflows.writeIdempotent with a keyPath 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
revisionintegermin 0Returns
9 fields of the 200 answer
postflowIdstringrequiredbuilderbooleanrequiredWhether the plan has the flow builder
simplebooleanrequiredWhether the published journey is only "trigger, then Send card"
currentobjectrequired4 fields
versionIdstring or nullrequirednumberinteger or nullrequiredpublishedAtdate-time or nullrequireddefinitionobjectrequired2 fields
schemaVersionnumberrequiredstepsarray of one ofrequireddraftobject or nullrequired4 fields
definitionobjectrequired2 fields
schemaVersionnumberrequiredstepsarray of one ofrequiredrevisionintegerrequiredupdatedAtdate-time or nullrequiredupdatedByIdstring or nullrequiredrevisionintegerrequiredThe draft revision to send in If-Match
versionsarray of objectsrequired7 fields
idstringrequirednumberintegerrequiredpublishedAtdate-timerequiredpublishedByTypestringrequiredpublishedByIdstring or nullrequiredstepsintegerrequiredcurrentbooleanrequiredsigningSecretSetbooleanrequiredpublishedintegerrequiredResponses
200Success
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)
412The draft changed since the given revision (draft_conflict)
422Validation failed
429Rate limited for this API key and class; wait Retry-After seconds
otherError (RFC 9457 problem details)