Retrieve a campaign's eligibility
GET/v1/campaigns/{id}/eligibility
Requires an API key with the campaigns:read scope. About keys and scopes
Works with integration, agent and partner keys.
Reports everything that would stop this campaign sending, without attempting a send: canSend is true when nothing does. Campaign-wide blockers sit at the top; each selected channel reports its own reach and blockers. Every blocker is { code, message, field? }: code to branch on, message written for whoever fixes it, and for draft_incomplete the field still missing (a missing email body is content.email under the email channel). Sending is all or nothing, so one blocker anywhere stops every channel. Call this before POST /v1/campaigns/{id}/send to turn a 409 into an actionable list. The warnings (contentWarnings, abTestWarnings, the email channel's mergeTagSkipped) never stop a send. This is an estimate: it neither reserves quota nor guarantees delivery.
Path parameters
idstringrequiredThe campaign's id.
uuid
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 CampaignEligibility in data. Otherwise returns an error; Errors lists every code and which to retry.
campaignIdstringrequireduuid
checkedAtstringrequiredWhen the check ran.
date-time
canSendbooleanrequiredNo blockers anywhere: the campaign's, or any channel's.
audienceCountintegerrequiredContacts in the audience, before any channel's exclusions; members of the campaign's
exclusionsare already left out.min 0
excludedByExclusionsintegerrequiredContacts in the campaign's list or segment left out because they are in one of its
exclusions.min 0
blockersCampaignBlocker[]requiredWhat stops the campaign as a whole: each missing field outside a channel's content is a
draft_incompletewith itsfield, exactly as sending would refuse it.3 child attributes
codestringrequiredWhat blocks it, for code to branch on.
one of
campaign_not_draft,unsupported_channels,draft_incomplete,empty_audience,marketing_contacts_limit_reachedmessagestringrequiredWhat to do about it, for the person or agent fixing it.
fieldstringoptionalWith
draft_incomplete: the field still missing, such assubject.
channelsobject[]requiredOne entry per selected channel.
One of 2 shapes
- Email channel
6 child attributes
channel"email"requiredeligibleRecipientCountintegerrequiredContacts reachable on this channel after the exclusions: the number a send is sized by.
min 0
blockersEmailBlocker[]requiredWhat stops the email channel sending.
3 child attributes
codestringrequiredWhat blocks it, for code to branch on.
one of
draft_incomplete,sender_unverified,dmarc_missing,postal_address_missing,no_eligible_recipients,plan_limit_reached,new_account_daily_limit,sending_review_requiredmessagestringrequiredWhat to do about it, for the person or agent fixing it.
fieldstringoptionalWith
draft_incomplete: the field still missing, such assubject.
excludedobjectrequiredContacts left out of the audience, by reason.
4 child attributes
consentMissingintegerrequiredContacts without email consent.
min 0
topicUnsubscribedintegerrequiredConsented, but the campaign's topic does not reach them.
min 0
suppressedintegerrequiredContacts whose address is blocked, for example after a bounce.
min 0
missingEmailintegerrequiredContacts with no email address.
min 0
mergeTagSkippedobjectrequiredSending skips a contact (
missing_merge_tag) when a contact tag in the email has no value for them and no default ({{ contact.firstName | default: "there" }}). These contacts are still ineligibleRecipientCount. Tags inside a repeat or conditional block are not counted, since the block may not show.2 child attributes
countintegerrequiredEligible recipients a merge tag would skip, counted once however many tags they lack.
min 0
byTagobject[]requiredEach tag that would skip someone, with how many.
2 child attributes
tagstringrequiredThe tag, as the skip reason names it:
contact.firstName.countintegerrequiredEligible recipients without a value for it.
min 0
senderVerifiedbooleanrequiredWhether the sender domain is verified.
- Push channel
5 child attributes
channel"push"requiredeligibleRecipientCountintegerrequiredContacts reachable on this channel after the exclusions: the number a send is sized by.
min 0
blockersPushBlocker[]requiredWhat stops the push channel sending.
3 child attributes
codestringrequiredWhat blocks it, for code to branch on.
one of
draft_incomplete,push_app_not_ready,no_eligible_recipientsmessagestringrequiredWhat to do about it, for the person or agent fixing it.
fieldstringoptionalWith
draft_incomplete: the field still missing, such assubject.
excludedobjectrequiredContacts left out of the audience, by reason.
3 child attributes
consentMissingintegerrequiredContacts without push consent.
min 0
topicUnsubscribedintegerrequiredConsented, but the campaign's topic does not reach them.
min 0
missingInstallationintegerrequiredContacts with no registered device.
min 0
applicationReadybooleanrequiredWhether the push app is set up to send.
contentWarningsobject[]requiredCautions about the email's own content that never block it:
mostly_images(under 250 characters of text beside images),link_shortener,mismatched_link_text(a link's text shows another domain),shouting_subject(mostly capitals or!!),heavy_images(uploaded images over 1 MB, or more than 15 images). There is no spam score: placement depends mostly on the sender's reputation.2 child attributes
codestringrequiredone of
mostly_images,link_shortener,mismatched_link_text,shouting_subject,heavy_imagesmessagestringrequiredWhat to change, in plain words.
abTestSplitobject | nullrequiredThe A/B test's expected split of the eligible recipients of the tested channel;
nullwithout a test. A version that reaches nobody scores 0, a tie goes to the lowest version, and the winner is sent to the rest even when the test reached nobody (version 1 then).2 child attributes
expectedPerVersionnumberrequiredEligible recipients each version is expected to reach in the test: the test share split evenly. Each contact is drawn on its own, so the real count varies around it, and a version can reach nobody: likely under 1, possible at a few.
min 0
expectedRestnumberrequiredEligible recipients expected to wait for the winner: an expectation, like
expectedPerVersion, drawn the same way.min 0
abTestWarningsstring[]requiredCautions about the A/B test that do not stop it:
empty_versions, under one eligible recipient expected per version, so a version will likely reach nobody (always returned withsmall_versions, which it implies: show the stronger one);small_versions, fewer than 1,000 eligible recipients per version, too few for a reliable winner;opens_measure, opens decide, and machine opens (Apple Mail Privacy Protection, Gmail's prefetch, mail scanners) count unread email as opened.