Lists, segments and whole sequences over the API

Lists and segments, sequences from creation to deletion, and tag edits are in the REST API. A script can build an audience, write the automation that reaches it and switch it on, with the same scoped keys as the rest of the API.

Lists and segments

A static list holds the contacts you add to it, up to 500 in one request, and adding a contact enters it in every active sequence whose trigger is that list. A dynamic list is a segment: its members are whoever matches its rules when it is read, so nobody is added to it by hand.

Segment rules test a contact's own fields, its tags and its custom properties, combined in AND and OR groups up to three levels deep. A rule the segment cannot apply, such as an unknown field or an operator tags do not take, is refused when you save it. Reading a list returns its member count at that moment, and its contacts page by page, newest first.

Sequences from start to finish

A sequence can be created over the API as a draft, given its steps and edges in one call, and switched on: POST /sequences, then PUT /sequences/{id}/graph, then PATCH /sequences/{id}/status. Draft and paused sequences can be renamed or given a different trigger.

Deleting a sequence is permanent. Its steps and every enrollment go with it, and the records of the mail it sent stay.

Tags you can rename and delete

A tag can be read, renamed, recolored and deleted. A renamed tag stays on every contact and template that carries it, and a sequence it triggers keeps firing, because tags are referenced by id. Segment rules match tags by name, so a renamed tag drops out of a segment that names the old one.

Deleting a tag removes it from every contact and template, and the contacts stay. A sequence whose trigger was that tag is not edited, so it never fires again until its trigger names another tag.

Related: Create a list over the API, Create a sequence over the API, Tags and segments

Everything that has shipped

Free trial

See the next one land

Everything listed here is live the day it is listed. Start a trial and use it.

7-day free trial. Pick a plan, add a card, cancel before the trial ends and you won't be charged. 1,000 contacts and 5,000 sends during the trial.