Skip to content

List what a rule can be built from

GET
/audience/management/v1/audiences/criteria
curl --request GET \
--url https://api.ebitex.io/audience/management/v1/audiences/criteria \
--header 'Authorization: Bearer <token>'

Returns the facts and behaviours an audience rule may test in this organization: the properties of a person, the things a person can have done, and each one’s options and whether it is available. Read it before writing a rule, because a rule that names something that is not here is refused. Send forAudience (an audience id) to see which audiences could be named by a rule for that audience without making a loop.

Key: an Audience management key with audience.management.read (write also needs read; erase needs both).

forAudience
string format: uuid

{ "visit": [ … ], "person": [ … ], "did": [ … ], "audiences": [ … ], "account": [ … ], "accountsEnabled": false }, answered live.

missing_api_key or invalid_api_key: no key was sent, or it is unknown, revoked or expired, or it was not created from the Audience settings page.

payment_required: the organization’s subscription needs attention.

scope_denied: the key lacks this route’s scope. ip_denied: the caller’s address is outside the key’s allowed ranges. app_not_available: Audience is not enabled for the organization.

not_found: no such route.

rate_limited: the key spent its requests-per-minute budget; Retry-After says how long to wait. too_many_failed_authentications: too many bad keys from this address.