Sequences

Create a sequence

Changed on

Creates a timed email series as a draft, with its steps in send order. Each step waits its delay after the previous send (after enrolling, for the first). Nothing sends until you activate it with POST /sequences/{id}/activate.

Pick the trigger that enrolls people: contact.tag_added with a form's tag is the newsletter welcome series (forms apply their tags after double opt-in), lead.created catches every new lead, order.paid follows a purchase, contact.field_changed with a contact field (and optional value) follows a field such as a plan interest, and manual enrolls only through POST /sequences/{sequence_id}/enrollments. Set exit rules for when people leave early; a sales sequence should set exit.on_purchase.

Sending one email to many people now? Use POST /broadcasts.

post/sequences

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

EmailSequenceRequest required
name, string required

Internal name, shown in the dashboard.

trigger, object
exit, object
send_days, string[]

Weekdays a step may go out, in the business's time zone. Defaults to every day.

from, string nullable

Sender address on the account's verified domain. Defaults to the account's sending address.

reply_to, string nullable

Where replies go. Defaults to the account's Crevio inbox when exit.on_reply is on, otherwise the support email.

styled, boolean

Wrap each email in the branded layout. Defaults to true.

metadata, object

Caller-owned key/value pairs.

steps, object[]

The emails in send order. Edit them later through the step endpoints.

Response

The created sequence

EmailSequence required
object, 'sequence' required
id, string required
name, string required
status, 'draft' | 'active' | 'paused' required
trigger, object required
exit, object required
send_days, string[] required

Weekdays a step may go out, in the business's time zone. A step due on another day waits for the next allowed day at the same local time.

from, string nullable required
reply_to, string nullable required
styled, boolean required
steps, EmailSequenceStep[] required

Live steps in send order.

metadata, object required
created_at, string date-time required
updated_at, string date-time required

Changes

    • breaking

      removed the enum value contact.tag_added of the request property trigger/event

    • breaking

      removed the enum value lead.created of the request property trigger/event

    • breaking

      removed the enum value manual of the request property trigger/event

    11 more changes in this revision