Skip to content

List where an audience is used

GET
/audience/management/v1/audiences/{id}/usages
curl --request GET \
--url https://api.ebitex.io/audience/management/v1/audiences/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/usages \
--header 'Authorization: Bearer <token>'

Lists the things in other apps that name this audience, for example a Content variant that shows only to it. Read it before deleting an audience: deleting one that is in use changes what those things do. An empty usages means nothing the platform can see names it.

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

id
required
string format: uuid

{ "usages": [ { "app", "environment", "entityKind", "entityId", "name" } ] }.

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.

audience_not_found: no such audience in this 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.