Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
skip | integer | 0 | Number of records to skip (for pagination) |
limit | integer | 100 | Maximum records to return (1-1000) |
status | string | - | Filter by status: ongoing, completed, failed |
assistant_id | integer | - | Filter by specific assistant ID |
customer_phone | string | - | Filter by customer phone (supports partial match) |
date_from | string | - | Filter calls started on/after this date (ISO 8601) |
date_to | string | - | Filter calls started on/before this date (ISO 8601) |
min_duration | integer | - | Minimum call duration in seconds |
max_duration | integer | - | Maximum call duration in seconds |
Request Examples
Basic Request
With Filters
Pagination
Response
The response is a paginated object containing the call items and pagination metadata.Response Fields
Pagination
| Field | Type | Description |
|---|---|---|
items | array | Array of call objects |
total | integer | Total number of calls matching the filters |
skip | integer | Number of records skipped |
limit | integer | Maximum records returned |
Call Object
| Field | Type | Description |
|---|---|---|
id | integer | Internal call ID |
call_sid | string | Telephony provider’s call SID |
assistant_id | integer | ID of the assistant that handled the call |
assistant_name | string | Name of the assistant |
assistant_graph_name | string | Name of the assistant graph (if call was routed through a graph) |
to_phone_number | string | The phone number that was called (your number) |
customer_phone_number | string | The customer’s phone number |
status | string | Call status: ongoing, completed, failed |
duration | integer | Call duration in seconds |
started_at | string | When the call started (ISO 8601) |
ended_at | string | When the call ended (ISO 8601) |
call_meta | object | Custom metadata attached to the call |
Cost Fields
| Field | Type | Description |
|---|---|---|
total_cost | number | Total cost of the call |
llm_cost | number | Cost of LLM usage (tokens) |
tts_cost | number | Cost of text-to-speech |
stt_cost | number | Cost of speech-to-text |
telephony_cost | number | Cost of telephony (minutes) |
cost_currency | string | Currency code (e.g., USD) |
Call Statuses
| Status | Description |
|---|---|
ongoing | Call is currently active |
completed | Call ended normally |
failed | Call failed (e.g., no answer, busy, error) |
Examples
Python - Iterate All Calls
Node.js - Filter by Assistant
Calculate Total Cost
Notes
- Results are ordered by
started_atdescending (newest first) - The
assistant_graph_namefield is only populated when the call was routed through an assistant graph - Cost fields may be
nullfor calls that are still ongoing or if cost tracking is not enabled