API conventions
Base URL, request format, IDs, phone numbers, timestamps, and pagination.
Requests
| Convention | Detail |
|---|---|
| Base URL | https://api.resonera.ai/v1 |
| Format | JSON. Send Content-Type: application/json with every request body. File uploads use multipart/form-data. |
| Authentication | The X-API-Key header. See Authentication. |
| Versioning | The version is part of the path. Paths without /v1 remain available for existing integrations. |
| Compression | Responses larger than 1 KB are compressed with gzip when the request includes Accept-Encoding: gzip. Most HTTP clients send this header and decompress automatically. |
| Caching | Responses are not cacheable (Cache-Control: no-store), except GET /voices, which can be cached for 5 minutes. |
Status codes
Requests that create a resource return 201 Created. A transfer to a phone returns
202 Accepted while the call is placed. Other successful requests return 200 OK. See
Errors for error codes.
IDs
Agents, campaigns, voices, phone numbers, and knowledge base files have UUID id values. Calls
are identified by call_id, which also appears on a campaign contact after it is called.
Phone numbers
Responses return phone numbers in E.164 format: a +, the country code, and the number, without
spaces, for example +919876543210. Requests accept any common format, and a number without a
country code is treated as an Indian number.
Timestamps
Timestamps use ISO 8601 and are returned in UTC. Filters such as since treat a timestamp
without an offset as UTC.
Pagination
List endpoints accept limit (1 to 200, default 50) and offset (default 0), and return the
page with total, the number of matching items across all pages.
{ "calls": [ ... ], "total": 312, "limit": 200, "offset": 200 }To retrieve all items, increase offset by limit until offset is greater than or equal to
total. GET /campaigns/{campaign_id}/contacts is not paginated and returns all contacts in
one array.
Partial updates
PATCH requests change only the fields you send. A field sent as null is rejected unless the
field's documentation states that null clears it.
Access control
An API key can access only its own organization's resources. Requests for any other resource
return 404, the same response as for a resource that does not exist.