Segments
Count contacts in a segment
GET/v1/segments/{id}/count
Requires an API key with the segments:read scope. About keys and scopes
Evaluates a saved segment and returns only the number of matching contacts — cheaper than listing them when all you need is the size.
Path parameters
idstringrequireduuid
Returns
Returns 200 OK with a AudienceCount in data. Otherwise returns an error; Errors lists every code and which to retry.
countintegerrequiredContacts the rules match, counted up to 10000.
min 0 · max 9007199254740991
countExactbooleanrequiredFalse when
countis the cap and more contacts match.