Loyalty
Preview a campaign audience
Estimate the reach of a targeting filter before a campaign is created or sent. Returns how many opted-in customers match the filter, how many are reachable right now, and how many are temporarily withheld by the per-card notification cap (with the time the whole audience frees up). This is a wizard estimate: the authoritative per-recipient consent and cap checks run again at send time. A POST (not GET) because the targeting filter is a structured body, but it has no side effects.
post/v1/loyalty/campaigns/audience-preview
Request
- Base URL: https://api.prod.keyban.io
- URL: https://api.prod.keyban.io/v1/loyalty/campaigns/audience-preview
- Auth: API key in header X-Api-Key
Request body
Example request
{
"applicationId": "550e8400-e29b-41d4-a716-446655440000",
"targeting": {
"minPoints": 100,
"maxPoints": 500,
"minVisits": 3,
"rewardTierIds": [
"550e8400-e29b-41d4-a716-446655440000"
]
},
"channels": [
"google",
"apple"
]
}Response
Audience preview computed successfully
Example response
{
"matchingCount": 1234,
"accessibleCount": 1180,
"cappedCount": 54,
"fullAvailabilityAt": "2026-06-17T09:00:00Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.