Retrieve a campaign's eligibilityMenu

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

idstringrequired

The campaign's id.

uuid

Header parameters

Kirora-Workspacestringoptional

Partner 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.

campaignIdstringrequired

uuid

checkedAtstringrequired

When the check ran.

date-time

canSendbooleanrequired

No blockers anywhere: the campaign's, or any channel's.

audienceCountintegerrequired

Contacts in the audience, before any channel's exclusions; members of the campaign's exclusions are already left out.

min 0

excludedByExclusionsintegerrequired

Contacts in the campaign's list or segment left out because they are in one of its exclusions.

min 0

blockersCampaignBlocker[]required

What stops the campaign as a whole: each missing field outside a channel's content is a draft_incomplete with its field, exactly as sending would refuse it.

3 child attributes
codestringrequired

What blocks it, for code to branch on.

one of campaign_not_draft, unsupported_channels, draft_incomplete, empty_audience, marketing_contacts_limit_reached

messagestringrequired

What to do about it, for the person or agent fixing it.

fieldstringoptional

With draft_incomplete: the field still missing, such as subject.

channelsobject[]required

One entry per selected channel.

One of 2 shapes
Email channel
6 child attributes
channel"email"required
eligibleRecipientCountintegerrequired

Contacts reachable on this channel after the exclusions: the number a send is sized by.

min 0

blockersEmailBlocker[]required

What stops the email channel sending.

3 child attributes
codestringrequired

What 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_required

messagestringrequired

What to do about it, for the person or agent fixing it.

fieldstringoptional

With draft_incomplete: the field still missing, such as subject.

excludedobjectrequired

Contacts left out of the audience, by reason.

4 child attributes
consentMissingintegerrequired

Contacts without email consent.

min 0

topicUnsubscribedintegerrequired

Consented, but the campaign's topic does not reach them.

min 0

suppressedintegerrequired

Contacts whose address is blocked, for example after a bounce.

min 0

missingEmailintegerrequired

Contacts with no email address.

min 0

mergeTagSkippedobjectrequired

Sending 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 in eligibleRecipientCount. Tags inside a repeat or conditional block are not counted, since the block may not show.

2 child attributes
countintegerrequired

Eligible recipients a merge tag would skip, counted once however many tags they lack.

min 0

byTagobject[]required

Each tag that would skip someone, with how many.

2 child attributes
tagstringrequired

The tag, as the skip reason names it: contact.firstName.

countintegerrequired

Eligible recipients without a value for it.

min 0

senderVerifiedbooleanrequired

Whether the sender domain is verified.

Push channel
5 child attributes
channel"push"required
eligibleRecipientCountintegerrequired

Contacts reachable on this channel after the exclusions: the number a send is sized by.

min 0

blockersPushBlocker[]required

What stops the push channel sending.

3 child attributes
codestringrequired

What blocks it, for code to branch on.

one of draft_incomplete, push_app_not_ready, no_eligible_recipients

messagestringrequired

What to do about it, for the person or agent fixing it.

fieldstringoptional

With draft_incomplete: the field still missing, such as subject.

excludedobjectrequired

Contacts left out of the audience, by reason.

3 child attributes
consentMissingintegerrequired

Contacts without push consent.

min 0

topicUnsubscribedintegerrequired

Consented, but the campaign's topic does not reach them.

min 0

missingInstallationintegerrequired

Contacts with no registered device.

min 0

applicationReadybooleanrequired

Whether the push app is set up to send.

contentWarningsobject[]required

Cautions 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
codestringrequired

one of mostly_images, link_shortener, mismatched_link_text, shouting_subject, heavy_images

messagestringrequired

What to change, in plain words.

abTestSplitobject | nullrequired

The A/B test's expected split of the eligible recipients of the tested channel; null without 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
expectedPerVersionnumberrequired

Eligible 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

expectedRestnumberrequired

Eligible recipients expected to wait for the winner: an expectation, like expectedPerVersion, drawn the same way.

min 0

abTestWarningsstring[]required

Cautions 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 with small_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.