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

call_uuid
string
Unique call identifier.
from_number
string
Caller ID.
to_number
string
Destination number.
call_direction
string
Direction. Values: inbound, outbound.
call_duration
integer
Actual call duration in seconds.
bill_duration
integer
Billed duration in seconds.
billed_duration
integer
Billed duration (may differ based on billing interval).
initiation_time
string
When call was initiated (UTC).
answer_time
string
When call was answered (UTC).
end_time
string
When call ended (UTC).
hangup_cause_name
string
Reason for hangup.
hangup_cause_code
integer
Numeric hangup cause code.
hangup_source
string
Who ended the call. Values: customer, carrier, zentrunk.
total_rate
string
Per-minute rate (USD).
total_amount
string
Total cost (USD).
trunk_domain
string
Trunk domain used.
from_country
string
Caller’s country (ISO2).
to_country
string
Destination country (ISO2).
transport_protocol
string
Protocol used (e.g., udp, tcp).
srtp
boolean
Whether SRTP encryption was used.
secure_trunking
boolean
Whether secure trunking was enabled.
secure_trunking_rate
string
Secure trunking per-minute rate.
stir_verification
string
STIR/SHAKEN status.
attestation_indicator
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

from_number
string
Filter by caller ID (exact or prefix).
to_number
string
Filter by destination (exact or prefix).
call_direction
string
Filter by direction. Values: inbound, outbound.
hangup_cause_code
integer
Filter by hangup cause code.
hangup_source
string
Filter by hangup source. Values: customer, carrier, zentrunk.
stir_verification
string
Filter by STIR status. Values: Verified, Not Verified, Not Applicable.
bill_duration
integer
Filter by duration in seconds. Supports variants: bill_duration__gt, bill_duration__gte, bill_duration__lt, bill_duration__lte.
end_time
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.
limit
integer
Results per page. Max: 20. Default: 20.
offset
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

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

Retrieve Call Insights

Get quality metrics for a specific call.
cURL

Response

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

Insights Metrics

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

Quality Score Guidelines


STIR/SHAKEN Verification

The stir_verification field indicates call authenticity:

Hangup Sources