Skip to main content

Voice v2 API (CCM)

Voice v2 APIs use the Contact Center Management (CCM) platform to make calls with agent/user context. Unlike Voice v1 (which works without user context), Voice v2 requires users to be added as co-workers in the Exotel dashboard.

Deprecated

Voice v2 is deprecated. For new integrations, use Voice v3 for enhanced call details. Existing v2 integrations continue to work.

Key Differences from Voice v1

FeatureVoice v1Voice v2 (CCM)
Endpoint prefix/v1/Accounts//v2/accounts/
Base domainapi.exotel.comccm-api.exotel.com
User contextNot requiredRequired — agents must be in dashboard
Agent devicesN/APhone, SIP, or WebRTC
Request formatForm-encodedJSON
Call directionAgent→Customer (From→To)Agent→Customer (from→to as JSON objects)

Base URL

https://<api_key>:<api_token>@<ccm_subdomain>/v2/accounts/<account_sid>/

Regional Endpoints

RegionCCM Subdomain
Singaporeccm-api.exotel.com
Mumbaiccm-api.in.exotel.com

Authentication

HTTP Basic Authentication using your API key and token from Exotel Dashboard > Settings > API Settings.

Prerequisites

  1. Users must be added as co-workers in the Exotel dashboard
  2. Agent devices must be ON and in available status (not busy)
  3. Phone numbers must be in E.164 format
  4. Audio files should be WAV format, recommended under 2MB

API Reference

APIMethodDescription
Make a CallPOSTConnect an agent to a customer
Call DetailsGETGet call details by call SID

Call States

StateDescription
activeCall is ongoing or post-call processing pending
terminalCall completed and all data processed

Call Statuses

StatusDescription
completedCall connected and ended normally
agent_unansweredAgent did not answer
customer_unansweredCustomer did not answer
agent_canceledAgent canceled the call
customer_no_dialCould not dial customer
agent_no_dialCould not dial agent

Error Codes

HTTP CodeError CodeDescription
4011010Authentication failed
40410731User not found
4091012User device unavailable
40910705User device unverified
40910706User device busy
40410716Virtual number not found
5001100Internal Server Error