List campaigns
GET/v1/campaigns
Requires an API key with the campaigns:read scope. About keys and scopes
Works with integration, agent and partner keys. Also available to embed sessions.
Returns campaigns in this workspace, 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
limitintegeroptionalHow many items a page holds: 1 to 100, 20 by default.
min > 0 · max 100 · default
20cursorstringoptionalWhere the page starts: the previous page's
meta.pagination.nextCursor. Omit it for the first page, and send the same filters with it.1–2,048 characters
querystringoptionalPart of the campaign's name, ignoring case.
1–200 characters
statusstringoptionalOnly campaigns in this status.
one of
draft,scheduled,sending,testing,sent,cancelledarchivedstringoptionaltruelists archived campaigns only; unset orfalseleaves them out.one of
true,false· default"false"tagstringoptionalOnly items carrying this tag, its name matched without case.
1–64 characters
pendingAgentReviewstringoptionaltrue: only campaigns waiting in the agent review queue;false: only those not.one of
true,false
Header parameters
Kirora-WorkspacestringoptionalPartner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.
pattern
^[A-Za-z0-9._:-]{1,128}$
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.
allContactsbooleanrequiredWhether it goes to all contacts: everyone its channels reach, with consent and suppressions applied as on any send.
listIdsstring[] | nullrequiredThe lists it goes to, if any: a member of any of them receives it once.
segmentIdstring | nullrequiredThe segment it goes to, if any.
uuid
audienceNamestring | nullrequiredThe names of the lists or the segment it went to, once one of them has been deleted (the list leaves
listIds, orsegmentIdbecomesnull). Only a sent or cancelled campaign can lose its audience this way.audienceRulesobject | nullrequiredInline rules choosing the audience, if any. At most one audience is set.
Any of 2 shapes
- Match all
1 child attribute
allobject[]requiredEvery rule or nested group must match.
at least 1 item · at most 20 items
Any of 10 shapes
- Attribute
5 child attributes
type"attribute"requiredfieldstringrequiredattributes.<key>, e.g.attributes.plan.pattern
^attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}$operatorstringrequiredHow to compare. Text comparisons (
equals,notEquals,contains,notContains,startsWith,in) ignore case and accents ("jose" matches "José").notEqualsandnotContainsalso match contacts without the value. Date operators (before,after,withinLastDays,moreThanDaysAgo) compare as dates and times in UTC: a stored ISO-8601 date is the start of that day,beforemeans earlier than the given day andafterlater than it, and a value that is not an ISO-8601 date or date and time never matches.inNextDaysis a date from today to that many days ahead.anniversaryInNextDays(0 = today) andanniversaryThisMonthignore the year, so they suit birthdays, and also read a yearless--MM-DD; a 29 February counts on 28 February in other years. Days are UTC days; these three are for attributes and dates, not contact fields.one of
equals,notEquals,contains,notContains,startsWith,exists,notExists,before,after,gt,gte,lt,lte,in,withinLastDays,moreThanDaysAgo,inNextDays,anniversaryInNextDays,anniversaryThisMonthvaluestringoptionalWhat to compare with, always as text:
"pro","3","true". Equality compares the stored value as text, so a stored 5 matches"5". An ISO date forbeforeandafter; a number forgt,gte,ltandlte; a whole number of days (1 to 3650) forwithinLastDays,moreThanDaysAgoandinNextDays, and 0 to 365 foranniversaryInNextDays. Omit forin,exists,notExistsandanniversaryThisMonth.up to 255 characters
valuesstring[]optionalFor
inonly: up to 100 values, each as text, any of which matches.at least 1 item · at most 100 items
- Contact field
5 child attributes
type"contact"requiredfieldstringrequiredThe contact column to test. Each takes these operators, and is refused with others:
email: equals, notEquals, contains, startsWith, exists, notExists, in;firstName: equals, notEquals, contains, startsWith, exists, notExists, in;lastName: equals, notEquals, contains, startsWith, exists, notExists, in;phone: equals, notEquals, contains, startsWith, exists, notExists, in;timezone: equals, notEquals, contains, startsWith, exists, notExists, in;externalId: equals, notEquals, contains, startsWith, exists, notExists, in;consent.email: equals;consent.push: equals;country: equals, notEquals, in, exists, notExists;locale: equals, notEquals, startsWith, in, exists, notExists;createdAt: before, after, withinLastDays, moreThanDaysAgo;recordSource: equals, notEquals, in;recordSourceId: equals, notEquals, in, exists, notExists;rfmGroup: equals, notEquals, in, exists, notExists;rfmRecency: equals, notEquals, in, exists, notExists, gt, gte, lt, lte;rfmFrequency: equals, notEquals, in, exists, notExists, gt, gte, lt, lte;rfmMonetary: equals, notEquals, in, exists, notExists, gt, gte, lt, lte;purchaseCount: equals, gt, gte, lt, lte;totalSpent: equals, gt, gte, lt, lte;lastPurchasedAt: before, after, withinLastDays, moreThanDaysAgo, exists, notExists;daysBetweenPurchases: gt, gte, lt, lte, exists, notExists;purchaseOverdueRatio: gt, gte, lt, lte, exists, notExists;purchaseCycleStatus: equals, notEquals, in, exists, notExists.phoneholds +country numbers: writeequals,notEqualsandinvalues with their country code. Consent takes"true"or"false". Purchases:purchaseCount,totalSpent(in the main currency) andlastPurchasedAtare a customer's totals of the workspace's purchase event (purchaseEventin workspace settings: an order, a paid invoice), recomputed daily; the contact's storedtotalSpentis null when the workspace's purchases carry no amount. In comparisons onpurchaseCountandtotalSpenta missing count or spend is 0, so someone who never purchased has 0 purchases and 0 spent. RFM:rfmGroupand its scoresrfmRecency,rfmFrequencyandrfmMonetary(monetary value: how much they spend) come from the same daily pass. A score is a whole number from 1 to 5, written as text ("5";valuesof them forin), 5 being the most recent, most frequent or highest spending; any other value is refused with 400. Someone who never purchased has norfmGroupor scores: on those four fields they match onlynotExistsandnotEquals. SorfmRecencynotEquals5 includes everyone who never purchased; add anexistsrule on the same field to leave them out (bought, but not recently). Record source:recordSourceis how the contact was first added, one ofdashboard,api,sdk,import,form,integration,transactional,unknown;recordSourceIdwhat added it: a form's, import's, API key's or member's id, or an integration's slug (segment). Together they make "added through Segment":recordSourceequalsintegrationandrecordSourceIdequalssegment. Purchase cycle:daysBetweenPurchasesis a regular buyer's usual (median) days between purchase days;purchaseOverdueRatiothe days since their last purchase over that (1.5 is half a cycle late), worked out when the rule runs;purchaseCycleStatusits label:overduefrom 1.5×,lapsedfrom 2×,dormantfrom 3×, elseon_track. Only a contact with 4 or more purchase days and a regular pattern has them: anyone else matches onlynotExistsandnotEquals, and is never called overdue. These three are on plans that include Kiro: elsewhere a rule on them is refused with 403PLAN_FEATURE_UNAVAILABLE.one of
email,firstName,lastName,phone,timezone,externalId,consent.email,consent.push,country,locale,createdAt,recordSource,recordSourceId,rfmGroup,rfmRecency,rfmFrequency,rfmMonetary,purchaseCount,totalSpent,lastPurchasedAt,daysBetweenPurchases,purchaseOverdueRatio,purchaseCycleStatusoperatorstringrequiredHow to compare. Text comparisons (
equals,notEquals,contains,notContains,startsWith,in) ignore case and accents ("jose" matches "José").notEqualsandnotContainsalso match contacts without the value. Date operators (before,after,withinLastDays,moreThanDaysAgo) compare as dates and times in UTC: a stored ISO-8601 date is the start of that day,beforemeans earlier than the given day andafterlater than it, and a value that is not an ISO-8601 date or date and time never matches.inNextDaysis a date from today to that many days ahead.anniversaryInNextDays(0 = today) andanniversaryThisMonthignore the year, so they suit birthdays, and also read a yearless--MM-DD; a 29 February counts on 28 February in other years. Days are UTC days; these three are for attributes and dates, not contact fields.one of
equals,notEquals,contains,notContains,startsWith,exists,notExists,before,after,gt,gte,lt,lte,in,withinLastDays,moreThanDaysAgo,inNextDays,anniversaryInNextDays,anniversaryThisMonthvaluestringoptionalWhat to compare with, always as text:
"pro","3","true". Equality compares the stored value as text, so a stored 5 matches"5". An ISO date forbeforeandafter; a number forgt,gte,ltandlte; a whole number of days (1 to 3650) forwithinLastDays,moreThanDaysAgoandinNextDays, and 0 to 365 foranniversaryInNextDays. Omit forin,exists,notExistsandanniversaryThisMonth.up to 255 characters
valuesstring[]optionalFor
inonly: up to 100 values, each as text, any of which matches.at least 1 item · at most 100 items
- Event
6 child attributes
type"event"requirednamestringrequiredThe event name.
1–128 characters
withinDurationoptionalOnly events from the last
within.notFollowedBystringoptionalOnly when this event name did not follow it afterwards.
1–128 characters
countobjectoptionalHow often; defaults to at least once.
{ operator: equals, value: 0 }is "has not done".whereobject[]optionalProperty conditions the event must meet, up to 5;
countcounts only events meeting all of them.at least 1 item · at most 5 items
- Message activity
9 child attributes
type"activity"requiredactivitystringrequirednotOpenedandnotClicked: sent, and not opened or clicked. Opens include machine opens (seeopenedByMachine).one of
sent,notSent,opened,clicked,notOpened,notClicked,bouncedcountobjectoptionalHow many messages had this activity; defaults to at least one. Not with
notSent.linkstringoptionalWith
clickedornotClicked: only clicks on a link whose address contains this text, ignoring case.1–500 characters
channelstringoptionalOnly messages on this channel (opened a push, not an email); any when left out.
one of
email,pushcampaignIdstringoptionalOnly messages of this campaign.
uuid
tagIdstringoptionalOnly messages of campaigns or journeys carrying this tag, as they are tagged when the rule is evaluated.
uuid
journeyStepIdstringoptionalInside a journey only: the message sent by the step with this id in the contact's current enrollment. Matches nobody outside a journey.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$withinDurationoptionalOnly activity from the last
within. FornotOpenedandnotClickedit is a waiting time instead: only messages sent at least this long ago count, so each has had that long to be opened or clicked.
- Push installation
7 child attributes
type"installation"requiredhasstringrequiredactive: reachable by push (granted, active, not invalidated);none: not.one of
active,nonepushProjectIdstringoptionalOnly devices of this push project; any when omitted.
uuid
platformstringoptionalOnly devices on this platform; any when omitted.
one of
ios,android,weblocalestringoptionalOnly devices set to this language, as the device last reported it:
frmatchesfrandfr-CA,fr-CAonlyfr-CA. Devices that reported none never match.up to 35 characters
appVersionVersionComparisonoptionalOnly devices whose app version, as last reported, compares so. A version with text after its numbers (
2.1.0-beta) is read by its numbers; one with none never matches.osVersionVersionComparisonoptionalOnly devices whose operating system version, as last reported, compares so (
17.4for iOS 17.4,14for Android 14). Devices that reported none never match.
- List membership
3 child attributes
type"list"requiredlistIdsstring[]requiredOne list or several: with
member: truein any of them, withfalsein none of them. Each must be one of the workspace's lists when the rules are saved.at least 1 item · at most 50 items
memberbooleanrequiredTrue for in the lists, false for not in them.
- Segment membership
3 child attributes
type"segment"requiredsegmentIdstringrequireduuid
memberbooleanrequiredTrue for in the segment, false for not in it.
- Topic
4 child attributes
type"topic"requiredtopicIdstringrequiredOne of the workspace's topics when the rules are saved.
uuid
channelstringoptionalReads the contact's choice for this channel, which overrides their topic-wide choice. Without it, the rule reads the topic-wide choice, which a contact's
subscribedshows.one of
email,pushsubscribedbooleanrequiredTrue for contacts the topic reaches, false for those it does not.
- Match all
1 child attribute
allobject[]requiredEvery rule must match.
at least 1 item · at most 20 items
- Match any
1 child attribute
anyobject[]requiredAt least one rule 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
Any of 10 shapes
- Attribute
5 child attributes
type"attribute"requiredfieldstringrequiredattributes.<key>, e.g.attributes.plan.pattern
^attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}$operatorstringrequiredHow to compare. Text comparisons (
equals,notEquals,contains,notContains,startsWith,in) ignore case and accents ("jose" matches "José").notEqualsandnotContainsalso match contacts without the value. Date operators (before,after,withinLastDays,moreThanDaysAgo) compare as dates and times in UTC: a stored ISO-8601 date is the start of that day,beforemeans earlier than the given day andafterlater than it, and a value that is not an ISO-8601 date or date and time never matches.inNextDaysis a date from today to that many days ahead.anniversaryInNextDays(0 = today) andanniversaryThisMonthignore the year, so they suit birthdays, and also read a yearless--MM-DD; a 29 February counts on 28 February in other years. Days are UTC days; these three are for attributes and dates, not contact fields.one of
equals,notEquals,contains,notContains,startsWith,exists,notExists,before,after,gt,gte,lt,lte,in,withinLastDays,moreThanDaysAgo,inNextDays,anniversaryInNextDays,anniversaryThisMonthvaluestringoptionalWhat to compare with, always as text:
"pro","3","true". Equality compares the stored value as text, so a stored 5 matches"5". An ISO date forbeforeandafter; a number forgt,gte,ltandlte; a whole number of days (1 to 3650) forwithinLastDays,moreThanDaysAgoandinNextDays, and 0 to 365 foranniversaryInNextDays. Omit forin,exists,notExistsandanniversaryThisMonth.up to 255 characters
valuesstring[]optionalFor
inonly: up to 100 values, each as text, any of which matches.at least 1 item · at most 100 items
- Contact field
5 child attributes
type"contact"requiredfieldstringrequiredThe contact column to test. Each takes these operators, and is refused with others:
email: equals, notEquals, contains, startsWith, exists, notExists, in;firstName: equals, notEquals, contains, startsWith, exists, notExists, in;lastName: equals, notEquals, contains, startsWith, exists, notExists, in;phone: equals, notEquals, contains, startsWith, exists, notExists, in;timezone: equals, notEquals, contains, startsWith, exists, notExists, in;externalId: equals, notEquals, contains, startsWith, exists, notExists, in;consent.email: equals;consent.push: equals;country: equals, notEquals, in, exists, notExists;locale: equals, notEquals, startsWith, in, exists, notExists;createdAt: before, after, withinLastDays, moreThanDaysAgo;recordSource: equals, notEquals, in;recordSourceId: equals, notEquals, in, exists, notExists;rfmGroup: equals, notEquals, in, exists, notExists;rfmRecency: equals, notEquals, in, exists, notExists, gt, gte, lt, lte;rfmFrequency: equals, notEquals, in, exists, notExists, gt, gte, lt, lte;rfmMonetary: equals, notEquals, in, exists, notExists, gt, gte, lt, lte;purchaseCount: equals, gt, gte, lt, lte;totalSpent: equals, gt, gte, lt, lte;lastPurchasedAt: before, after, withinLastDays, moreThanDaysAgo, exists, notExists;daysBetweenPurchases: gt, gte, lt, lte, exists, notExists;purchaseOverdueRatio: gt, gte, lt, lte, exists, notExists;purchaseCycleStatus: equals, notEquals, in, exists, notExists.phoneholds +country numbers: writeequals,notEqualsandinvalues with their country code. Consent takes"true"or"false". Purchases:purchaseCount,totalSpent(in the main currency) andlastPurchasedAtare a customer's totals of the workspace's purchase event (purchaseEventin workspace settings: an order, a paid invoice), recomputed daily; the contact's storedtotalSpentis null when the workspace's purchases carry no amount. In comparisons onpurchaseCountandtotalSpenta missing count or spend is 0, so someone who never purchased has 0 purchases and 0 spent. RFM:rfmGroupand its scoresrfmRecency,rfmFrequencyandrfmMonetary(monetary value: how much they spend) come from the same daily pass. A score is a whole number from 1 to 5, written as text ("5";valuesof them forin), 5 being the most recent, most frequent or highest spending; any other value is refused with 400. Someone who never purchased has norfmGroupor scores: on those four fields they match onlynotExistsandnotEquals. SorfmRecencynotEquals5 includes everyone who never purchased; add anexistsrule on the same field to leave them out (bought, but not recently). Record source:recordSourceis how the contact was first added, one ofdashboard,api,sdk,import,form,integration,transactional,unknown;recordSourceIdwhat added it: a form's, import's, API key's or member's id, or an integration's slug (segment). Together they make "added through Segment":recordSourceequalsintegrationandrecordSourceIdequalssegment. Purchase cycle:daysBetweenPurchasesis a regular buyer's usual (median) days between purchase days;purchaseOverdueRatiothe days since their last purchase over that (1.5 is half a cycle late), worked out when the rule runs;purchaseCycleStatusits label:overduefrom 1.5×,lapsedfrom 2×,dormantfrom 3×, elseon_track. Only a contact with 4 or more purchase days and a regular pattern has them: anyone else matches onlynotExistsandnotEquals, and is never called overdue. These three are on plans that include Kiro: elsewhere a rule on them is refused with 403PLAN_FEATURE_UNAVAILABLE.one of
email,firstName,lastName,phone,timezone,externalId,consent.email,consent.push,country,locale,createdAt,recordSource,recordSourceId,rfmGroup,rfmRecency,rfmFrequency,rfmMonetary,purchaseCount,totalSpent,lastPurchasedAt,daysBetweenPurchases,purchaseOverdueRatio,purchaseCycleStatusoperatorstringrequiredHow to compare. Text comparisons (
equals,notEquals,contains,notContains,startsWith,in) ignore case and accents ("jose" matches "José").notEqualsandnotContainsalso match contacts without the value. Date operators (before,after,withinLastDays,moreThanDaysAgo) compare as dates and times in UTC: a stored ISO-8601 date is the start of that day,beforemeans earlier than the given day andafterlater than it, and a value that is not an ISO-8601 date or date and time never matches.inNextDaysis a date from today to that many days ahead.anniversaryInNextDays(0 = today) andanniversaryThisMonthignore the year, so they suit birthdays, and also read a yearless--MM-DD; a 29 February counts on 28 February in other years. Days are UTC days; these three are for attributes and dates, not contact fields.one of
equals,notEquals,contains,notContains,startsWith,exists,notExists,before,after,gt,gte,lt,lte,in,withinLastDays,moreThanDaysAgo,inNextDays,anniversaryInNextDays,anniversaryThisMonthvaluestringoptionalWhat to compare with, always as text:
"pro","3","true". Equality compares the stored value as text, so a stored 5 matches"5". An ISO date forbeforeandafter; a number forgt,gte,ltandlte; a whole number of days (1 to 3650) forwithinLastDays,moreThanDaysAgoandinNextDays, and 0 to 365 foranniversaryInNextDays. Omit forin,exists,notExistsandanniversaryThisMonth.up to 255 characters
valuesstring[]optionalFor
inonly: up to 100 values, each as text, any of which matches.at least 1 item · at most 100 items
- Event
6 child attributes
type"event"requirednamestringrequiredThe event name.
1–128 characters
withinDurationoptionalOnly events from the last
within.notFollowedBystringoptionalOnly when this event name did not follow it afterwards.
1–128 characters
countobjectoptionalHow often; defaults to at least once.
{ operator: equals, value: 0 }is "has not done".whereobject[]optionalProperty conditions the event must meet, up to 5;
countcounts only events meeting all of them.at least 1 item · at most 5 items
- Message activity
9 child attributes
type"activity"requiredactivitystringrequirednotOpenedandnotClicked: sent, and not opened or clicked. Opens include machine opens (seeopenedByMachine).one of
sent,notSent,opened,clicked,notOpened,notClicked,bouncedcountobjectoptionalHow many messages had this activity; defaults to at least one. Not with
notSent.linkstringoptionalWith
clickedornotClicked: only clicks on a link whose address contains this text, ignoring case.1–500 characters
channelstringoptionalOnly messages on this channel (opened a push, not an email); any when left out.
one of
email,pushcampaignIdstringoptionalOnly messages of this campaign.
uuid
tagIdstringoptionalOnly messages of campaigns or journeys carrying this tag, as they are tagged when the rule is evaluated.
uuid
journeyStepIdstringoptionalInside a journey only: the message sent by the step with this id in the contact's current enrollment. Matches nobody outside a journey.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$withinDurationoptionalOnly activity from the last
within. FornotOpenedandnotClickedit is a waiting time instead: only messages sent at least this long ago count, so each has had that long to be opened or clicked.
- Push installation
7 child attributes
type"installation"requiredhasstringrequiredactive: reachable by push (granted, active, not invalidated);none: not.one of
active,nonepushProjectIdstringoptionalOnly devices of this push project; any when omitted.
uuid
platformstringoptionalOnly devices on this platform; any when omitted.
one of
ios,android,weblocalestringoptionalOnly devices set to this language, as the device last reported it:
frmatchesfrandfr-CA,fr-CAonlyfr-CA. Devices that reported none never match.up to 35 characters
appVersionVersionComparisonoptionalOnly devices whose app version, as last reported, compares so. A version with text after its numbers (
2.1.0-beta) is read by its numbers; one with none never matches.osVersionVersionComparisonoptionalOnly devices whose operating system version, as last reported, compares so (
17.4for iOS 17.4,14for Android 14). Devices that reported none never match.
- List membership
3 child attributes
type"list"requiredlistIdsstring[]requiredOne list or several: with
member: truein any of them, withfalsein none of them. Each must be one of the workspace's lists when the rules are saved.at least 1 item · at most 50 items
memberbooleanrequiredTrue for in the lists, false for not in them.
- Segment membership
3 child attributes
type"segment"requiredsegmentIdstringrequireduuid
memberbooleanrequiredTrue for in the segment, false for not in it.
- Topic
4 child attributes
type"topic"requiredtopicIdstringrequiredOne of the workspace's topics when the rules are saved.
uuid
channelstringoptionalReads the contact's choice for this channel, which overrides their topic-wide choice. Without it, the rule reads the topic-wide choice, which a contact's
subscribedshows.one of
email,pushsubscribedbooleanrequiredTrue for contacts the topic reaches, false for those it does not.
- Match all
1 child attribute
allobject[]requiredEvery rule must match.
at least 1 item · at most 20 items
- Match any
1 child attribute
anyobject[]requiredAt least one rule must match.
at least 1 item · at most 20 items
exclusionsobject | nullrequiredLists and segments left out of its audience ("don't send to");
nullfor none.2 child attributes
listIdsstring[]requiredLists whose members are left out.
at most 20 items · default
[]segmentIdsstring[]requiredSegments whose members are left out, by the segment's rules at send.
at most 10 items · default
[]
topicIdstring | nullrequiredSends only to contacts the topic reaches;
nullsends to everyone with consent.uuid
statusstringrequiredWhere the campaign is in its lifecycle.
testing: an A/B test went out and the rest of the audience waits for the winner.sent: every message was created and queued; it says nothing about delivery, whichGET /v1/campaigns/{id}/metricsreports (some may still be queued, skipped or failed).one of
draft,scheduled,sending,testing,sent,cancelledscheduleobject | nullrequiredWhen it sends:
fixed, everyone at one instant, orlocal_time, each contact at a time on their own clock. Set while it isscheduled; a local-time schedule stays set once sending starts, since each contact's time still decides when theirs goes.nullotherwise.One of 2 shapes
- Fixed time
2 child attributes
type"fixed"requiredsendAtstringrequiredThe instant everyone receives it at.
date-time
- Local time
5 child attributes
type"local_time"requiredlocalDateTimestringrequiredThe wall-clock time (
YYYY-MM-DDTHH:MM, no timezone) each contact receives it at on their own clock. It may already have passed in some timezones, not in all.pattern
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$timezoneIfUnknownstring | nullrequiredThe IANA timezone for contacts without one;
null: the workspace's.ifTimeHasPassedstringrequiredWhere the time has already gone when it is scheduled:
send_nowsends there at once,next_dayat the same time the next day, andskipleaves those contacts out (skipped withlocal_time_passed).one of
send_now,skip,next_daystartsAtstringrequiredWhen sending starts: the earliest timezone reaching
localDateTime.date-time
sentAtstring | nullrequiredWhen sending started; set from
sendingon (testing, sent, cancelled),nullbefore. A local-time campaign starts in the earliest timezone.date-time
pendingAgentReviewbooleanrequiredAn agent key authored or edited it and it is still a draft, so it waits in the agent review queue: sending needs a person's approval.
sendApprovalRequestobject | nullrequiredThe latest request, from a member in the dashboard, that an admin send it while the workspace keeps sending to admins; kept after it sends, cleared by any edit before then.
3 child attributes
userIdstringrequiredThe member who asked.
uuid
requestedAtstringrequireddate-time
notestring | nullrequired
archivedAtstring | nullrequiredWhen it was archived; archived campaigns are left out of the list by default.
date-time
tagsstring[]requiredTag names, sorted without case.
createdAtstringrequireddate-time
updatedAtstringrequireddate-time