Preview a campaign's recipients without sending (campagne, relance)
Resolves the campaign’s audience from its saved segment, filters it by per-channel consent (marketing_email for email, marketing_sms for SMS) and a usable contact, and returns the resulting plan — WITHOUT sending anything and without mutating the campaign. ALWAYS run this before sendCampaign: audienceCount is who the segment matched, eligibleCount who would actually be addressed, and the two excluded* counters say why the rest dropped (no consent vs no contact address). A tiny eligibleCount usually means the consent register, not the segment, is the problem. Note the response carries every eligible recipient’s raw contact (email address or phone number), so only call it when you actually need the recipient list. 404s for an unknown campaign.
Authorizations
Authorization: Bearer <token>. Accepts EITHER a Keycloak access token (scopes-in-token) OR an opaque POS session token; both resolve to the same pos.* scope vocabulary the route guards enforce.
Path Parameters
The server-minted campaign id (cmp-<uuid>) to act on.
1Response
The consent-filtered recipient plan and the exclusion breakdown.
The consent-filtered recipient plan and the exclusion breakdown.
email, sms 0 <= x <= 90071992547409910 <= x <= 90071992547409910 <= x <= 90071992547409910 <= x <= 9007199254740991
