Skip to navigation

List calls

List the call detail records of the whole account. The list is cursor-paginated. The newest call is first. Filters: direction, outcome, agent extension, call start range, number, and duration. Without from, the list has only the calls of the last 7 days. A range of more than 92 days returns 422. A from value after to also returns 422.

Authentication

AuthorizationBearer

An API key. Send it as Authorization: Bearer ccc_live_…

Query parameters

cursorstring or nullOptional
The cursor from the previous page. Do not change it
limitintegerOptional1-100Defaults to 25
include_totalbooleanOptionalDefaults to false
Add an exact count to the response. This causes an extra query
directionenum or nullOptional
The direction of the call
Allowed values:
outcomeenum or nullOptional
The outcome of the call
agentstring or nullOptional
The extension number of the agent that handled the call
fromdatetime or nullOptional
Only calls that start at or after this time. The value must include a timezone. Without it, the API returns 422
todatetime or nullOptional
Only calls that start before this time. The value must include a timezone. Without it, the API returns 422. The default is now
numberstring or nullOptional>=3 characters
A substring of the caller number or the callee number
min_durationinteger or nullOptional>=0

The minimum value of total_seconds

max_durationinteger or nullOptional>=0

The maximum value of total_seconds

Response

Successful Response
datalist of objects
has_moreboolean
next_cursorstring or nullOptional
total_countinteger or nullOptional

Errors

401
Unauthorized Error
422
Unprocessable Entity Error
429
Too Many Requests Error