# CommPeak Documentation and Developer Hub Documentation > Discover everything you need to engage with powerful contact center solutions offered by CommPeak. From comprehensive guides to detailed documentation and APIs, we've got you covered. Let’s dive in! This file lists one part of the documentation. The full index is at https://docs.commpeak.com/llms.txt. ## API Reference: Getting Started - [Authentication and API Keys](https://docs.commpeak.com/reference/authentication-and-api-keys.md): Find the right credential for each CommPeak API, create a Portal API key, and protect your keys. - [Requests, Errors, and Rate Limits](https://docs.commpeak.com/reference/requests-errors-and-rate-limits.md): Request conventions, HTTP status codes, first-request fixes, and rate limits for CommPeak APIs. - [Migrating to the New API Reference](https://docs.commpeak.com/reference/migrating-to-the-new-api-reference.md): Update an existing CommPeak integration to the new API names, base URLs, and credentials. ## API Reference: CommPeak Portal API - [Overview](https://docs.commpeak.com/reference/portal-api-overview.md): Manage your CommPeak balance, rates, SIP accounts, caller IDs, call records, DID numbers, voicemails, and Speech-to-Text through one REST API. - Customer - [Get account details and current balance](https://docs.commpeak.com/reference/customer_details.md): Gets the account email, available balance and temporary credit of the customer owning the token; `balance` is in USD and excludes `temporary_credit`. SMS-enabled accounts also get `sms_balance`,… - Voice Rates - [Search voice termination rates of the default tech prefix by destination prefix](https://docs.commpeak.com/reference/search_current_voice_rates.md): Returns the voice termination rates from the latest call plan of the customer's default tech prefix whose destination prefix begins with `prefix` — e.g. `1212` returns New York City destinations. Use… - [Download voice termination rates as a CSV or XLS file](https://docs.commpeak.com/reference/download_voice_rates.md): Downloads the complete latest call plan of the given tech prefix as a file. The format is selected via the `format` query parameter (`csv` or `xls`, default `csv`). Use `current` as the id to refer… - [Get all voice termination rates of a tech prefix](https://docs.commpeak.com/reference/call_plan_voice_rates.md): Returns the full list of per-minute voice termination rates from the latest call plan assigned to the given tech prefix: destination prefix, destination name, price and billing blocks. Tech prefixes… - [Search voice termination rates by destination prefix](https://docs.commpeak.com/reference/search_voice_rates_for_call_plan.md): Returns the voice termination rates from the latest call plan of the given tech prefix whose destination prefix begins with `prefix` — e.g. `1212` returns New York City destinations. Use it to look… - [Get all voice termination rates of the default tech prefix](https://docs.commpeak.com/reference/current_voice_rates.md): Returns the full list of per-minute voice termination rates from the latest call plan assigned to the customer's default tech prefix: destination prefix, destination name, price and billing blocks.… - SIP-Accounts - [List the customer's SIP accounts](https://docs.commpeak.com/reference/list_sip_accounts.md): Returns all SIP accounts of the customer that have not been deleted. Each account is identified by its `id` (display token) and shows its name, authentication method — `password` (with `username`) or… - [Create a SIP account](https://docs.commpeak.com/reference/create_sip_account.md): Creates a SIP account, the same way as the SIP account form in the portal. Authentication is either `password` (`username` and `password`, optionally restricted by `ip_acl` and optionally with JWT… - [Get a SIP account](https://docs.commpeak.com/reference/get_sip_account.md): Returns one SIP account of the customer by its `id` (display token), with its settings, authentication and the Dynamic Caller ID rules assigned to it. Deleted accounts and accounts of other customers… - [Update a SIP account](https://docs.commpeak.com/reference/update_sip_account.md): Updates a SIP account by its `id` (display token). Only the fields sent are changed; omitted fields keep their current values, including the authentication method, IPs and the assigned Dynamic Caller… - [Delete a SIP account](https://docs.commpeak.com/reference/delete_sip_account.md): Deletes a SIP account by its `id` (display token). The account stops being usable for calls and no longer appears in the list. Responds 200 with an empty body. - CDRs - [List inbound (origination) call records to DID numbers, paginated](https://docs.commpeak.com/reference/origination_call_records.md): Returns the customer's inbound call detail records (CDRs) — calls received on the customer's DID numbers — newest first. Without `time_range` the last 24 hours are returned. Results can be narrowed… - [List outbound (termination) call records, paginated](https://docs.commpeak.com/reference/termination_call_records.md): Returns the customer's outbound call detail records (CDRs) — calls sent from the customer's SIP accounts to CommPeak for termination — newest first, with caller ID, destination, duration, cost and… - Calls - [Calls by destination report](https://docs.commpeak.com/reference/calls_by_destination_report.md): Returns outbound call totals per destination network for a date range, as the Calls by Destination report in the portal: number of calls, successful (billable) calls, total duration in seconds, total… - [Daily calls report](https://docs.commpeak.com/reference/daily_calls_report.md): Returns outbound call totals per day for a date range, as the Daily Calls report in the portal: number of calls, successful (billable) calls, total duration in seconds, total cost, ASR (percent) and… - [List text-to-speech voices available for API calls, by language](https://docs.commpeak.com/reference/list_call_voices.md): list the text-to-speech voices accepted by the `voice` field of a call, grouped by language - [Place an outbound call with a text-to-speech / IVR flow](https://docs.commpeak.com/reference/place_call.md): place an outbound call that speaks text to the callee, plays hosted audio, and can collect keypad input and branch on it - Allowed-Caller-IDs - [List verified caller IDs allowed for outbound calls](https://docs.commpeak.com/reference/list_allowed_caller_ids.md): Returns the customer's verified Caller IDs (CLIs) that may be used for outbound calls. When `locked` is `true`, the customer may only call using the listed Caller IDs; when `false`, any Caller ID is… - [Add a Caller ID and place its verification call](https://docs.commpeak.com/reference/add_allowed_caller_id.md): Adds a Caller ID to the account and places a verification call to it; the call reads out a verification code to submit with the verify method. `cli` is the phone number in E.164 format. Calling this… - [Verify a Caller ID with the code from the verification call](https://docs.commpeak.com/reference/verify_allowed_caller_id.md): Submits the verification code read out by the verification call. The Caller ID is identified either by its `id` or by its `cli` (E.164). After 5 wrong codes a new verification call must be requested.… - [Delete a Caller ID](https://docs.commpeak.com/reference/delete_allowed_caller_id.md): Deletes a Caller ID of the account by its `id`. The account must keep at least one other verified Caller ID (422 otherwise). Responds 200 with an empty body. - Dynamic-Caller-IDs - [List Dynamic Caller ID rules](https://docs.commpeak.com/reference/list_dynamic_caller_ids.md): Returns the customer's Dynamic Caller ID rules. A rule decides which Caller ID is presented for calls of a SIP account: for all destinations (`condition` `any`), a country (`country`, `prefix` is the… - [Create a Dynamic Caller ID rule](https://docs.commpeak.com/reference/create_dynamic_caller_id.md): Creates a Dynamic Caller ID rule. `condition` and `action` are required; `prefix` is required for the `country` and `prefix` conditions and `caller_id_number` for the `fixed` action. The `blocked`… - [Get a Dynamic Caller ID rule](https://docs.commpeak.com/reference/get_dynamic_caller_id.md): Returns one Dynamic Caller ID rule of the customer by its `id`. - [Update a Dynamic Caller ID rule](https://docs.commpeak.com/reference/update_dynamic_caller_id.md): Updates a Dynamic Caller ID rule by its `id`. Only the fields sent are changed. SIP accounts using the rule are updated with the change. The same restrictions as on create apply. - [Delete a Dynamic Caller ID rule](https://docs.commpeak.com/reference/delete_dynamic_caller_id.md): Deletes a Dynamic Caller ID rule by its `id`. A rule used by a SIP account can't be deleted (422); trial accounts can't delete rules. Responds 200 with an empty body. - SMS Rates - [List SMS rates per mobile network for an SMS channel](https://docs.commpeak.com/reference/sms_rates.md): Returns the currently effective SMS prices of one of the customer's SMS channels, one entry per mobile network identified by MCC (country code) and MNC (network code). The channel may be referenced… - Messages - [Send an SMS](https://docs.commpeak.com/reference/send_message.md): send a single SMS to one recipient - Speech to Text - [Get the state and transcription result of a speech recognition task](https://docs.commpeak.com/reference/speech_recognition_result.md): Returns a previously submitted speech recognition task by its `id`. Once the task has succeeded `result` holds the transcription; until then it is not yet populated, so the method can be polled until… - [Submit an audio recording for asynchronous speech recognition](https://docs.commpeak.com/reference/create_speech_recognition_task.md): Creates a speech recognition (transcription) task for an audio recording and returns its `id` immediately with HTTP 201; processing happens in the background. The recording is uploaded as a multipart… - Payments - [List payment history](https://docs.commpeak.com/reference/list_payments.md): Returns the account's balance movements as shown on the Payment History page in the portal: top-ups, deductions, subscriptions and temporary credits, newest first. `scope` narrows the list to one… - Invoices - [List invoices](https://docs.commpeak.com/reference/list_invoices.md): Returns the account's invoices as shown on the Invoices page in the portal, newest first, with number, date, billing period, amount and status (`new`, `published`, `partially_paid`, `paid`, …).… - Users - [List portal users of the account](https://docs.commpeak.com/reference/list_users.md): Returns the enabled portal users of the account: name, email, whether the user is the account's main user, roles (`admin`, `reports`, `tech_config`, `finance`, `orders`, `support`), and support… - DID Numbers - [List the customer's active and suspended DID numbers](https://docs.commpeak.com/reference/list_did_numbers.md): Returns the customer's DID (inbound phone) numbers that are activated or suspended; numbers that are still being ordered or have been cancelled are not included. Each number contains its country,… - Voicemails - [Voicemails report](https://docs.commpeak.com/reference/list_voicemails.md): Returns voicemails left on the account's DID numbers, newest first, as the Voicemails report in the portal: the DID number, caller ID, receive time, the email addresses the voicemail was sent to and… - [Get a voicemail with its transcription](https://docs.commpeak.com/reference/get_voicemail.md): Returns one voicemail left on the account's DID numbers by its `id`, including its `transcription`. The transcription is filled in shortly after the voicemail is received and is empty until then.… - Voicemail-Playbacks - [List voicemail playbacks](https://docs.commpeak.com/reference/list_voicemail_playbacks.md): Returns the account's voicemail playbacks: the greetings played to callers before a voicemail is recorded on a DID number. A playback is used for the DID numbers it is assigned to directly… - [Upload a voicemail playback](https://docs.commpeak.com/reference/create_voicemail_playback.md): Creates a voicemail playback from an uploaded WAV file (multipart `voicemail_playback[playback]`). `did_numbers` (E.164) and `did_number_tags` (tag ids) assign the playback; both must belong to the… - [Get a voicemail playback](https://docs.commpeak.com/reference/get_voicemail_playback.md): Returns one voicemail playback of the account by its `id`. - [Update a voicemail playback](https://docs.commpeak.com/reference/update_voicemail_playback.md): Updates a voicemail playback by its `id`; only the fields sent are changed. A new WAV file replaces the current one. `did_numbers`, `did_number_tags` and `send_to` replace the current lists when sent. - [Delete a voicemail playback](https://docs.commpeak.com/reference/delete_voicemail_playback.md): Deletes a voicemail playback by its `id`. The account default playback can't be deleted (422); make another playback the default first. Responds 200 with an empty body. - [Make a voicemail playback the account default](https://docs.commpeak.com/reference/set_default_voicemail_playback.md): Sets the voicemail playback with the given `id` as the default, used for DID numbers that have no playback assigned directly or through a tag. ## API Reference: CommPeak Dialer API - [Overview](https://docs.commpeak.com/reference/dialer-api-overview.md): Manage CommPeak Dialer calls, campaigns, leads, users, and caller IDs through the Dialer API. - [Core API Concepts](https://docs.commpeak.com/reference/core-api-concepts.md) - [Common and Useful API Examples](https://docs.commpeak.com/reference/common-api-useful-examples.md): Here, you can find common API request logic to help you understand the logic workflow. - Dispatch-Automation - [Dispatch Leads](https://docs.commpeak.com/reference/dispatch_leads.md): > **Called directly on your tenant, not through `api.commpeak.com`.** This endpoint is served by `https://{sub_domain}.td.commpeak.com/integrations/adapters/hook` and is not authorized by your Portal… - [Dispatch Statuses](https://docs.commpeak.com/reference/dispatch_statuses.md): > **Called directly on your tenant, not through `api.commpeak.com`.** This endpoint is served by `https://{sub_domain}.td.commpeak.com/integrations/adapters/hook` and is not authorized by your Portal… - Calls - [Get aggregated call stats](https://docs.commpeak.com/reference/get_aggregated_call_stats.md): **Access:** read-only. Available to read-only API credentials. Aggregated call counts per campaign-lead over a period. **When to use.** Dashboards and per-lead call-frequency reporting without… - [Get specific call's record file](https://docs.commpeak.com/reference/get_call_record_by_id.md): **Access:** read-only. Available to read-only API credentials. Download the audio recording for a call as a binary attachment. **When to use.** Retrieve the recording file for a specific call `id`.… - [Get specific call](https://docs.commpeak.com/reference/get_call_by_id.md): **Access:** read-only. Available to read-only API credentials. Retrieve a single call by its numeric `id`. **When to use.** Drill-down to the full detail of one call, for example from a list row.… - [Get all calls](https://docs.commpeak.com/reference/get_all_calls.md): **Access:** read-only. Available to read-only API credentials. Retrieve calls placed through the Dialer, newest first. **When to use.** Historical and audit views, and reconciliation against your… - [Get aggregated call stats (path filters)](https://docs.commpeak.com/reference/get_aggregated_call_stats_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get specific call (path filters)](https://docs.commpeak.com/reference/get_call_by_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get all calls (path filters)](https://docs.commpeak.com/reference/get_all_calls_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Campaigns - [Clone campaign (Create)](https://docs.commpeak.com/reference/clone_campaign.md): **Access:** write. Not available to read-only API credentials (returns 403). Duplicate an existing campaign, including its settings, into a new campaign. **When to use.** Create a new campaign that… - [Delete Leads](https://docs.commpeak.com/reference/delete_campaign_leads.md): **Access:** write. Not available to read-only API credentials (returns 403). Delete all leads from the campaign identified by `id`. **When to use.** Clear a campaign's lead list, for example before… - [Update specific campaign](https://docs.commpeak.com/reference/update_campaign.md): **Access:** write. Not available to read-only API credentials (returns 403). Update the settings of the campaign identified by `id`. **When to use.** Change one or more campaign settings, such as… - [Delete specific campaign](https://docs.commpeak.com/reference/delete_campaign.md): **Access:** write. Not available to read-only API credentials (returns 403). Delete the campaign identified by `id`, along with its child campaigns. **When to use.** Permanently remove a campaign… - [Get specific campaign](https://docs.commpeak.com/reference/get_campaign_by_id.md): **Access:** read-only. Available to read-only API credentials. Retrieve a single campaign by its numeric `id`. **When to use.** Drill-down to the full detail of one campaign, for example from a… - [Get all campaigns](https://docs.commpeak.com/reference/get_all_campaigns.md): **Access:** read-only. Available to read-only API credentials. Retrieve the campaigns defined in your account. **When to use.** List and audit your campaigns, or look up a campaign's `id` and… - [Delete Leads (path filters)](https://docs.commpeak.com/reference/delete_campaign_leads_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get specific campaign (path filters)](https://docs.commpeak.com/reference/get_campaign_by_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get all campaigns (path filters)](https://docs.commpeak.com/reference/get_all_campaigns_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Campaign-Leads - [Mass assign leads](https://docs.commpeak.com/reference/mass_assign_campaign_leads.md): **Access:** write. Not available to read-only API credentials (returns 403). Assign many leads to a campaign in a single request. **When to use.** Bulk-add leads to a campaign, selecting them by a… - [Mass delete campaign leads](https://docs.commpeak.com/reference/mass_delete_campaign_leads.md): **Access:** write. Not available to read-only API credentials (returns 403). Delete many campaign leads at once by their IDs. **When to use.** Remove campaign-lead assignments in bulk when you… - [Move to campaign](https://docs.commpeak.com/reference/move_campaign_leads.md): **Access:** write. Not available to read-only API credentials (returns 403). Move leads from one campaign to another. **When to use.** Reassign leads from a source campaign to a destination… - [Update campaign leads](https://docs.commpeak.com/reference/update_campaign_leads.md): **Access:** write. Not available to read-only API credentials (returns 403). Update fields on many campaign leads in a single request. **When to use.** Change lead details or campaign-lead settings… - [Mass unassign leads](https://docs.commpeak.com/reference/mass_unassign_campaign_leads.md): **Access:** write. Not available to read-only API credentials (returns 403). Remove many leads from a campaign in a single request. **When to use.** Take a set of leads off a campaign without… - [Get campaign leads](https://docs.commpeak.com/reference/get_all_campaigns_leads.md): **Access:** read-only. Available to read-only API credentials. Retrieve campaign leads with all their details. **When to use.** List the leads assigned to your campaigns, optionally narrowed to a… - [Get campaign leads (path filters)](https://docs.commpeak.com/reference/get_all_campaigns_leads_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Comments - [Create mass comments](https://docs.commpeak.com/reference/create_mass_comments.md): **Access:** write. Not available to read-only API credentials (returns 403). Add several comments to campaign leads in a single request. **When to use.** Create many comments at once instead of… - [Get comments](https://docs.commpeak.com/reference/get_comments.md): **Access:** read-only. Available to read-only API credentials. Retrieve the comments attached to your campaign leads, newest records first. **When to use.** Pull the notes left on leads by your… - [Create comment](https://docs.commpeak.com/reference/create_comment.md): **Access:** write. Not available to read-only API credentials (returns 403). Add a comment to a campaign lead. **Parameters.** Send the following in the request body. All three are required: -… - [Get comments (path filters)](https://docs.commpeak.com/reference/get_comments_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - DNCs - [Mass approve or unapprove DNC](https://docs.commpeak.com/reference/mass_dnc.md): **Access:** write. Not available to read-only API credentials (returns 403). Approve or unapprove many Do Not Call (DNC) entries in a single request, and optionally create any that do not exist yet.… - [Get DNC by phone](https://docs.commpeak.com/reference/get_dnc_by_phone.md): **Access:** read-only. Available to read-only API credentials. Retrieve a Do Not Call (DNC) entry by phone number. **When to use.** Check whether a specific number is on your DNC list when you do… - [Approve DNC phone](https://docs.commpeak.com/reference/approve_dnc.md): **Access:** write. Not available to read-only API credentials (returns 403). Move a Do Not Call (DNC) entry to the approved list. **When to use.** Approve a single number so it is enforced on your… - [Unapprove DNC phone](https://docs.commpeak.com/reference/unapprove_dnc.md): **Access:** write. Not available to read-only API credentials (returns 403). Remove a Do Not Call (DNC) entry from the approved list. **When to use.** Unapprove a single number that was previously… - [Get DNC](https://docs.commpeak.com/reference/get_dnc_by_id.md): **Access:** read-only. Available to read-only API credentials. Retrieve a single Do Not Call (DNC) entry by its ID. **When to use.** Drill down to the full detail of one DNC entry, for example from… - [Delete DNC](https://docs.commpeak.com/reference/delete_dnc.md): **Access:** write. Not available to read-only API credentials (returns 403). Delete a Do Not Call (DNC) entry. **When to use.** Permanently remove an entry from your DNC list so the number can be… - [Get DNC list](https://docs.commpeak.com/reference/get_dnc_list.md): **Access:** read-only. Available to read-only API credentials. Retrieve the Do Not Call (DNC) entries in your account, so you can review which numbers are blocked from dialing. **When to use.**… - [Create DNC](https://docs.commpeak.com/reference/create_dnc.md): **Access:** write. Not available to read-only API credentials (returns 403). Add a phone number to your Do Not Call (DNC) list. **When to use.** Block a single number from being dialed. To approve… - [Get DNC by phone (path filters)](https://docs.commpeak.com/reference/get_dnc_by_phone_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Approve DNC phone (path filters)](https://docs.commpeak.com/reference/approve_dnc_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Unapprove DNC phone (path filters)](https://docs.commpeak.com/reference/unapprove_dnc_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get DNC (path filters)](https://docs.commpeak.com/reference/get_dnc_by_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get DNC list (path filters)](https://docs.commpeak.com/reference/get_dnc_list_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Leads - [Get extended lead information](https://docs.commpeak.com/reference/get_leads_extended_data.md): **Access:** read-only. Available to read-only API credentials. Retrieve leads together with their extended campaign information. **When to use.** Fetch leads enriched with campaign-level details… - [Delete Leads](https://docs.commpeak.com/reference/mass_delete_leads.md): **Access:** write. Not available to read-only API credentials (returns 403). Delete multiple leads that match a filter. **When to use.** Remove many leads in one request. To delete a single known… - [Update Leads](https://docs.commpeak.com/reference/mass_update_leads.md): **Access:** write. Not available to read-only API credentials (returns 403). Update multiple leads that match a filter, applying the same changes to each. **When to use.** Change many leads in one… - [Get leads paginated](https://docs.commpeak.com/reference/get_leads_paginated.md): **Access:** read-only. Available to read-only API credentials. Path-paginated variant of `get_all_leads`: `limit_offset` is `limit;offset`, e.g. `50;0`. - [Create Lead](https://docs.commpeak.com/reference/create_lead.md): **Access:** write. Not available to read-only API credentials (returns 403). Create one or more leads in a single request. **When to use.** Import leads into your account in bulk. To change… - [Get all leads](https://docs.commpeak.com/reference/get_all_leads.md): **Access:** read-only. Available to read-only API credentials. Retrieve the leads in your account, most recent first. **When to use.** Browse, export, or sync your lead records into your own… - [Update Lead](https://docs.commpeak.com/reference/update_lead.md): **Access:** write. Not available to read-only API credentials (returns 403). Update the fields of a single lead. **When to use.** Change one lead you already know by id. To update many leads at… - [Delete Lead](https://docs.commpeak.com/reference/delete_lead.md): **Access:** write. Not available to read-only API credentials (returns 403). Delete a single lead by its id. Returns 204 No Content on success, or 404 if the lead does not exist. - [Get all leads (path filters)](https://docs.commpeak.com/reference/get_all_leads_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Lead-Files - [Get lead file by ID](https://docs.commpeak.com/reference/get_lead_file_by_id.md): **Access:** read-only. Available to read-only API credentials. Retrieve a specific lead file by its id. **When to use.** Look up a single lead file when you already know its id. To list every lead… - [Get all lead files](https://docs.commpeak.com/reference/get_all_lead_files.md): **Access:** read-only. Available to read-only API credentials. Retrieve the lead files available in your account. **When to use.** List the lead files you have uploaded, for example to audit them… - [Get lead file by ID (path filters)](https://docs.commpeak.com/reference/get_lead_file_by_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get all lead files (path filters)](https://docs.commpeak.com/reference/get_all_lead_files_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Users - [Get Breaks](https://docs.commpeak.com/reference/get_breaks.md): **Access:** read-only. Available to read-only API credentials. Returns all breaks configured in your account. **When to use.** Look up the available break types, for example to map break IDs to… - [Get Users Breaks](https://docs.commpeak.com/reference/get_users_breaks.md): **Access:** read-only. Available to read-only API credentials. Returns the break sessions recorded for users within a time period. **When to use.** Report on when agents were on break, optionally… - [Create User](https://docs.commpeak.com/reference/create_user.md): **Access:** write. Not available to read-only API credentials (returns 403). Creates a new user and returns the created record. **When to use.** Add a user to your account. If a user with the same… - [Get all users](https://docs.commpeak.com/reference/users_get_all.md): **Access:** read-only. Available to read-only API credentials. Returns every user in your account. **When to use.** Fetch the full list of users, for example to sync accounts or build a directory.… - [Update User](https://docs.commpeak.com/reference/update_user.md): **Access:** write. Not available to read-only API credentials (returns 403). Updates the specified user and returns the updated record. **When to use.** Change one or more fields on an existing… - [Delete User](https://docs.commpeak.com/reference/delete_user.md): **Access:** write. Not available to read-only API credentials (returns 403). Deletes the specified user. Returns 204 No Content on success. - [Get user](https://docs.commpeak.com/reference/user_get_by_id.md): **Access:** read-only. Available to read-only API credentials. Returns the full record for a single user. **When to use.** Fetch one user when you already know their ID. To list all users, use `GET… - [Get Users Breaks (path filters)](https://docs.commpeak.com/reference/get_users_breaks_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get Breaks (path filters)](https://docs.commpeak.com/reference/get_breaks_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get user (path filters)](https://docs.commpeak.com/reference/user_get_by_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get all users (path filters)](https://docs.commpeak.com/reference/users_get_all_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Desks - [Update desk breaks](https://docs.commpeak.com/reference/set_desk_breaks.md): **Access:** write. Not available to read-only API credentials (returns 403). Configures which breaks are available to agents on a desk. **Parameters.** `id` (path): the desk to update.… - [Get desks](https://docs.commpeak.com/reference/get_desks.md): **Access:** read-only. Available to read-only API credentials. Returns the desks in your account, each with the users assigned to it. **When to use.** List desks before assigning users to them or… - [Create desk](https://docs.commpeak.com/reference/create_desk.md): **Access:** write. Not available to read-only API credentials (returns 403). Creates a desk and assigns users to it. **Parameters.** `name` (required): the desk name. `userIds` (required): the IDs… - [Update desk](https://docs.commpeak.com/reference/update_desk.md): **Access:** write. Not available to read-only API credentials (returns 403). Updates a desk's name and the set of users assigned to it. **Parameters.** `id` (path): the desk to update. `name`: a… - [Get desks (path filters)](https://docs.commpeak.com/reference/get_desks_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Groups - [Update group](https://docs.commpeak.com/reference/update_group.md): **Access:** write. Not available to read-only API credentials (returns 403). Update the settings of a user group identified by `id`. **When to use.** Change a group's name, description, dialing… - [Delete group](https://docs.commpeak.com/reference/delete_group.md): **Access:** write. Not available to read-only API credentials (returns 403). Delete the user group identified by `id`. **When to use.** Permanently remove a user group you no longer need.… - [Get group](https://docs.commpeak.com/reference/group_get_by_id.md): **Access:** read-only. Available to read-only API credentials. Retrieve a single user group by its numeric `id`, with all of its settings. **When to use.** Read one group's full configuration, for… - [Get all groups](https://docs.commpeak.com/reference/get_all_groups.md): **Access:** read-only. Available to read-only API credentials. Retrieve the user groups defined in your account. **When to use.** List your user (agent) groups, or look up a group's `id` before… - [Get assigned users](https://docs.commpeak.com/reference/users_get_by_group_id.md): **Access:** read-only. Available to read-only API credentials. Retrieve the users (agents) assigned to a user group. **When to use.** See which agents belong to a group. Send the group `id` in the… - [Get assigned campaigns](https://docs.commpeak.com/reference/campaigns_get_by_group_id.md): **Access:** read-only. Available to read-only API credentials. Retrieve the campaigns assigned to a user group. **When to use.** See which campaigns a group dials. Send the group `id` in the path.… - [Get assigned users (path filters)](https://docs.commpeak.com/reference/users_get_by_group_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get assigned campaigns (path filters)](https://docs.commpeak.com/reference/campaigns_get_by_group_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get group (path filters)](https://docs.commpeak.com/reference/group_get_by_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get all groups (path filters)](https://docs.commpeak.com/reference/get_all_groups_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Logs - [Get all logs](https://docs.commpeak.com/reference/get_logs.md): **Access:** read-only. Available to read-only API credentials. Returns audit log entries created within a time range, so you can review configuration and data changes across your account. **When to… - [Get logs object types](https://docs.commpeak.com/reference/get_logs_object_types.md): **Access:** read-only. Available to read-only API credentials. Returns the list of object types available in the audit logs, for use as the object_type filter on GET /logs. - [Get all logs](https://docs.commpeak.com/reference/get_all_logs.md): **Access:** read-only. Available to read-only API credentials. Path-paginated variant of `get_logs`; accepts the same `from` / `till` / `object_type` / `object_id` / `user_id` query filters. - [Get all logs (path filters)](https://docs.commpeak.com/reference/get_logs_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - API-Logs - [Get API logs](https://docs.commpeak.com/reference/get_api_logs.md): **Access:** read-only. Available to read-only API credentials. Returns a list of logged API calls, narrowed by the filters you supply. **When to use.** Audit or troubleshoot how your API requests… - [Get API logs (path filters)](https://docs.commpeak.com/reference/get_api_logs_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Speech-Recognition - [Get supported languages](https://docs.commpeak.com/reference/get_speech_languages.md): **Access:** read-only. Available to read-only API credentials. Return the languages supported by speech recognition, as a map of language code to language name. - [Get Speech for call id](https://docs.commpeak.com/reference/get_speech_for_call.md): **Access:** read-only. Available to read-only API credentials. Retrieve the speech recognition transcription for a single call, by call ID. **When to use.** Fetch a finished transcription on… - [Send to speech recognition](https://docs.commpeak.com/reference/send_speech_recognition.md): **Access:** write. Not available to read-only API credentials (returns 403). Send existing call recordings to speech recognition for transcription. **When to use.** Transcribe calls that were… - [Send Speech with callback URL](https://docs.commpeak.com/reference/send_speech_with_callback.md): **Access:** write. Not available to read-only API credentials (returns 403). Search transcribed calls and deliver each result to a callback URL you provide. **When to use.** Automate delivery of… - [Get supported languages (path filters)](https://docs.commpeak.com/reference/get_speech_languages_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get Speech for call id (path filters)](https://docs.commpeak.com/reference/get_speech_for_call_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Send Speech with callback URL (path filters)](https://docs.commpeak.com/reference/send_speech_with_callback_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - DIDs - [Get filtered dynamic caller ids](https://docs.commpeak.com/reference/get_dynamic_caller_ids_by_params.md): **Access:** read-only. Available to read-only API credentials. Retrieve the dynamic caller IDs that match a filter. **When to use.** Narrow the list to the caller IDs you care about, for example… - [Get all dynamic caller ids](https://docs.commpeak.com/reference/get_all_dynamic_caller_ids.md): **Access:** read-only. Available to read-only API credentials. Retrieve the full list of dynamic caller IDs in your account. **When to use.** Browse or export your dynamic caller IDs, or look up a… - [Activate or deactivate dynamic caller ids](https://docs.commpeak.com/reference/update_dynamic_caller_ids.md): **Access:** write. Not available to read-only API credentials (returns 403). Activate or deactivate one or more dynamic caller IDs in a single request. **Parameters.** - `is_active` (integer,… - [Get filtered dynamic caller ids (path filters)](https://docs.commpeak.com/reference/get_dynamic_caller_ids_by_params_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get all dynamic caller ids (path filters)](https://docs.commpeak.com/reference/get_all_dynamic_caller_ids_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Route-Caller-IDs - [Get Route Caller IDs](https://docs.commpeak.com/reference/get_route_caller_ids.md): **Access:** read-only. Available to read-only API credentials. Returns all route caller IDs available in your account. **When to use.** List the caller IDs you can assign to outbound routes. To… - [Create Route CallerID](https://docs.commpeak.com/reference/create_route_caller_id.md): **Access:** write. Not available to read-only API credentials (returns 403). Creates a new route caller ID. **Parameters.** - `caller_id_name` (string, required): Caller ID name. Letters and… - [Enable/Disable Route CallerID](https://docs.commpeak.com/reference/toggle_route_caller_id.md): **Access:** write. Not available to read-only API credentials (returns 403). Enables or disables an existing route caller ID. **Parameters.** - `id` (integer, required): ID of the route caller ID… - [Get Route CallerID](https://docs.commpeak.com/reference/get_route_caller_id_by_id.md): **Access:** read-only. Available to read-only API credentials. Returns a single route caller ID by its ID. Pass the record ID in the path. To list every record, use GET /route-caller-ids. - [Delete Route CallerID](https://docs.commpeak.com/reference/delete_route_caller_id.md): **Access:** write. Not available to read-only API credentials (returns 403). Deletes a route caller ID by its ID and removes it from every outbound route that lists it. A caller ID that is the only… - [Get Route CallerID (path filters)](https://docs.commpeak.com/reference/get_route_caller_id_by_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get Route Caller IDs (path filters)](https://docs.commpeak.com/reference/get_route_caller_ids_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Timezones - [List timezones](https://docs.commpeak.com/reference/get_all_timezones.md): **Access:** read-only. Available to read-only API credentials. Returns every supported timezone as a map of timezone id to a "name (GMT offset)" label. Use it to resolve the timezone ids referenced… - [List timezones (path filters)](https://docs.commpeak.com/reference/get_all_timezones_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - CDRs - [Aggregate CDRs](https://docs.commpeak.com/reference/aggregate_cdrs.md): **Access:** read-only. Available to read-only API credentials. Aggregate the Call Analytics call records into grouped summary rows over a required date range. **When to use.** Produce summary rows… - [Get all CDRs](https://docs.commpeak.com/reference/get_all_cdrs.md): **Access:** read-only. Available to read-only API credentials. Retrieve the detailed call records that power the Call Analytics report. **When to use.** Pull the individual call rows behind Call… - [Get all CDRs (path filters)](https://docs.commpeak.com/reference/get_all_cdrs_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Devices - [Delete device](https://docs.commpeak.com/reference/delete_devices.md): **Access:** write. Not available to read-only API credentials (returns 403). Delete one or more devices by extension. **When to use.** Remove devices you no longer need. Deleting a device also… - [Get devices list](https://docs.commpeak.com/reference/get_all_devices.md): **Access:** read-only. Available to read-only API credentials. Retrieve the list of devices (extensions) in your account. **When to use.** List and audit the devices available for registration. To… - [Create device](https://docs.commpeak.com/reference/create_device.md): **Access:** write. Not available to read-only API credentials (returns 403). Create a new device (extension). **When to use.** Provision a new extension that can register and place or receive… - [Update device](https://docs.commpeak.com/reference/update_device.md): **Access:** write. Not available to read-only API credentials (returns 403). Update an existing device. **When to use.** Rename a device or reset its registration password. **Request body.**… - [Get device](https://docs.commpeak.com/reference/get_device_by_id.md): **Access:** read-only. Available to read-only API credentials. Retrieve a single device by its extension. **When to use.** Drill-down to the full detail of one device, for example from a list row.… - [Get device (path filters)](https://docs.commpeak.com/reference/get_device_by_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get devices list (path filters)](https://docs.commpeak.com/reference/get_all_devices_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Reference-Data - [Get a reference dataset](https://docs.commpeak.com/reference/get_reference_data.md): **Access:** read-only. Available to read-only API credentials. Returns a single reference dataset by name, so you can map the codes that appear in call data to human-readable labels in your own… - [Get a reference dataset (path filters)](https://docs.commpeak.com/reference/get_reference_data_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get all reference datasets](https://docs.commpeak.com/reference/get_reference_datasets.md): **Access:** read-only. Available to read-only API credentials. Returns every reference dataset in one response, keyed by dataset name. **When to use.** Fetch all the fixed lookup values used across… - Call-Center-Regions - [Get Call Center Regions](https://docs.commpeak.com/reference/get_call_center_regions.md): **Access:** read-only. Available to read-only API credentials. Returns the call center regions available to your account, each with its domain, IP address and description. - [Get Call Center Regions (path filters)](https://docs.commpeak.com/reference/get_call_center_regions_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Statuses - [Get all statuses](https://docs.commpeak.com/reference/get_all_statuses.md): **Access:** read-only. Available to read-only API credentials. Retrieve the list of statuses that can be assigned to leads in your campaigns. **When to use.** Build a status picker, or map your own… - [Get specific status](https://docs.commpeak.com/reference/statuses_get_by_id.md): **Access:** read-only. Available to read-only API credentials. Retrieve a single status by its numeric `id`. **When to use.** Drill down to one status's details, for example after picking it from… - [Get specific status (path filters)](https://docs.commpeak.com/reference/statuses_get_by_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get all statuses (path filters)](https://docs.commpeak.com/reference/get_all_statuses_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Priority-Groups - [Get priority groups](https://docs.commpeak.com/reference/get_all_priority_groups.md): **Access:** read-only. Available to read-only API credentials. Retrieve the priority groups configured in your account. **When to use.** List your priority groups, or look up a priority group's… - [Get skill groups by priority group](https://docs.commpeak.com/reference/skill_group_get_by_priority_group_id.md): **Access:** read-only. Available to read-only API credentials. Retrieve the skill groups assigned to a priority group, in priority order. **When to use.** Read the composition of a single priority… - [Get skill groups by priority group (path filters)](https://docs.commpeak.com/reference/skill_group_get_by_priority_group_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get priority groups (path filters)](https://docs.commpeak.com/reference/get_all_priority_groups_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Update priority group](https://docs.commpeak.com/reference/update_priority_group.md): **Access:** write. Not available to read-only API credentials (returns 403). Replace the skill groups assigned to a priority group and set their order. **When to use.** Define which skill groups… - Roles - [Get List Of Roles](https://docs.commpeak.com/reference/get_list_of_roles.md): **Access:** read-only. Available to read-only API credentials. Retrieve the list of user roles defined for your account. **When to use.** Populate a role picker, or look up a role's `id`, `level`… - [Get User role](https://docs.commpeak.com/reference/get_role.md): **Access:** read-only. Available to read-only API credentials. Retrieve a single user role by its numeric `id`. **When to use.** Drill down to one role's details, for example after picking it from… - [Update User role](https://docs.commpeak.com/reference/update_role.md): **Access:** write. Not available to read-only API credentials (returns 403). Update a user role and, optionally, the set of users assigned to it. Send the role `id` in the path. **When to use.**… - [Get User role (path filters)](https://docs.commpeak.com/reference/get_role_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get List Of Roles (path filters)](https://docs.commpeak.com/reference/get_list_of_roles_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Skill-Groups - [Get skill groups](https://docs.commpeak.com/reference/get_skill_groups.md): **Access:** read-only. Available to read-only API credentials. Retrieve all skill groups in your account, each with its assigned users. **When to use.** A skill group tags a set of users with a… - [Create skill group](https://docs.commpeak.com/reference/create_skill_group.md): **Access:** write. Not available to read-only API credentials (returns 403). Create a new skill group and return the created record. **When to use.** Group a set of users under a shared skill so… - [Update skill group](https://docs.commpeak.com/reference/update_skill_group.md): **Access:** write. Not available to read-only API credentials (returns 403). Update a skill group and, optionally, the set of users assigned to it. Send the skill group `id` in the path. **When to… - [Get skill groups (path filters)](https://docs.commpeak.com/reference/get_skill_groups_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Calls-Statistics - [Obtain Calls Statistics by filter summarized by period](https://docs.commpeak.com/reference/calls_statistics.md): **Access:** read-only. Available to read-only API credentials. Curated wrapper over `/api/cdrs/cdrs-aggregate`: forces yearly period and a fixed set of useful fields (total calls, successful calls,… - Click2Call - [Call](https://docs.commpeak.com/reference/c2c_call.md): > **Called directly on your tenant, not through `api.commpeak.com`.** This endpoint is served by `https://{sub_domain}.td.commpeak.com/integrations/c2c` and is not authorized by your Portal API key:… ## API Reference: TextPeak Platform API - [Overview](https://docs.commpeak.com/reference/textpeak-api-overview.md) - Domains - [Get All Domains](https://docs.commpeak.com/reference/list_domains.md): List all domains in your account. **Pagination.** `page` (1-based, default `1`) and `itemsPerPage` (default `30`, at most `1000`). The response is a plain JSON array. **Authentication:** TextPeak… - [Add domain](https://docs.commpeak.com/reference/create_domain.md): Register a new domain. Only `name` is required; the assigned `ip` is returned for you to configure DNS. A new domain starts as `NOT_CONFIGURED` (or `VALIDATION_PENDING` while it is reviewed) until… - [Archive/Unarchive domain](https://docs.commpeak.com/reference/archive_domain.md): Archive or unarchive a domain. Send `archive: true` to archive, or `archive: false` to restore it. **Authentication:** TextPeak API key in the `Authorization` header (see **Authentication** in the… - [Get domain](https://docs.commpeak.com/reference/get_domain.md): Retrieve a single domain by its ID. **Authentication:** TextPeak API key in the `Authorization` header (see **Authentication** in the API Overview). - [Delete domain](https://docs.commpeak.com/reference/delete_domain.md): Delete a domain. To disable a domain without losing its configuration, archive it instead. Deleting is permanent from your side: the item stops appearing in lists and can no longer be used. A `GET`… - Senders - [Get all senders](https://docs.commpeak.com/reference/list_senders.md): List all sender identities in your account. **Pagination.** `page` (1-based, default `1`) and `itemsPerPage` (default `30`, at most `1000`). The response is a plain JSON array. **Authentication:**… - [Add sender](https://docs.commpeak.com/reference/create_sender.md): Create a new alphanumeric sender ID. Both `name` and `value` are required. New senders start as `WAITING_APPROVE` and must be approved before use. **Rejected values.** A `value` that already exists,… - [Get sender](https://docs.commpeak.com/reference/get_sender.md): Retrieve a single sender by its ID. **Authentication:** TextPeak API key in the `Authorization` header (see **Authentication** in the API Overview). - [Update sender name](https://docs.commpeak.com/reference/update_sender.md): Update a sender. Only `name` can be changed; `value` is set at creation and is immutable. WhatsApp senders cannot be renamed here. **Authentication:** TextPeak API key in the `Authorization` header… - [Delete sender](https://docs.commpeak.com/reference/delete_sender.md): Delete a sender identity. Deleting is permanent from your side: the item stops appearing in lists and can no longer be used. A `GET` by ID can still return it. **Authentication:** TextPeak API key… - Channel-Events - [Get all channel event templates](https://docs.commpeak.com/reference/list_stream_events.md): List all event templates in your account. Approved WhatsApp templates are synced from Meta before the list is returned. **Pagination.** `page` (1-based, default `1`) and `itemsPerPage` (default… - [Create channel event template](https://docs.commpeak.com/reference/create_stream_event.md): Create a reusable event template. `name`, `streamId`, `text` and `eventKey` are required; trigger it later by passing `eventKey` as `event` on the send endpoints. On SMS channels, every… - [Get channel event template](https://docs.commpeak.com/reference/get_stream_event.md): Retrieve a single event template by its ID. **Authentication:** TextPeak API key in the `Authorization` header (see **Authentication** in the API Overview). - [Update channel event template](https://docs.commpeak.com/reference/update_stream_event.md): Update an event template. Only the fields you send are changed. **Authentication:** TextPeak API key in the `Authorization` header (see **Authentication** in the API Overview). - [Delete channel event template](https://docs.commpeak.com/reference/delete_stream_event.md): Delete an event template. Deleting is permanent from your side: the item stops appearing in lists and can no longer be used. A `GET` by ID can still return it. **Authentication:** TextPeak API key… - Channels - [Get all channels](https://docs.commpeak.com/reference/list_streams.md): List all channels in your account. Your account's default channel is not listed. **Pagination.** `page` (1-based, default `1`) and `itemsPerPage` (default `30`, at most `1000`). The response is a… - [Add channel](https://docs.commpeak.com/reference/create_stream.md): Create a new channel. `name` is required; other fields are optional and depend on the channel `type` (default `MARKETING`). **Lifecycle.** SMS channels (`MARKETING`, `TRANSACTIONAL`, `OTP`,… - [Get incoming messages](https://docs.commpeak.com/reference/list_incoming_messages.md): List incoming (inbound) messages for your account, newest first. Supports pagination and filtering by channel, sender phone number, and date range. **Pagination.** `page` (1-based, default `1`) and… - [Get messages](https://docs.commpeak.com/reference/list_messages.md): List sent (outgoing) messages for your account, newest first. Supports pagination and filtering by channel, status, recipient, and date range. **Pagination.** `page` (1-based, default `1`) and… - [Get channel](https://docs.commpeak.com/reference/get_stream.md): Retrieve a single channel by its ID. **Authentication:** TextPeak API key in the `Authorization` header (see **Authentication** in the API Overview). - [Update channel](https://docs.commpeak.com/reference/update_stream.md): Update an existing channel. Only the fields you send are changed. **Activation.** A request that carries `params` is a configuration step and never activates the channel. To activate a `DRAFT`… - [Delete channel](https://docs.commpeak.com/reference/delete_stream.md): Delete a channel. Its senders, sender profiles, event templates and incoming routing are deleted with it. Deleting is permanent from your side: the item stops appearing in lists and can no longer be… - [Get channel token](https://docs.commpeak.com/reference/get_stream_token.md): Retrieve the channel token for a channel. This token authenticates the messaging endpoints (`simple_send`, `template_send`, …) for that channel — see the token types in the API Overview.… - [Reset token](https://docs.commpeak.com/reference/reset_stream_token.md): Rotate the channel token: invalidate the current token and generate a new one. Any client using the old token must be updated. **Result.** Always HTTP `200`: check `status` (`1` on success) and read… - Users - [Revoke user tokens](https://docs.commpeak.com/reference/revoke_user_tokens.md): Sign users of your account out of the TextPeak platform by revoking their refresh tokens. They must log in again once their current session expires. **When to use.** Offboarding a user, or… - Webhook-Requests - [Get all webhook requests](https://docs.commpeak.com/reference/list_webhook_requests.md): List the callbacks your webhooks have sent: the payload, your endpoint's HTTP status and response, and the retries made. Use it to audit deliveries or debug an endpoint. **Pagination.** `page`… - [Get webhook request](https://docs.commpeak.com/reference/get_webhook_request.md): Retrieve a single webhook callback by its ID. **Authentication:** TextPeak API key in the `Authorization` header (see **Authentication** in the API Overview). - Webhooks - [Get all webhooks](https://docs.commpeak.com/reference/list_webhooks.md): List all webhooks in your account. **Pagination.** `page` (1-based, default `1`) and `itemsPerPage` (default `30`, at most `1000`). The response is a plain JSON array. **Authentication:** TextPeak… - [Create Webhook](https://docs.commpeak.com/reference/create_webhook.md): Register a webhook to receive event callbacks. `name`, `url`, `webhookTrigger` and `method` are required. **URL.** Must be an absolute `https://` URL; anything else is rejected with `500`.… - [Get webhook](https://docs.commpeak.com/reference/get_webhook.md): Retrieve a single webhook by its ID. **Authentication:** TextPeak API key in the `Authorization` header (see **Authentication** in the API Overview). - [Update webhook](https://docs.commpeak.com/reference/update_webhook.md): Update a webhook. Only the fields you send are changed. **Authentication:** TextPeak API key in the `Authorization` header (see **Authentication** in the API Overview). - [Delete webhook](https://docs.commpeak.com/reference/delete_webhook.md): Delete a webhook. Deleting is permanent from your side: the item stops appearing in lists and can no longer be used. A `GET` by ID can still return it. **Authentication:** TextPeak API key in the… ## API Reference: TextPeak Messaging API - SMS - [Send simple message](https://docs.commpeak.com/reference/stream_simple_send.md): Send one or more SMS messages in a single request. Each message is queued and delivered independently, so a batch can partially succeed — always inspect every item in the response. **Senders.** Set… - [Send single simple message](https://docs.commpeak.com/reference/stream_simple_send_single.md): Send a single message in one request. The body is a flat object — ideal for transactional, one-off messages. For high volume, use `simple_send` to batch up to 250 messages per call. **Extras.** On… - [Send template message](https://docs.commpeak.com/reference/stream_template_send.md): Send a templated message to one or more recipients. Provide the template once — inline in `message_template` with `[placeholder]` tokens, or as a saved template by its `event` key — then supply each… - [Send event message](https://docs.commpeak.com/reference/stream_event_send.md): Trigger a saved event template for one or more recipients, on SMS or WhatsApp channels. Identify the template with `event` (its `eventKey`) and pass each recipient's values in `template_variables`.… - OTP Service - [OTP Auth Request](https://docs.commpeak.com/reference/stream_otp_auth.md): Send a one-time password (OTP) to a recipient. TextPeak generates the code, delivers it using your OTP settings, and returns a `request_uuid`. **Channels and fallback.** Your OTP settings list the… - [OTP Verify Request](https://docs.commpeak.com/reference/stream_otp_verify.md): Verify the code a recipient submitted against the active OTP for their phone number. Returns `verification: true` on a match, otherwise `false`. A wrong code is a normal `false` result with HTTP… - Message-Status - [Get message status](https://docs.commpeak.com/reference/stream_message_status.md): Look up the current delivery status of up to 500 messages by their `message_uuid`. Unknown IDs, and messages sent on another channel, are left out of the results. Prefer delivery webhooks for… - WhatsApp - [Send WhatsApp media](https://docs.commpeak.com/reference/whatsapp_send_media.md): Send a WhatsApp media message (image, document, audio, video, …) that references a file you have already uploaded with the **WhatsApp upload file** endpoint. Pass the `media_id` returned by that… - [Send WhatsApp text template](https://docs.commpeak.com/reference/whatsapp_send_template.md): Send an approved WhatsApp Business text template to one or more recipients. Identify the template with `event`, and supply its variables per recipient by section: `body`, and `header` when the… - [Send OTP template message](https://docs.commpeak.com/reference/whatsapp_send_otp.md): Send a one-time code with your approved WhatsApp **authentication** template. You send a flat body: the template (`event`), the recipient and the `code`. The gateway places the code where an… - [Send WhatsApp template with media](https://docs.commpeak.com/reference/whatsapp_send_template_media.md): Send an approved WhatsApp Business template whose header is an **image**. The request has the same shape as **Send WhatsApp text template**, with one more field on each recipient: the header image,… - [Send WhatsApp marketing template](https://docs.commpeak.com/reference/whatsapp_send_marketing.md): Send an approved WhatsApp **marketing** template to one or more recipients through Meta's Marketing Messages API. The request and the response have the same shape as **Send WhatsApp text template**:… - [Send WhatsApp marketing template with media](https://docs.commpeak.com/reference/whatsapp_send_marketing_media.md): Send an approved WhatsApp **marketing** template whose header is an **image**, through Meta's Marketing Messages API. The request has the same shape as **Send WhatsApp marketing template**, with one… - [Send WhatsApp template with buttons](https://docs.commpeak.com/reference/whatsapp_send_template_buttons.md): Send an approved WhatsApp Business template that has buttons. The request has the same shape as **Send WhatsApp text template**, with one more section in `template_variables`: `buttons`. **Button… - [WhatsApp upload file](https://docs.commpeak.com/reference/streams_upload_media.md): Upload a media file to use in WhatsApp sends. The response returns a `media_id` that you then pass to the **Send WhatsApp media** endpoint as `media.media_id`, or, for an image, to **Send WhatsApp… ## API Reference: CommPeak Lookup API - [Overview](https://docs.commpeak.com/reference/lookup-api-overview.md): Check whether phone numbers are valid and active with real-time and bulk HLR and validation lookups. - Token - [Get token balance and rates](https://docs.commpeak.com/reference/get_balance.md): Return the token credit balance and the per-request-type cost (HLR / Validate). - Requests - [Lookup for single number](https://docs.commpeak.com/reference/lookup_single_phone_number.md): HLR/Validate Lookup for single phone number - [Create Async Task for several phone numbers](https://docs.commpeak.com/reference/create_multiple_phone_numbers_lookup_task.md): Submit a batch of phone numbers for an asynchronous HLR or Validate lookup. Each number in `keys` can carry a `uid` that is echoed back with its result. The response returns the `task_id` plus the… - [Create Async Task for phone numbers from file](https://docs.commpeak.com/reference/upload_file_multiple_phone_numbers_lookup_task.md): Create an asynchronous HLR or Validate lookup task from an uploaded file of phone numbers, sent as multipart form data in the `data_file` field. Optionally pass `respond_url` to receive a webhook… - [Get Async Task Result](https://docs.commpeak.com/reference/get_lookup_task_result.md): Return the status and per-number results of an asynchronous lookup task: total, processed and duplicate counts, the task cost, and a map of phone number to lookup result once `completed` is true.… - [Get Details About Async Task](https://docs.commpeak.com/reference/get_lookup_task_metadata.md): Return the summary of an asynchronous lookup task (completion state, total / processed / duplicate counts and cost) without fetching the full per-number results. Use it to poll a task until… - [Download Async Task Results](https://docs.commpeak.com/reference/download_lookup_task_result_file.md): Download the results of a completed asynchronous lookup task as a file. - [Search for Results](https://docs.commpeak.com/reference/search_lookup_results.md): Search per-number lookup results across past tasks. Filter by phone number (exact, prefix or substring), task IDs, task creation date range, lookup type, validation outcome, number type, country, and… ## API Reference: CommPeak PBX API - [Overview](https://docs.commpeak.com/reference/cloud_pbx_overview.md): Manage Cloud PBX calls, users, devices, caller IDs, and logs through the PBX API. - [Core API Concepts](https://docs.commpeak.com/reference/core-api-concepts-pbx.md): Authentication, URL structure, paging, filtering, rate limits, and status codes for the PBX API. - Calls - [Get all calls](https://docs.commpeak.com/reference/pbx_get_all_calls.md): **Access:** read-only. Available to read-only API credentials. Retrieve calls handled by the Cloud PBX, newest first. **When to use.** Historical and audit views of call activity. For the detailed… - [Get specific call's record file](https://docs.commpeak.com/reference/pbx_get_call_record_by_id.md): **Access:** read-only. Available to read-only API credentials. Download the audio recording for a call as a binary attachment. **When to use.** Retrieve the recording file for a specific call `id`.… - [Get specific call](https://docs.commpeak.com/reference/pbx_get_call_by_id.md): **Access:** read-only. Available to read-only API credentials. Retrieve a single call by its numeric `id`. **When to use.** Drill-down to the full detail of one call, for example from a list row.… - [Get specific call (path filters)](https://docs.commpeak.com/reference/pbx_get_call_by_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get all calls (path filters)](https://docs.commpeak.com/reference/pbx_get_all_calls_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Users - [Get Breaks](https://docs.commpeak.com/reference/pbx_get_breaks.md): **Access:** read-only. Available to read-only API credentials. Returns all breaks configured in your account. **When to use.** Look up the available break types, for example to map break IDs to… - [Get Users Breaks](https://docs.commpeak.com/reference/pbx_get_users_breaks.md): **Access:** read-only. Available to read-only API credentials. Returns the break sessions recorded for users within a time period. **When to use.** Report on when agents were on break, optionally… - [Get all users](https://docs.commpeak.com/reference/pbx_users_get_all.md): **Access:** read-only. Available to read-only API credentials. Returns every user in your account. **When to use.** Fetch the full list of users, for example to sync accounts or build a directory.… - [Create User](https://docs.commpeak.com/reference/pbx_create_user.md): **Access:** write. Not available to read-only API credentials (returns 403). Creates a new user and returns the created record. **When to use.** Add a user to your account. If a user with the same… - [Get user](https://docs.commpeak.com/reference/pbx_user_get_by_id.md): **Access:** read-only. Available to read-only API credentials. Returns the full record for a single user. **When to use.** Fetch one user when you already know their ID. To list all users, use `GET… - [Update User](https://docs.commpeak.com/reference/pbx_update_user.md): **Access:** write. Not available to read-only API credentials (returns 403). Updates the specified user and returns the updated record. **When to use.** Change one or more fields on an existing… - [Delete User](https://docs.commpeak.com/reference/pbx_delete_user.md): **Access:** write. Not available to read-only API credentials (returns 403). Deletes the specified user. Returns 204 No Content on success. - [Get Users Breaks (path filters)](https://docs.commpeak.com/reference/pbx_get_users_breaks_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get Breaks (path filters)](https://docs.commpeak.com/reference/pbx_get_breaks_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get user (path filters)](https://docs.commpeak.com/reference/pbx_user_get_by_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get all users (path filters)](https://docs.commpeak.com/reference/pbx_users_get_all_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Logs - [Get all logs](https://docs.commpeak.com/reference/pbx_get_logs.md): **Access:** read-only. Available to read-only API credentials. Returns audit log entries created within a time range, so you can review configuration and data changes across your account. **When to… - [Get logs object types](https://docs.commpeak.com/reference/pbx_get_logs_object_types.md): **Access:** read-only. Available to read-only API credentials. Returns the list of object types available in the audit logs, for use as the object_type filter on GET /logs. - [Get all logs](https://docs.commpeak.com/reference/pbx_get_all_logs.md): **Access:** read-only. Available to read-only API credentials. Path-paginated variant of `pbx_get_logs`; accepts the same `from` / `till` / `object_type` / `object_id` / `user_id` query filters. - [Get all logs (path filters)](https://docs.commpeak.com/reference/pbx_get_logs_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - API-Logs - [Get API logs](https://docs.commpeak.com/reference/pbx_get_api_logs.md): **Access:** read-only. Available to read-only API credentials. Returns a list of logged API calls, narrowed by the filters you supply. **When to use.** Audit or troubleshoot how your API requests… - [Get API logs (path filters)](https://docs.commpeak.com/reference/pbx_get_api_logs_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Speech-Recognition - [Get supported languages](https://docs.commpeak.com/reference/pbx_get_speech_languages.md): **Access:** read-only. Available to read-only API credentials. Return the languages supported by speech recognition, as a map of language code to language name. - [Get Speech for call id](https://docs.commpeak.com/reference/pbx_get_speech_for_call.md): **Access:** read-only. Available to read-only API credentials. Retrieve the speech recognition transcription for a single call, by call ID. **When to use.** Fetch a finished transcription on… - [Send to speech recognition](https://docs.commpeak.com/reference/pbx_send_speech_recognition.md): **Access:** write. Not available to read-only API credentials (returns 403). Send existing call recordings to speech recognition for transcription. **When to use.** Transcribe calls that were… - [Send Speech with callback URL](https://docs.commpeak.com/reference/pbx_send_speech_with_callback.md): **Access:** write. Not available to read-only API credentials (returns 403). Search transcribed calls and deliver each result to a callback URL you provide. **When to use.** Automate delivery of… - [Get supported languages (path filters)](https://docs.commpeak.com/reference/pbx_get_speech_languages_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get Speech for call id (path filters)](https://docs.commpeak.com/reference/pbx_get_speech_for_call_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Send Speech with callback URL (path filters)](https://docs.commpeak.com/reference/pbx_send_speech_with_callback_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Route-Caller-IDs - [Get Route Caller IDs](https://docs.commpeak.com/reference/pbx_get_route_caller_ids.md): **Access:** read-only. Available to read-only API credentials. Returns all route caller IDs available in your account. **When to use.** List the caller IDs you can assign to outbound routes. To… - [Create Route CallerID](https://docs.commpeak.com/reference/pbx_create_route_caller_id.md): **Access:** write. Not available to read-only API credentials (returns 403). Creates a new route caller ID. **Parameters.** - `caller_id_name` (string, required): Caller ID name. Letters and… - [Enable/Disable Route CallerID](https://docs.commpeak.com/reference/pbx_toggle_route_caller_id.md): **Access:** write. Not available to read-only API credentials (returns 403). Enables or disables an existing route caller ID. **Parameters.** - `id` (integer, required): ID of the route caller ID… - [Get Route CallerID](https://docs.commpeak.com/reference/pbx_get_route_caller_id_by_id.md): **Access:** read-only. Available to read-only API credentials. Returns a single route caller ID by its ID. Pass the record ID in the path. To list every record, use GET /route-caller-ids. - [Delete Route CallerID](https://docs.commpeak.com/reference/pbx_delete_route_caller_id.md): **Access:** write. Not available to read-only API credentials (returns 403). Deletes a route caller ID by its ID and removes it from every outbound route that lists it. A caller ID that is the only… - [Get Route CallerID (path filters)](https://docs.commpeak.com/reference/pbx_get_route_caller_id_by_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get Route Caller IDs (path filters)](https://docs.commpeak.com/reference/pbx_get_route_caller_ids_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - CDRs - [Aggregate CDRs](https://docs.commpeak.com/reference/pbx_aggregate_cdrs.md): **Access:** read-only. Available to read-only API credentials. Aggregate the Call Analytics call records into grouped summary rows over a required date range. **When to use.** Produce summary rows… - [Get all CDRs](https://docs.commpeak.com/reference/pbx_get_all_cdrs.md): **Access:** read-only. Available to read-only API credentials. Retrieve the detailed call records that power the Call Analytics report. **When to use.** Pull the individual call rows behind Call… - [Get all CDRs (path filters)](https://docs.commpeak.com/reference/pbx_get_all_cdrs_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Devices - [Delete device](https://docs.commpeak.com/reference/pbx_delete_devices.md): **Access:** write. Not available to read-only API credentials (returns 403). Delete one or more devices by extension. **When to use.** Remove devices you no longer need. Deleting a device also… - [Get devices list](https://docs.commpeak.com/reference/pbx_get_all_devices.md): **Access:** read-only. Available to read-only API credentials. Retrieve the list of devices (extensions) in your account. **When to use.** List and audit the devices available for registration. To… - [Create device](https://docs.commpeak.com/reference/pbx_create_device.md): **Access:** write. Not available to read-only API credentials (returns 403). Create a new device (extension). **When to use.** Provision a new extension that can register and place or receive… - [Update device](https://docs.commpeak.com/reference/pbx_update_device.md): **Access:** write. Not available to read-only API credentials (returns 403). Update an existing device. **When to use.** Rename a device or reset its registration password. **Request body.**… - [Get device](https://docs.commpeak.com/reference/pbx_get_device_by_id.md): **Access:** read-only. Available to read-only API credentials. Retrieve a single device by its extension. **When to use.** Drill-down to the full detail of one device, for example from a list row.… - [Get device (path filters)](https://docs.commpeak.com/reference/pbx_get_device_by_id_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - [Get devices list (path filters)](https://docs.commpeak.com/reference/pbx_get_all_devices_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Reference-Data - [Get a reference dataset](https://docs.commpeak.com/reference/pbx_get_reference_data.md): **Access:** read-only. Available to read-only API credentials. Returns a single reference dataset by name, so you can map the codes that appear in call data to human-readable labels in your own… - [Get a reference dataset (path filters)](https://docs.commpeak.com/reference/pbx_get_reference_data_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Call-Center-Regions - [Get Call Center Regions](https://docs.commpeak.com/reference/pbx_get_call_center_regions.md): **Access:** read-only. Available to read-only API credentials. Returns the call center regions available to your account, each with its domain, IP address and description. - [Get Call Center Regions (path filters)](https://docs.commpeak.com/reference/pbx_get_call_center_regions_filtered.md): Same as the endpoint without the trailing `{filters}`, with filters, ordering, pagination and field selection encoded as path segments. See [Core API… - Click2Call - [Call](https://docs.commpeak.com/reference/c2c_call-1.md): > **Called directly on your tenant, not through `api.commpeak.com`.** This endpoint is served by `https://{sub_domain}.td.commpeak.com/integrations/c2c` and is not authorized by your Portal API key:… ## API Reference: PBX Stats API - [Overview](https://docs.commpeak.com/reference/pbx-stats-api.md) - CDRs - [Ongoing CDRs](https://docs.commpeak.com/reference/ongoingcdrs.md): List Ongoing Calls API - [Search CDRs](https://docs.commpeak.com/reference/searchcdrs.md): Search CDRs API - Management - [Whisper Call](https://docs.commpeak.com/reference/whispercall.md): Whisper Call API - [Hangup Call](https://docs.commpeak.com/reference/hangupcall.md): Hangup Call API - [List Prefixes](https://docs.commpeak.com/reference/listprefixes.md): List prefixes API - [List Pause Types](https://docs.commpeak.com/reference/listpausetypes.md): List all Pause Types API - [List Desks](https://docs.commpeak.com/reference/listdesks.md): List Desks API - [List Desks With IDs](https://docs.commpeak.com/reference/listdeskswithids.md): List Desks With IDs API - Manage Agents - [List Agents](https://docs.commpeak.com/reference/listagents.md): List all agents from your PBX Stats instance - [Agent Statistics](https://docs.commpeak.com/reference/agentstatistics.md): Agent Statistics API - [Add Agent](https://docs.commpeak.com/reference/addagent.md): Add Agent API - [Edit Agent](https://docs.commpeak.com/reference/editagent.md): Edit Agent Details API - [Pause Agent](https://docs.commpeak.com/reference/pauseagent.md): Pause Agent API - [UnPause Agent](https://docs.commpeak.com/reference/unpauseagent.md): UnPause Agent API - [Delete Agent](https://docs.commpeak.com/reference/deleteagent.md): Delete Agent API - [Add Device](https://docs.commpeak.com/reference/adddevice.md): Add Device API