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
cursor
The cursor from the previous page. Do not change it
limit
include_total
Add an exact count to the response. This causes an extra query
direction
The direction of the call
Allowed values:
outcome
The outcome of the call
agent
The extension number of the agent that handled the call
from
Only calls that start at or after this time. The value must include a timezone. Without it, the API returns 422
to
Only calls that start before this time. The value must include a timezone. Without it, the API returns 422. The default is now
number
A substring of the caller number or the callee number
min_duration
The minimum value of total_seconds
max_duration
The maximum value of total_seconds
Response
Successful Response
data
has_more
next_cursor
total_count
Errors
401
Unauthorized Error
422
Unprocessable Entity Error
429
Too Many Requests Error