Skip to content

Sequence

A Sequence is a timed series of steps run for one Contact at a time: send a Message, wait, branch, or stop.

Properties

PropertyTypeRequiredDescription
stepsjsonrequiredThe steps, waits, and branches.
exitOnstringThe Events that end it from any step, such as a reply or a purchase.

Object

JSON
{
  "$id": "https://api.sb/patentpad.com/sequences/sequence_1",
  "$type": "Sequence",
  "steps": {},
  "exitOn": "Example exit on"
}

Relationships

Verbs

  1. createCreates a Sequence.
    POST /{namespace}/sequencesdoSequence.created
  2. getReturns one Sequence by id.
    GET /{namespace}/sequences/{id}readNo Event
  3. listReturns Sequences, newest first, one page at a time.
    GET /{namespace}/sequencesreadNo Event
  4. updateChanges the given properties of a Sequence.
    PATCH /{namespace}/sequences/{id}doSequence.updated
  5. deleteDeletes a Sequence; its history is kept.
    DELETE /{namespace}/sequences/{id}doSequence.deleted

Permissions

Which Access level may call each Verb. One-way Verbs wait their delay window.

Operationowneradminmemberviewer
Sequence.createYesYesYesNo
Sequence.getYesYesYesYes
Sequence.listYesYesYesYes
Sequence.updateYesYesYesNo
Sequence.deleteYesYesYesNo

Call it

Text
Add a sequence to ShiftNote.

Example

A trial Sequence sends a welcome Message, waits 3 days, then sends a setup tip only if the Contact has made no API call.