Skip to main content

Sequences

Sequences live at Dashboard → CRM → Sequences: outbound plays made of ordered steps, sent through mailboxes to enrolled contacts. All calls need a Bearer JWT and an X-Workspace-Id header.

Sequences and steps

A sequence has a name, an optional description, and a status: draft / active / paused / archived. The list shows each sequence's step count and active-enrollment count. The portal offers a name-only create form; clicking a row expands its steps and exposes Mark draft / active / paused buttons plus delete (deleting removes steps, enrollments, and their events).

Each step has:

  • position — order in the sequence; omit it and the step appends to the end
  • kind — the step type (e.g. email, call, task)
  • subject / body — the content; the portal shows subject first, then body
  • delay_days — wait after the previous step, shown as "+Nd"

Steps are edited and deleted individually by step id — the API scopes every step operation to sequences in your workspace, so a step id from another workspace returns 404.

Mailboxes and the send cap

A mailbox is a sending identity: name, email, and a daily_cap. Enrollments optionally reference a mailbox. The workspace send cap is not a setting — it is the honest sum of every mailbox's daily cap, served by GET /api/sequences/sendcap (also available as /send-cap). Add or re-cap a mailbox and the workspace cap moves with it.

Enrollments, states, and replies

An enrollment puts a contact (name + email, optional mailbox) into a sequence at step 0. Enrollment states are active / paused / replied / bounced / unsubscribed / completed. Pause and resume by patching the state; you can also move the enrollment to a different step with current_step in the same call.

When a contact replies, record it with the reply endpoint: the enrollment moves to repliedand a reply event is logged in one call — so the reply both stops the play and leaves a trail. Every enrollment also accepts free-form events (sent, opened, clicked, bounced, custom kinds) with a detail string, listed oldest-first as the enrollment's timeline.

Guardrail interaction

The portal frames sequences as "outreach with approvals on sends". Before an agent sends a step, it checks the proposed send against your guardrail rules — a first-of-kind send or a flagged account can route to approval instead of going out. See the Guardrails guide for rule kinds and verdicts.

API pointers

MethodPathWhat it does
GET/api/sequencesList; optional status filter; includes step + enrolled counts
POST/api/sequencesCreate a sequence
GET/api/sequences/sendcapWorkspace daily cap = sum of mailbox caps (alias: /send-cap)
GET/api/sequences/mailboxesList sending mailboxes
POST/api/sequences/mailboxesAdd a mailbox with a daily cap
GET/api/sequences/{id}Sequence summary
GET/api/sequences/{id}/detailSequence + steps + recent enrollments
PATCH/api/sequences/{id}Rename, re-describe, or change status
DELETE/api/sequences/{id}Delete with steps + enrollments + events cascade
GET/api/sequences/{id}/stepsOrdered step list
POST/api/sequences/{id}/stepsAdd a step (appends when position omitted)
PATCH/api/sequences/steps/{step_id}Edit a step
DELETE/api/sequences/steps/{step_id}Delete a step
GET/api/sequences/{id}/enrollmentsEnrollments; state filter
POST/api/sequences/{id}/enrollmentsEnroll a contact
GET/api/sequences/enrollments/{e_id}Enrollment + its event timeline
PATCH/api/sequences/enrollments/{e_id}Change state and/or current step
POST/api/sequences/enrollments/{e_id}/replyMark replied + log the reply event
GET/api/sequences/enrollments/{e_id}/eventsEvent timeline, oldest first
POST/api/sequences/enrollments/{e_id}/eventsLog a custom event

Enrolled contacts come from the CRM; send pacing is bounded by mailbox caps, not by sequence settings.