Skip to main content
The Calls API lets you retrieve call detail records (CDRs) and quality insights for calls made through your SIP trunks.

API Endpoint


The Call Object

Attributes

string
Unique call identifier.
string
Caller ID.
string
Destination number.
string
Direction. Values: inbound, outbound.
integer
Actual call duration in seconds.
integer
Billed duration in seconds.
integer
Billed duration (may differ based on billing interval).
string
When call was initiated (UTC).
string
When call was answered (UTC).
string
When call ended (UTC).
string
Reason for hangup.
integer
Numeric hangup cause code.
string
Who ended the call. Values: customer, carrier, zentrunk.
string
Per-minute rate (USD).
string
Total cost (USD).
string
Trunk domain used.
string
Caller’s country (ISO2).
string
Destination country (ISO2).
string
Protocol used (e.g., udp, tcp).
boolean
Whether SRTP encryption was used.
boolean
Whether secure trunking was enabled.
string
Secure trunking per-minute rate.
string
STIR/SHAKEN status.
string
Attestation level. Values: A, B, C.

Example Response


Retrieve a Call

Get the call detail record (CDR) for a specific call.
cURL

Response

Returns the Call object for the specified call UUID.

List All Calls

Retrieve CDRs for all calls with optional filtering.

Query Parameters

string
Filter by caller ID (exact or prefix).
string
Filter by destination (exact or prefix).
string
Filter by direction. Values: inbound, outbound.
integer
Filter by hangup cause code.
string
Filter by hangup source. Values: customer, carrier, zentrunk.
string
Filter by STIR status. Values: Verified, Not Verified, Not Applicable.
integer
Filter by duration in seconds. Supports variants: bill_duration__gt, bill_duration__gte, bill_duration__lt, bill_duration__lte.
string
Filter by call end time. Format: YYYY-MM-DD HH:MM[:ss] (UTC). Supports variants: end_time__gt, end_time__gte, end_time__lt, end_time__lte.
integer
Results per page. Max: 20. Default: 20.
integer
Pagination offset. Default: 0.
You can retrieve only calls from the last 90 days. Without an end_time filter, the API searches the last 30 days.

Example Request

cURL

Response

string
Unique identifier for the API request.
object
Pagination metadata: limit (results per page), offset (items skipped), total_count (total matching calls).
array
Array of call objects — see The Call Object.

Retrieve Call Insights

Get quality metrics for a specific call.
cURL

Response

string
Unique identifier for the API request.
string
Unique call identifier.
object
Details of the caller: carrier, number, and region.
object
Details of the destination: carrier, number, and region.
string
Reason for hangup.
string
Who ended the call. Values: customer, carrier, zentrunk.
string
Round-trip time in milliseconds. High values indicate network latency.
string
Variance in packet delay (ms). Causes robotic-sounding audio.
string
Percentage of lost packets. Causes broken audio.
float
Time from call initiation to ringing (ms).
string
Quality rating from 1-5. Higher is better.

Insights Metrics

string
Round-trip time in milliseconds. High values indicate network latency.
string
Variance in packet delay (ms). Causes robotic-sounding audio.
string
Percentage of lost packets. Causes broken audio.
float
Time from call initiation to ringing (ms).
string
Quality rating from 1-5. Higher is better.

Quality Score Guidelines


STIR/SHAKEN Verification

The stir_verification field indicates call authenticity:

Hangup Sources