Hanzo
OpenapiMarketing

Appends a message to the END of a sequence: the new step's idx is one past the…

Appends a message to the END of a sequence: the new step's idx is one past the last, so steps arrive in the order they are added.

POST /v1/marketing/sequences/{id}/steps

Addresshttps://api.hanzo.ai/v1/marketing/sequences/{id}/steps
MethodPOST
Operationpost_marketing_sequences_by_id_steps
AuthAuthorization: Bearer $HANZO_API_KEY

Appends a message to the END of a sequence: the new step's idx is one past the last, so steps arrive in the order they are added. Body is required and delaySeconds must be >= 0. Adding a step does not disturb enrollments already walking — one that has passed this index simply never sees it.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesSequenceID is the sequence id from the path (the route's :id).
bodybodystringBody is the message text.
delaySecondsbodyintegerDelaySeconds is how long after the previous step this one sends (after enrollment, for the first step).
idbodystringSequenceID is the sequence id from the path (the route's :id).
subjectbodystringSubject is the email subject line, capped at 1024 bytes.

Response

StatusBodyMeaning
200Stepok

200 body — 7 fields.

FieldInTypeAlwaysDescription
bodybodystringBody is the message text.
createdAtbodyintegerCreatedAt is unix seconds, server-assigned.
delaySecondsbodyintegerDelaySeconds is how long after the previous step this one sends (after enrollment, for step 0).
idbodystringID is the server-assigned step id ("step_" + 128 random bits).
idxbodyintegerIdx is the step's 0-based position, assigned by appending: a new step always lands after the last one.
sequenceIdbodystringSequenceID is the sequence this step belongs to.
subjectbodystringSubject is the email subject line, capped at 1024 bytes.

Failure carries the platform error shape — see Errors.

Examples

hanzo marketing sequences steps create <id>

Marketing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page