Restricted API keys
When you create an API key, you can now limit it to the products it needs. Under Access, pick Restricted access and tick the scopes:
- Lightning (Text to Speech), Pulse (Speech to Text), Hydra (Speech to Speech) and Electron (Small Language Model)
- Voice agents: agents, calls, campaigns, audiences, knowledge bases, phone numbers, SIP trunks and concurrency
- Billing and Usage (Read Only)
Full access keys work as before, and every existing key keeps full access. The Access column on the API Keys page shows each key’s scopes.
For API users:
- A restricted key that calls something outside its scopes gets
403witherror_typescope-denied. GET /userreturns the key’s scopes inapiKeyScopes(nullfor full access). Any key can call it.- Managing members, API keys, the workspace name, purchases and billing needs a full-access key.
- Access tokens minted from a restricted key keep its scopes.