Hanzo
OpenapiMarketing

Returns one of the caller org's sequences together with its steps in send order.

Returns one of the caller org's sequences together with its steps in send order.

GET /v1/marketing/sequences/{id}

Addresshttps://api.hanzo.ai/v1/marketing/sequences/{id}
MethodGET
Operationget_marketing_sequences_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Returns one of the caller org's sequences together with its steps in send order. A sequence belonging to another org reads as not found.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the sequence id from the path, as returned by create.

Response

StatusBodyMeaning
200SequenceViewok

200 body — 14 fields.

FieldInTypeAlwaysDescription
sequencebodySequence
sequence.createdAtbodyintegerCreatedAt is unix seconds when the sequence was registered, server-assigned and never rewritten.
sequence.idbodystringID is the server-assigned sequence id ("seq_" + 128 random bits).
sequence.namebodystringName is the sequence's label.
sequence.statusbodystringStatus is the lifecycle: draft, active or archived.
sequence.updatedAtbodyintegerUpdatedAt is unix seconds of the last status flip, server-assigned, and the key the sequence list is ordered by (newest first).
stepsbodyStep[]Steps are in send order (idx ascending); empty for a sequence with no messages yet, which enrolls fine and completes immediately.
steps[].bodybodystringBody is the message text.
steps[].createdAtbodyintegerCreatedAt is unix seconds, server-assigned.
steps[].delaySecondsbodyintegerDelaySeconds is how long after the previous step this one sends (after enrollment, for step 0).
steps[].idbodystringID is the server-assigned step id ("step_" + 128 random bits).
steps[].idxbodyintegerIdx is the step's 0-based position, assigned by appending: a new step always lands after the last one.
steps[].sequenceIdbodystringSequenceID is the sequence this step belongs to.
steps[].subjectbodystringSubject is the email subject line, capped at 1024 bytes.

Failure carries the platform error shape — see Errors.

Examples

hanzo marketing sequences get <id>

Marketing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page