# CloudTalk Help Center: English API > CloudTalk developer documentation — REST API reference and integration guides. ## API ### Getting Started - [CloudTalk Developer Documentation](https://help.cloudtalk.io/developers.md): The complete API reference and developer guides for CloudTalk's cloud call center and business calling platform. - [CloudTalk REST API: Call Center Automation Platform](https://help.cloudtalk.io/guides/introduction.md): CloudTalk's REST API lets engineers automate call center operations: calls, contacts, agents, AI insights, SMS, and more over HTTPS with JSON. - [How to Authenticate Requests to the CloudTalk REST API](https://help.cloudtalk.io/guides/authentication.md): The CloudTalk API uses HTTP Basic Auth with an API Access Key ID and Secret on every host. Learn how to generate keys, pass credentials, and secure your requests. - [Quickstart: Make Your First CloudTalk REST API Call](https://help.cloudtalk.io/guides/quickstart.md): Get up and running with the CloudTalk REST API in minutes. List calls, initiate outbound calls, and explore the full endpoint library. ### API Concepts - [CloudTalk API Response Envelope Formats and Schema](https://help.cloudtalk.io/guides/response-envelopes.md): Core CloudTalk API responses use a responseData envelope. Learn the single-item, collection, and error formats, plus the shapes used by Analytics, Conversation Intelligence, VoiceAgent, CueCard and Dialer. - [How to Paginate CloudTalk API Collection Responses](https://help.cloudtalk.io/guides/pagination.md): Core CloudTalk collection endpoints use page-based pagination with the page and limit query parameters. Dialer endpoints use cursor pagination instead. - [CloudTalk API Rate Limits, Headers, and Throttling](https://help.cloudtalk.io/guides/rate-limiting.md): CloudTalk enforces a 60 requests-per-minute limit per company. Learn how to read rate-limit headers and implement retry logic to avoid 429 errors. - [CloudTalk API HTTP Error Codes: Causes and Resolutions](https://help.cloudtalk.io/guides/error-codes.md): Reference for the HTTP status codes returned by the CloudTalk API, with common causes and recommended fixes for 4xx and 5xx errors, plus the error body shapes each surface uses. ### API Guides - [Manage contacts with the API](https://help.cloudtalk.io/guides/contacts/manage-with-api.md): Create, find, update and tag CloudTalk contacts from the v1 Contacts API, and map its camelCase fields to the snake_case contact webhook payloads. - [Read and set user status with the API](https://help.cloudtalk.io/guides/user-status/manage-with-api.md): See what each CloudTalk user is doing right now, set a user Online or Idle with a note, and list the status types users can pick, from the v1 User status API. ### API Reference - [API reference](https://help.cloudtalk.io/api-reference/overview.md): Complete reference for the CloudTalk REST API. One API key (HTTP Basic Auth) works on every host; the current API on api.cloudtalk.io/v1 follows conventional REST, and the classic API on my.cloudtalk.io/api wraps payloads in a responseData envelope. #### AI Voice Agents - [Initiate VoiceAgent call](https://help.cloudtalk.io/api-reference/voiceagent/initiate-voiceagent-call.md): Creates a new VoiceAgent call with specified parameters and properties. Call properties are optional and can be used to configure the call. - [Stop outbound VoiceAgent calls](https://help.cloudtalk.io/api-reference/voiceagent/stop-outbound-voiceagent-calls.md): Emergency stop for outbound VoiceAgent dialing. - [List voice agents](https://help.cloudtalk.io/api-reference/voiceagent/list-voice-agents.md): Returns one page of the company's voice agents. Pages are ordered by creation and walked with limit and cursor. - [Create a voice agent](https://help.cloudtalk.io/api-reference/voiceagent/create-a-voice-agent.md): Creates a voice agent from the attributes object. - [Get a voice agent](https://help.cloudtalk.io/api-reference/voiceagent/get-a-voice-agent.md): Returns one voice agent of the company. - [Replace a voice agent](https://help.cloudtalk.io/api-reference/voiceagent/replace-a-voice-agent.md): Replaces the voice agent with the attributes object. An omitted optional attribute is reset to its default, never preserved, except provider, llm and minorVersion, which keep their stored values. - [Delete a voice agent](https://help.cloudtalk.io/api-reference/voiceagent/delete-a-voice-agent.md): Deletes the voice agent. Attached knowledge bases and tools are unlinked, not deleted. - [Attach a knowledge base to a voice agent](https://help.cloudtalk.io/api-reference/voiceagent/attach-a-knowledge-base-to-a-voice-agent.md): Links the knowledge base to the agent. Repeating the call changes nothing. - [Detach a knowledge base from a voice agent](https://help.cloudtalk.io/api-reference/voiceagent/detach-a-knowledge-base-from-a-voice-agent.md): Unlinks the knowledge base from the agent; the knowledge base itself is kept. - [List knowledge bases](https://help.cloudtalk.io/api-reference/voiceagent/list-knowledge-bases.md): Returns one page of the company's knowledge bases. Pages are ordered by identifier and walked with limit and cursor. - [Create a knowledge base](https://help.cloudtalk.io/api-reference/voiceagent/create-a-knowledge-base.md): Creates a knowledge base from an address or from inline text. A URL source starts SYNCHRONIZING and turns ACTIVE once it has been read. A company may hold at most 100 knowledge bases; at the cap the request answers 409 KNOWLEDGE_BASE_LIMIT_REACHED. - [Upload a knowledge base file](https://help.cloudtalk.io/api-reference/voiceagent/upload-a-knowledge-base-file.md): Creates a knowledge base from one uploaded file. The name is derived from the filename. A company may hold at most 100 knowledge bases; at the cap the request answers 409 KNOWLEDGE_BASE_LIMIT_REACHED. - [Delete a knowledge base](https://help.cloudtalk.io/api-reference/voiceagent/delete-a-knowledge-base.md): Deletes the knowledge base. A knowledge base attached to a voice agent must be detached first. #### AI Conversation Intelligence - [Summary](https://help.cloudtalk.io/api-reference/conversation-intelligence/summary.md): Returns the AI-generated summary of a completed call. - [Overall sentiment](https://help.cloudtalk.io/api-reference/conversation-intelligence/overall-sentiment.md): Returns the sentiment scored across a completed call as a whole — one of `very negative`, `negative`, `neutral`, `positive` or `very positive`. - [Talk-listen ratio](https://help.cloudtalk.io/api-reference/conversation-intelligence/talk-listen-ratio.md): Returns how much each participant spoke during a completed call: talking time in seconds and a talk-to-listen percentage per caller, alongside the list of callers the identifiers refer to. - [Topics](https://help.cloudtalk.io/api-reference/conversation-intelligence/topics.md): Returns the topics detected in a completed call, each with a weight and the transcript spans it was drawn from. Page through the result with `limit` and `offset`. - [Transcription](https://help.cloudtalk.io/api-reference/conversation-intelligence/transcription.md): Returns the transcript of a completed call as time-stamped segments, each attributed to a caller, together with the detected language. Page through the segments with `limit` and `offset`. - [Smart notes](https://help.cloudtalk.io/api-reference/conversation-intelligence/smart-notes.md): Returns the structured notes generated for a completed call — call details, action items, decisions made, open questions and any dates or deadlines mentioned. - [Call details link](https://help.cloudtalk.io/api-reference/conversation-intelligence/call-details-link.md): Returns a link to the call's detail page in CloudTalk analytics. #### Contacts ##### Contacts - [List and search contacts](https://help.cloudtalk.io/api-reference/contacts/list-and-search-contacts.md): Returns your contacts and leads one page at a time, with every number, email, tag and custom field on each row. Narrow the list with `search`, `tagIds`, `type`, `updatedSince`, and `customField` with `customFieldValue`. For an exact phone or email match, use [Look up contacts](/api-reference/contact… - [Create a contact](https://help.cloudtalk.io/api-reference/contacts/create-a-contact.md): Creates a contact and returns it with `201`. Invalid numbers and emails are rejected, not dropped. Text fields are cleaned up before their length is checked and they are stored, as in the CloudTalk Dashboard and the existing API: emojis and other characters that take 4 bytes in UTF-8, and control ch… - [Look up contacts](https://help.cloudtalk.io/api-reference/contacts/look-up-contacts.md): Finds contacts by exact phone number or email. Send up to 50 of each. A contact matches when any value you sent matches it. The values travel in the request body, so they never appear in a URL or an access log. Error messages name the position of a bad value (`phones[2]`), never the value itself. - [Bulk upsert contacts](https://help.cloudtalk.io/api-reference/contacts/bulk-upsert-contacts.md): Creates or updates 1 to 100 contacts in one call and returns one result per row, in request order. Each row is matched on `matchBy`: a row that matches an existing contact updates it, and any other row creates a contact. When a row matches several contacts, the most recently created one is updated a… - [Get a contact](https://help.cloudtalk.io/api-reference/contacts/get-a-contact.md): Returns one contact with every number, email, tag and custom field. Integration tags are not listed in `tags`. - [Delete a contact](https://help.cloudtalk.io/api-reference/contacts/delete-a-contact.md): Permanently deletes the contact with its numbers, emails, tags and custom field values. This cannot be undone. - [Update a contact](https://help.cloudtalk.io/api-reference/contacts/update-a-contact.md): Updates only the fields you send. Fields you leave out stay unchanged, and `null` clears a field that can be null. - [Add tags to a contact](https://help.cloudtalk.io/api-reference/contacts/add-tags-to-a-contact.md): Adds contact tags to the contact and returns the updated contact. Tags the contact already has are ignored, so a repeated request is safe and changes nothing. Only the tags you send are written: a request running at the same time that adds or removes other tags is not undone by this one. - [Remove tags from a contact](https://help.cloudtalk.io/api-reference/contacts/remove-tags-from-a-contact.md): Removes the listed tags from the contact and returns the updated contact. Tags the contact does not have are ignored, so a repeated request is safe and changes nothing. Only the tags you list are removed: a request running at the same time that adds other tags is not undone by this one. ##### Contact tags - [List contact tags](https://help.cloudtalk.io/api-reference/contacts/list-contact-tags.md): Returns your contact tag catalogue, sorted by name in character code order. The order is case-sensitive: uppercase letters come before lowercase ones, so `Beta` comes before `alpha`. Use each tag's `id` wherever this API takes `tagIds`. Call tags are a separate catalogue: see [List call tags](/api-r… - [Create a contact tag](https://help.cloudtalk.io/api-reference/contacts/create-a-contact-tag.md): Creates a contact tag. Names are unique in your account, ignoring case. The name is cleaned up before it is checked and stored, as contact text fields are: emojis and other characters that take 4 bytes in UTF-8, and control characters such as line breaks and tabs, become a space; repeated whitespace… - [Delete a contact tag](https://help.cloudtalk.io/api-reference/contacts/delete-a-contact-tag.md): Deletes a contact tag and removes it from every contact. This cannot be undone. Read-only tags cannot be deleted (see [List contact tags](/api-reference/contacts/list-contact-tags)). - [Rename a contact tag](https://help.cloudtalk.io/api-reference/contacts/rename-a-contact-tag.md): Renames a contact tag. The new name is cleaned up before it is checked and stored, as on [Create a contact tag](/api-reference/contacts/create-a-contact-tag). The tag keeps its id, and every contact that has it shows the new name. Read-only tags cannot be renamed (see [List contact tags](/api-refere… ##### Contact fields - [List contact fields](https://help.cloudtalk.io/api-reference/contacts/list-contact-fields.md): Returns your custom field definitions. Use each field's `name` as the key in a contact's `customFields`. Renaming a field in the Dashboard changes its key. `updatedAt` always equals `createdAt`: a rename does not change it. #### AI Sales Dialer & Campaigns ##### AI Sales Dialer - [List call scripts](https://help.cloudtalk.io/api-reference/dialer/list-call-scripts.md): Returns the company's call scripts newest first, cursor-paginated. Archived scripts are hidden unless `include_archived=true`. - [Create a call script](https://help.cloudtalk.io/api-reference/dialer/create-a-call-script.md): Creates a call script agents read while dialing. The body supports `{{merge}}` fields resolved by the agent's phone at call time. Attach the script to a campaign via the campaign's `call_script_id`. - [Get a call script](https://help.cloudtalk.io/api-reference/dialer/get-a-call-script.md): Returns one script by id, archived or not. A script belonging to another company reads as 404. - [Archive a call script](https://help.cloudtalk.io/api-reference/dialer/archive-a-call-script.md): Archives the script — a soft delete, never a hard one. The script drops out of the default list but stays readable by id (and via `include_archived=true`), and campaigns already pointing at it keep working. Restore it with `PATCH {"is_archived": false}`. Archiving an already-archived script succeeds… - [Update a call script](https://help.cloudtalk.io/api-reference/dialer/update-a-call-script.md): Partial update — omitted fields stay untouched; `updated_at` is always bumped. `is_archived: false` restores an archived script, making this the inverse of the DELETE call. - [List surveys](https://help.cloudtalk.io/api-reference/dialer/list-surveys.md): Returns the company's surveys newest first, cursor-paginated. List items are summaries carrying a `question_count` instead of the questions themselves — fetch one survey by id for the full definition. Archived surveys are hidden unless `include_archived=true`. - [Create a survey](https://help.cloudtalk.io/api-reference/dialer/create-a-survey.md): Creates a survey agents fill after a call. Omit `questions` to create an empty survey and add questions later with the replace-questions call. Question and option ids are server-generated — never send them. Attach the survey to a campaign via the campaign's `survey_id`. - [Get a survey](https://help.cloudtalk.io/api-reference/dialer/get-a-survey.md): Returns one survey by id with its full ordered question set, archived or not. A survey belonging to another company reads as 404. - [Rename or archive a survey](https://help.cloudtalk.io/api-reference/dialer/rename-or-archive-a-survey.md): Updates the survey's `name` and/or `is_archived` flag — nothing else is patchable here; questions change only through the replace-questions call. Archiving (`is_archived: true`) is the survey's soft delete: there is deliberately no DELETE route, because archiving preserves the answers already collec… - [Replace a survey's questions](https://help.cloudtalk.io/api-reference/dialer/replace-a-surveys-questions.md): Atomically replaces the survey's entire question set — this is a replace, not a merge. The body is the desired end state: existing questions (and their options) are deleted and the provided set is inserted in one transaction, ordered by `display_order`. `{"questions": []}` is valid and clears the su… - [List disposition tags](https://help.cloudtalk.io/api-reference/dialer/list-disposition-tags.md): Lists the call tags the company can wire onto a campaign's disposition buttons. Use the returned `id` as `tag_id` when replacing a campaign's buttons. The catalogue is returned whole, so `meta.nextCursor` is always null. ##### Campaigns - [List dialer campaigns](https://help.cloudtalk.io/api-reference/dialer/list-dialer-campaigns.md): Returns the company's campaigns newest first, cursor-paginated. Pass `meta.nextCursor` from a page back as `cursor` to fetch the following page; a null `nextCursor` means there are no more pages. Deleted campaigns are hidden unless `include_deleted=true`; pass `status=deleted` to list only them. Whe… - [Create a dialer campaign](https://help.cloudtalk.io/api-reference/dialer/create-a-dialer-campaign.md): Creates a campaign in the `initializing` state: the contact membership defined by its target tags is built asynchronously, after which the campaign can be moved to `active`. Only `name` and `mode` are required — every policy bundle falls back to the service default when omitted. Target tags, queue g… - [Get a dialer campaign](https://help.cloudtalk.io/api-reference/dialer/get-a-dialer-campaign.md): Returns a single campaign with its full configuration. A campaign belonging to another company reads as 404. - [Delete a dialer campaign](https://help.cloudtalk.io/api-reference/dialer/delete-a-dialer-campaign.md): Soft-deletes the campaign: its status becomes `deleted` (terminal) and its deletion is timestamped. It stops being dialable and drops out of the default campaign list — `GET /dialer/campaigns` returns it only with `include_deleted=true` or `status=deleted`. Allowed from any status and idempotent — r… - [Update a dialer campaign](https://help.cloudtalk.io/api-reference/dialer/update-a-dialer-campaign.md): Partially updates the campaign's configuration and/or moves it through its lifecycle. Every key is optional and an omitted key is left unchanged; a supplied policy bundle replaces that bundle wholesale. Legal `status` transitions: `initializing` → `active` | `archived`; `active` ↔ `inactive`; `activ… - [Get a campaign's associations](https://help.cloudtalk.io/api-reference/dialer/get-a-campaigns-associations.md): Returns the campaign's associations grouped by kind. Target tags carry their serving `priority`, their `label` and their read-only `origin` provenance; queue groups and agents are returned as plain id arrays. - [Replace a campaign's associations](https://help.cloudtalk.io/api-reference/dialer/replace-a-campaigns-associations.md): Replaces every association of the campaign in one call: the contact tags that define its membership (`target_tag`), the queue groups it draws agents from (`queue_group`), and the individually assigned agents (`agent`). Each array is optional and defaults to empty, so an omitted kind clears that kind… - [Get a campaign's disposition buttons](https://help.cloudtalk.io/api-reference/dialer/get-a-campaigns-disposition-buttons.md): Returns the campaign's disposition buttons as a plain array ordered by `display_order`, with each button's name, colour and outcome resolved from its referenced call tag. - [Replace a campaign's disposition buttons](https://help.cloudtalk.io/api-reference/dialer/replace-a-campaigns-disposition-buttons.md): Replaces the campaign's whole disposition-button set — the buttons an agent picks from to close a call. Each button references a call tag by `tag_id` (list them with the disposition-tags call) and declares the `outcome_kind` that tells the dialer what to do next (retry, reschedule, stop calling, …).… - [Get a campaign's statistics](https://help.cloudtalk.io/api-reference/dialer/get-a-campaigns-statistics.md): Returns the campaign's aggregated performance on one of two bases, told apart by `range` in the response: - [List a campaign's contacts](https://help.cloudtalk.io/api-reference/dialer/list-a-campaigns-contacts.md): Returns the campaign's members ordered by dialing eligibility (`next_eligible_at`, then id), cursor-paginated. `meta.total` counts the filtered set, so it moves with `queueTag` and `search`. - [Peek at the next contacts to be dialed](https://help.cloudtalk.io/api-reference/dialer/peek-at-the-next-contacts-to-be-dialed.md): Returns, in order, the contacts the allocator would serve next — a read-only, NON-BINDING snapshot. Nothing is held, locked or recorded, so any of these contacts may be taken by an agent a moment later; treat the answer as a display hint, never a reservation. There is no partner-facing way to claim… - [Get one campaign contact](https://help.cloudtalk.io/api-reference/dialer/get-one-campaign-contact.md): Returns one campaign membership row, enriched with the contact's current tag names from Contacts. The enrichment is best-effort and fails open: `tags: null` means the tag lookup was unavailable or the contact could not be resolved — it does NOT mean the contact has no tags. A contact that genuinely… - [Request a campaign data export](https://help.cloudtalk.io/api-reference/dialer/request-a-campaign-data-export.md): Queues an asynchronous export of the campaign's call history or survey responses as CSV or XLSX and returns immediately with a job handle — nothing is generated during the request. Poll the job with the export-status call. - [Get an export job's status](https://help.cloudtalk.io/api-reference/dialer/get-an-export-jobs-status.md): Polls an export job by its id. `status` walks `queued` → `running` → `completed` | `failed`, and `progress` gives a coarse hint of how far the runner has got. A job belonging to another company reads as 404. - [Get a download link for a completed export](https://help.cloudtalk.io/api-reference/dialer/get-a-download-link-for-a-completed-export.md): Mints a fresh pre-signed S3 link for a completed export job and returns it in a JSON body together with the instant it expires. This is deliberately not a redirect and not a file stream: the body lets a machine consumer read the expiry, and HTTP clients that strip credentials on redirects cannot mis… #### Calls - [Call history](https://help.cloudtalk.io/api-reference/calls/call-history.md): Returns call history. Filter by the numbers involved (`public_internal`, `public_external`), a date range (`date_from`, `date_to`), `contact_id`, `user_id`, `agent_extension`, call `type` or `status`, `tag_id`, or a specific `call_id`; page through the result with `limit` and `page`. - [Get call details](https://help.cloudtalk.io/api-reference/calls/get-call-details.md): Returns everything recorded about a single call — its timings, the steps it took through the call flow, the agents and contacts involved, tags, rating and notes. - [Recording media](https://help.cloudtalk.io/api-reference/calls/recording-media.md): Api endpoint returns media data of recording for selected call. Media data are returned in WAV format. - [Delete call recording](https://help.cloudtalk.io/api-reference/calls/delete-call-recording.md): Delete call recording file for good. Call recording will be deleted from all our systems. - [Make a call](https://help.cloudtalk.io/api-reference/calls/make-a-call.md): Make a call using to any phone numbers. To place a new outbound call, make an HTTP POST request. At first it will initiate a call to an agent. Maximum waiting time for an agent to pick up the call is 20 seconds. After an agent picks up, we will automatically call desired phone number. - [Group statistics](https://help.cloudtalk.io/api-reference/calls/group-statistics.md): Returns today's live call statistics for every group: agents in the group, answered and unanswered calls, abandon rate, average call duration, and average and maximum waiting times — plus a `real_time` block giving the current queue length and waiting times. Takes no parameters. #### Call tags - [List call tags](https://help.cloudtalk.io/api-reference/call-tags/list-call-tags.md): Lists the active plain call tags of your company, in Dashboard order. These are the only tags [Add tags to a call](/api-reference/call-tags/add-tags-to-a-call) accepts. Dispositions are not in this list: [List disposition tags](/api-reference/dialer/list-disposition-tags) lists those, and the two li… - [List a call's tags](https://help.cloudtalk.io/api-reference/call-tags/list-a-calls-tags.md): Returns every tag on one call, of every type (plain tags, dispositions and system tags), with when each was added and by which user, in Dashboard catalogue order. Use it to read a call's current tags after a [`call.tags_modified`](/guides/webhooks/events/calls#call-tags_modified) webhook, which carr… - [Add tags to a call](https://help.cloudtalk.io/api-reference/call-tags/add-tags-to-a-call.md): Adds 1 to 100 plain tags from [List call tags](/api-reference/call-tags/list-call-tags) to a call and returns all tags on the call after the change. Tags already on the call are skipped, so a repeated request is safe. If any id cannot be added, nothing is added and the error lists each refused id in… - [Remove tags from a call](https://help.cloudtalk.io/api-reference/call-tags/remove-tags-from-a-call.md): Removes 1 to 100 plain call tags from a call and returns the tags left on it. Removing a plain tag that is not on the call does nothing, so a repeated request is safe. A plain tag that was archived after it was added can still be removed. If any id cannot be removed, nothing is removed and the error… #### Messaging - [Send sms](https://help.cloudtalk.io/api-reference/sms/send-sms.md): The success response for sms/send.json may include false success attribute, where attribute data is populated with the provider error message #### Numbers - [List numbers](https://help.cloudtalk.io/api-reference/numbers/list-numbers.md): Returns the phone numbers assigned to the account. Filter by `id`, `country_code`, `area_code`, what the number is `connected_to`, or `is_free` to show only numbers with no routing configured; page with `limit` and `page`. - [Edit a number](https://help.cloudtalk.io/api-reference/numbers/edit-a-number.md): Updates the number identified by `id`. All three fields are optional: `internal_name` sets the number's internal label, and `connected_to` with `source_id` set what it routes to. To strip a number's routing entirely, use Unregister a number instead. Returns `404` if no number has that ID. - [Unregister a number](https://help.cloudtalk.io/api-reference/numbers/unregister-a-number.md): Clear current route settings of the number. Number will be marked as free. #### User status - [List user statuses](https://help.cloudtalk.io/api-reference/user-status/list-user-statuses.md): Returns the current status of users in your company, ordered by user id. Filter by live `status`, or pass `updatedSince` to get only users whose status changed since your last poll. For live updates, subscribe to the [`user.status_changed`](/guides/webhooks/events/users#user-status_changed) webhook… - [Get a user's status](https://help.cloudtalk.io/api-reference/user-status/get-a-users-status.md): Returns one user's current status, worked out exactly like [List user statuses](/api-reference/user-status/list-user-statuses), so the two always agree. - [Set a user's status](https://help.cloudtalk.io/api-reference/user-status/set-a-users-status.md): Sets the status type a user has picked: an Online type, or an Idle type with an optional note. Offline cannot be set: it follows the user's real connection. The user must be signed in on at least one device. `PUT` replaces the whole picked status, so leaving `customText` out or sending `null` clears… - [List user status types](https://help.cloudtalk.io/api-reference/user-status/list-user-status-types.md): Returns every status type a user in your company can pick: CloudTalk's built-in types first, then your custom types, each group ordered by id. Use `id` to set a status and `actAs` to know how it affects routing. The list is short and comes in one response, without pagination. #### Agents - [List agents](https://help.cloudtalk.io/api-reference/agents/list-agents.md): Returns agents of the company. `availability_status` reflects the agent's current state; when the agent state source is temporarily unavailable it is returned as "unknown" and the listing still succeeds. - [Add an agent](https://help.cloudtalk.io/api-reference/agents/add-an-agent.md): Creates an agent. `firstname`, `lastname`, `email` and `pass` are required. The optional fields allow outbound calling (`status_outbound`), cap daily call spend in EUR (`daily_price_limit`, 1–200), assign a four-digit `extension` that must be unique across the company (1000–9999), and set a default… - [Edit an agent](https://help.cloudtalk.io/api-reference/agents/edit-an-agent.md): Updates the agent identified by `agentId`. `firstname`, `lastname` and `email` must be sent on every request, even when unchanged. The agent's password cannot be changed here. Returns `404` if no agent has that ID. - [Delete an agent](https://help.cloudtalk.io/api-reference/agents/delete-an-agent.md): Deletes the agent identified by `agentId`. Returns `404` if no agent has that ID. #### Groups - [List groups](https://help.cloudtalk.io/api-reference/groups/list-groups.md): Returns the account's agent groups. Page through the result with `limit` and `page`; the envelope carries `itemsCount`, `pageCount`, `pageNumber` and `limit` alongside the `data` array. - [Add agent to group](https://help.cloudtalk.io/api-reference/groups/add-agent-to-group.md): Adds an agent to a group. Both `group_id` and `agent_id` are required and together identify the membership to create. - [Remove agent from group](https://help.cloudtalk.io/api-reference/groups/remove-agent-from-group.md): Removes one agent from one group. The agent comes from the `agent_id` path parameter and the group from `group_id` in the request body — this deletes a single membership, not the agent and not the group. Returns `404` if the group does not exist. #### Webhooks - [List webhook event types](https://help.cloudtalk.io/api-reference/webhooks/list-webhook-event-types.md): Returns every event type an endpoint can subscribe to. Deprecated and internal types are not listed. Readable without a webhooks-enabled plan, so you can see what you would receive before enabling it. - [List webhook endpoints](https://help.cloudtalk.io/api-reference/webhooks/list-webhook-endpoints.md): Returns one page of the company's webhook endpoints, newest first, including endpoints created in the Dashboard. - [Create a webhook endpoint](https://help.cloudtalk.io/api-reference/webhooks/create-a-webhook-endpoint.md): Creates an endpoint and returns it with its signing secret. This response is the only time the secret is part of the resource; read it again with `GET /webhooks/endpoints/{endpointId}/secret`. - [Get a webhook endpoint](https://help.cloudtalk.io/api-reference/webhooks/get-a-webhook-endpoint.md): Returns one endpoint. The signing secret is not included. - [Delete a webhook endpoint](https://help.cloudtalk.io/api-reference/webhooks/delete-a-webhook-endpoint.md): Deletes the endpoint and stops delivery to it. This cannot be undone: the endpoint, its signing secret and its delivery history are gone. - [Update a webhook endpoint](https://help.cloudtalk.io/api-reference/webhooks/update-a-webhook-endpoint.md): Changes any of `url`, `description`, `eventTypes` and `enabled`; fields you omit stay as they are. `eventTypes: null` subscribes the endpoint to every event type, including future ones. `url`, `description` and `enabled` cannot be null. - [Get the signing secret](https://help.cloudtalk.io/api-reference/webhooks/get-the-signing-secret.md): Returns the endpoint's current signing secret, used to verify webhook signatures. - [Rotate the signing secret](https://help.cloudtalk.io/api-reference/webhooks/rotate-the-signing-secret.md): Replaces the signing secret and returns the new one. For the next 24 hours deliveries are signed with both the old and the new secret, so you can roll the new one out without dropping events. - [Send a test event](https://help.cloudtalk.io/api-reference/webhooks/send-a-test-event.md): Sends a sample payload of one event type to the endpoint. The payload has the real structure of that event with placeholder values. Delivery is asynchronous: use the returned `deliveryId` with the delivery endpoints; it appears there from the first delivery attempt, usually within seconds. - [List deliveries](https://help.cloudtalk.io/api-reference/webhooks/list-deliveries.md): Returns one page of the events sent to the endpoint, newest first, without payloads. A delivery is listed from its first attempt. Payloads are kept for 30 days. - [Get a delivery](https://help.cloudtalk.io/api-reference/webhooks/get-a-delivery.md): Returns one delivery with the payload that was sent and every attempt on this endpoint, newest first, including the HTTP status your server answered and the first 4 KB of its response body. After 30 days the payload is no longer kept and `payload` is null. - [Retry a delivery](https://help.cloudtalk.io/api-reference/webhooks/retry-a-delivery.md): Queues a new attempt of the delivery to this endpoint. Only a delivery this endpoint received can be retried on it. Test events and retries share a limit of 10 per minute per company. #### Utilities - [List countries](https://help.cloudtalk.io/api-reference/utilities/list-countries.md): Returns every country CloudTalk recognises, with the `country_id` values used by the contact endpoints. Takes no parameters. - [List blacklist](https://help.cloudtalk.io/api-reference/utilities/list-blacklist.md): List blacklisted numbers. - [Add number to blacklist](https://help.cloudtalk.io/api-reference/utilities/add-number-to-blacklist.md): Add number to blacklist. - [Edit number on blacklist](https://help.cloudtalk.io/api-reference/utilities/edit-number-on-blacklist.md): Edit blacklisted number. - [Delete number from blacklist](https://help.cloudtalk.io/api-reference/utilities/delete-number-from-blacklist.md): Delete the number from blacklist. #### CueCard - [Create CueCard](https://help.cloudtalk.io/api-reference/cuecard/create-cuecard.md): Pushes a CueCard to the agent currently handling a live call, so guidance appears in their CloudTalk interface while the conversation is still in progress. `call_uuid` identifies the live call; `type`, `title` and `content` are also required, and `subtitle` and `icon_url` are optional. #### Legacy ##### Contacts (LEGACY) - [List contacts](https://help.cloudtalk.io/api-reference/contacts-legacy/list-contacts.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [List and search contacts](/api-reference/contacts/list-and-search-contacts) on `https://api.cloudtalk.io/v1`. - [Add contact](https://help.cloudtalk.io/api-reference/contacts-legacy/add-contact.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [Create a contact](/api-reference/contacts/create-a-contact) on `https://api.cloudtalk.io/v1`. - [Edit contact](https://help.cloudtalk.io/api-reference/contacts-legacy/edit-contact.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [Update a contact](/api-reference/contacts/update-a-contact) on `https://api.cloudtalk.io/v1`. - [Delete contact](https://help.cloudtalk.io/api-reference/contacts-legacy/delete-contact.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [Delete a contact](/api-reference/contacts/delete-a-contact) on `https://api.cloudtalk.io/v1`. - [Inspect a contact](https://help.cloudtalk.io/api-reference/contacts-legacy/inspect-a-contact.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [Get a contact](/api-reference/contacts/get-a-contact) on `https://api.cloudtalk.io/v1`. - [Attributes](https://help.cloudtalk.io/api-reference/contacts-legacy/attributes.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [List contact fields](/api-reference/contacts/list-contact-fields) on `https://api.cloudtalk.io/v1`. - [Assign contact tags](https://help.cloudtalk.io/api-reference/contacts-legacy/assign-contact-tags.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [Add tags to a contact](/api-reference/contacts/add-tags-to-a-contact) on `https://api.cloudtalk.io/v1`. - [Unassign contact tags](https://help.cloudtalk.io/api-reference/contacts-legacy/unassign-contact-tags.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [Remove tags from a contact](/api-reference/contacts/remove-tags-from-a-contact) on `https://api.cloudtalk.io/v1`. - [List notes](https://help.cloudtalk.io/api-reference/contacts-legacy/list-notes.md): List all notes assigned to contacts - [Add note](https://help.cloudtalk.io/api-reference/contacts-legacy/add-note.md): Assign a note to existing contact. - [Edit note](https://help.cloudtalk.io/api-reference/contacts-legacy/edit-note.md): Updates the note identified by `noteId`. `contact_id` and `note` are required on every request; `user_id` optionally records which agent the note belongs to. Returns `404` if no note has that ID. - [Delete note](https://help.cloudtalk.io/api-reference/contacts-legacy/delete-note.md): Deletes the note identified by `noteId`. Returns `404` if no note has that ID. - [List activities](https://help.cloudtalk.io/api-reference/contacts-legacy/list-activities.md): List all activities assigned to contacts - [Add activity](https://help.cloudtalk.io/api-reference/contacts-legacy/add-activity.md): Assign an activity to existing contact. - [Edit activity](https://help.cloudtalk.io/api-reference/contacts-legacy/edit-activity.md): Updates the activity identified by `activityId`. `contact_id` is required on every request. The optional fields set the activity `type` (`order`, `task`, `chat`, `ticket`, `other`, `invoice`, `proforma`, `estimate` or `cancel`), its name, timestamp, description and author, and the `external_id` / `e… - [Delete activity](https://help.cloudtalk.io/api-reference/contacts-legacy/delete-activity.md): Deletes the activity identified by `activityId`. Returns `404` if no activity has that ID. ##### Contact tags (LEGACY) - [List contact tags](https://help.cloudtalk.io/api-reference/contact-tags-legacy/list-contact-tags.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [List contact tags](/api-reference/contacts/list-contact-tags) on `https://api.cloudtalk.io/v1`. - [Add a contact tag](https://help.cloudtalk.io/api-reference/contact-tags-legacy/add-a-contact-tag.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [Create a contact tag](/api-reference/contacts/create-a-contact-tag) on `https://api.cloudtalk.io/v1`. - [Edit a contact tag](https://help.cloudtalk.io/api-reference/contact-tags-legacy/edit-a-contact-tag.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [Rename a contact tag](/api-reference/contacts/rename-a-contact-tag) on `https://api.cloudtalk.io/v1`. - [Delete a contact tag](https://help.cloudtalk.io/api-reference/contact-tags-legacy/delete-a-contact-tag.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [Delete a contact tag](/api-reference/contacts/delete-a-contact-tag) on `https://api.cloudtalk.io/v1`. ##### Bulks (LEGACY) - [Contact actions](https://help.cloudtalk.io/api-reference/bulks-legacy/contact-actions.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [Bulk upsert contacts](/api-reference/contacts/bulk-upsert-contacts) on `https://api.cloudtalk.io/v1`, which creates and updates up to 100 contacts in one request. Bulk delete has no v1 equivalent yet: the v1 API deletes on… ##### Campaigns (LEGACY) - [List campaigns](https://help.cloudtalk.io/api-reference/campaigns-legacy/list-campaigns.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [List dialer campaigns](/api-reference/dialer/list-dialer-campaigns), or [Get a dialer campaign](/api-reference/dialer/get-a-dialer-campaign) for one campaign, on `https://api.cloudtalk.io/v1`. The AI Sales Dialer is a diff… - [Add campaign](https://help.cloudtalk.io/api-reference/campaigns-legacy/add-campaign.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [Create a dialer campaign](/api-reference/dialer/create-a-dialer-campaign) on `https://api.cloudtalk.io/v1`. The AI Sales Dialer is a different product from this dialer. - [Edit campaign](https://help.cloudtalk.io/api-reference/campaigns-legacy/edit-campaign.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [Update a dialer campaign](/api-reference/dialer/update-a-dialer-campaign) on `https://api.cloudtalk.io/v1`. The AI Sales Dialer is a different product from this dialer. - [Delete campaign](https://help.cloudtalk.io/api-reference/campaigns-legacy/delete-campaign.md): **LEGACY.** This endpoint keeps working unchanged. For new integrations, use [Delete a dialer campaign](/api-reference/dialer/delete-a-dialer-campaign) on `https://api.cloudtalk.io/v1`. The AI Sales Dialer is a different product from this dialer. ## OpenAPI Specs - [openapi](/api-reference/openapi.json)