Campaigns
List campaigns
GET/v1/campaigns
Requires an API key with the campaigns:read scope. About keys and scopes
Returns campaigns in this organization, newest first by default. Pass status to list only campaigns in that state. Results are cursor-paginated: pass meta.pagination.nextCursor back as cursor until it comes back null. The cursor is opaque — do not construct or parse one.
Query parameters
limitintegeroptionalmin > 0 · max 100 · default
20cursorstringoptional1–2048 characters
qstringoptional1–200 characters
statusstringoptionalOnly campaigns in this status.
one of
draft,scheduled,sending,sent,cancelledarchivedstringoptionaltruelists archived campaigns only; unset orfalseleaves them out.one of
true,false· default"false"
Returns
Returns 200 OK with a list of CampaignListItem objects in data, and the next page's cursor in meta (see pagination). Otherwise returns an error; Errors lists every code and which to retry.
idstringrequireduuid
namestringrequiredchannelsstring[]requiredThe channels it sends on.
groupIdstring | nullrequiredThe group it goes to, if any.
uuid
segmentIdstring | nullrequiredThe segment it goes to, if any.
uuid
audienceRulesobject | nullrequiredInline rules choosing the audience, if any. At most one audience is set.
One of 2 shapes
- Match all
1 child attribute
allobject[]requiredEvery rule or nested group must match.
at least 1 item · at most 20 items
- Match any
1 child attribute
anyobject[]requiredAt least one rule or nested group must match.
at least 1 item · at most 20 items
topicIdstring | nullrequiredSends only to contacts the topic reaches;
nullsends to everyone with consent.uuid
statusstringrequiredWhere the campaign is in its lifecycle.
one of
draft,scheduled,sending,sent,cancelledsendAtstring | nullrequiredWhen it is scheduled to send, if at all.
date-time
localSendAtstring | nullrequiredSet for a local-time send: the wall-clock time each contact receives it at.
archivedAtstring | nullrequiredWhen it was archived; archived campaigns are left out of the list by default.
date-time
createdAtstringrequireddate-time
updatedAtstringrequireddate-time