Skip to main content
The Classic API is supported and serves the endpoints that have no v1 version: Calls, Agents, Groups, Utilities, and contact notes and activities. It also serves the endpoints marked LEGACY, which have v1 replacements. All of them follow the conventions on this page, and your API key works on them unchanged, with HTTP Basic auth:

API hosts

Each endpoint’s reference page shows its full URL. A request sent to the wrong host answers 404. Use HTTPS.

Methods and headers

On my.cloudtalk.io/api, PUT creates and POST updates, the reverse of the usual convention. PATCH is not used. Three endpoints are actions and use POST: Make a call, and the legacy Send sms and Contact actions. Send Accept: application/json on every GET: without it, a request may be refused with 404 or 406. Send Content-Type: application/json with a body.

Responses

Responses are wrapped in responseData. One resource:
A paginated collection adds itemsCount, pageCount, pageNumber and limit:
  • PUT creates answer 201. Make a call answers 200 with only {"responseData": {"status": 200}}.
  • Not every collection paginates: List countries puts a plain array in responseData.
  • Download a call recording answers audio/x-wav, with no envelope.
  • Timestamps are UTC, in two forms: 2017-10-04T06:33:37.000Z on call records, and 2017-12-24 12:22:00 in the date_from and date_to filters. Take the form from the endpoint’s reference page.
  • Call history groups each record’s fields in nested objects: the call is under Cdr, with Contact, Agent, Notes and Tags beside it.

Pagination

Send limit (1 to 1000; left out, the server applies its default and reports it in limit) and page (from 1). Read pages until pageNumber equals pageCount, and stop on an empty data too.
Records created between two requests can shift pages. For a sync, query a narrow date_from and date_to window instead of resuming from a page number.

Errors

Errors are wrapped in responseData, with status equal to the HTTP status:

Rate limit

my.cloudtalk.io/api allows 60 requests per minute per company by default, one count for all its endpoints, shared by every API key of your account. Over it, the answer is 429 with {"responseData": {"status": 429, "message": "Rate Limit Exceeded."}} and the X-CloudTalkAPI-Limit, X-CloudTalkAPI-Remaining and X-CloudTalkAPI-ResetTime headers. Here X-CloudTalkAPI-ResetTime is a Unix timestamp: wait until that time, then retry. To ask for a higher limit, see Rate limiting.

Make a call

Make a call rings the agent first, who has 20 seconds to answer, then dials the callee:
The answer has no call id. Find the call in Call history, filtered by user_id and date_from.

Other hosts

  • Get call details on analytics-api.cloudtalk.io answers a bare JSON object. Its errors are { "statusCode", "message", "error" }, with no correlationId; message may be an array of validation messages.
  • CueCard on platform-api.cloudtalk.io answers {"success": true}, or {"success": false, "errors": [...]}. It answers 424 when the call it names has ended or call_uuid is not a call uuid, and 429 with no body from the gateway, or with an error body and Retry-After when too many cue cards wait for an agent to answer.

Replacements for the LEGACY endpoints

The LEGACY endpoints keep working. For new integrations, use their v1 replacements:
The legacy Edit a number deletes the number’s whole call flow before it writes its one routing step, and it renames a number only by also rerouting it. It writes no call flow version. To rename a number, use Update a number, which changes nothing else.