API keys
API keys are the simplest way to connect your own backend, script, or data workflow.
Create a key
Section titled “Create a key”- In Infinite Audience, open Account → Partnerships.
- Create a key, give it a recognizable name, and choose the scopes it needs.
- Copy the key when it appears and store it in your secret manager.
Only organization owners and admins can create or revoke keys. The full key is shown once; if it is lost, revoke it and create another.
Exchange the key
Section titled “Exchange the key”An API key beginning with cf_live_ is exchanged for a one-hour bearer token:
curl -X POST https://api.infiniteaudience.ai/v1/auth/token \ -H "Content-Type: application/json" \ -d '{"api_key":"cf_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXX"}'{ "access_token": "eyJhbGciOi...", "token_type": "Bearer", "expires_in": 3600}Use the returned token—not the raw key—on API requests:
curl https://api.infiniteaudience.ai/v1/catalog/fields \ -H "Authorization: Bearer eyJhbGciOi..."Revoke a key
Section titled “Revoke a key”Open Account → Partnerships and deactivate the key, or call DELETE /v1/settings/api-keys/{id}. Previously issued access tokens may remain valid for up to one hour, so rotate deliberately.
