Authentication
Authenticate requests with an API key and control access with scopes.
The Resonera API authenticates every request with an API key sent in the X-API-Key header.
curl https://api.resonera.ai/v1/agents \
-H "X-API-Key: $RESONERA_API_KEY"API keys start with rsn_live_.
An API key can place calls that are billed to your account. Use it only on your servers. Do not include it in browser code, mobile apps, or source control.
Create an API key
- In the dashboard, go to Settings → API access.
- Click New key.
- Select the scopes the integration needs.
- Optional: set a daily dispatch cap.
- Copy the key.
The key is shown only once. Resonera stores a one-way hash of it, so a lost key cannot be recovered. Revoke it and create a new one.
Scopes
A request outside the key's scopes returns 403.
| Scope | Grants access to |
|---|---|
agents:read | List and retrieve agents and knowledge base files, including indexing status. |
agents:write | Create, update, and delete agents; upload and delete knowledge base files; assign agents to phone numbers. |
calls:read | List and retrieve campaigns, calls, and phone numbers, including transcripts and recordings. |
calls:write | Create, pause, and delete campaigns; join a live call from a browser. Does not place calls. |
calls:dispatch | Launch campaigns, place test calls, and transfer live calls to a phone. Billed to your account. |
webhooks:manage | Create, update, and delete webhook endpoints. |
Grant each integration only the scopes it uses. For example, a job that writes call results to
your CRM needs only calls:read. To require approval before each batch is called, give the
integration calls:write without calls:dispatch, and launch campaigns from the dashboard.
Daily dispatch cap
A daily dispatch cap limits the number of calls a key can start per day, from 1 to 100,000.
Launches and test calls that exceed the cap return 429 until 00:00 UTC. A key without a cap is
limited only by your plan and balance.
Access to data
A key belongs to the organization it was created in and can access only that organization's
agents, campaigns, calls, and phone numbers. Requests for any other resource return 404.
Revoke an API key
Revoke a key under Settings → API access. The key stops working immediately. Its usage history remains available.