Skip to content

List calls

GET
/v1/Accounts/{auth_id}/Calls
curl --request GET \
--url 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Calls?from_date=2026-11-01&to_date=2026-11-26&status=completed&direction=inbound&from=15550100123&to=15550100456' \
--header 'Authorization: Basic <credentials>'

Lists call detail records (CDRs) of the account, newest first: one record per call leg, written when the leg ends (legs still up are reported as in-progress). Without both from_date and to_date the list covers only the last 24 hours; with both it covers from_date 00:00:00 to to_date 23:59:59 UTC. Paging is one-based: page (or Page) defaults to 1 and limit (or PageSize) defaults to 10, at most 100. With ParentCallSid the list is the legs of that call: page and limit are ignored and up to 50 legs are returned, still within the date window. When nothing matches, the answer is 404 “cdr not found”, not an empty list. The account may be your own or an account under it (a sub-account or a customer of a reseller); naming another account answers 403.

auth_id
required
string

Account Auth ID (AC followed by the account id) whose calls to read: your own account, or an account under it

Example

AC000000000000000000
from_date
string

First day to include, YYYY-MM-DD (UTC). Needs to_date too, otherwise the last 24 hours are listed

Example

2026-11-01
to_date
string

Last day to include, YYYY-MM-DD (UTC). Must not be before from_date

Example

2026-11-26
status
string
Allowed values: completed canceled busy ringing in-progress failed

Only calls ending this way: completed (NORMAL_CLEARING), canceled (ORIGINATOR_CANCEL), busy (USER_BUSY or NO_USER_RESPONSE), in-progress (not ended), failed (temporary, unspecified or permanent failure, or media timeout / lost race with no billed time). ringing currently matches the same calls as busy; other values are ignored

direction
string
Allowed values: inbound outbound

Only calls in this direction as recorded on the call leg; ANY or ALL disables the filter

type
string

Only calls of this type as stored on the leg, e.g. Number (PSTN) or Sip; ANY or ALL disables the filter

from
string

Only calls whose caller matches, as a case-insensitive regular expression on the SIP From user (substring match). Leave out a leading +, which is not a valid pattern on its own

Example

15550100123
to
string

Only calls whose callee matches, as a case-insensitive regular expression on the SIP To user (substring match). Leave out a leading +

Example

15550100456
number
string

Only calls where the caller or the callee matches this case-insensitive regular expression

minduration
number

Only calls billed at least this many seconds. Applied only together with maxduration

maxduration
number

Only calls billed at most this many seconds. Applied only together with minduration

ParentCallSid
string

List the legs of this parent call (call SID). parent_call_uuid is accepted too

page
integer
>= 1

One-based page number. Page is accepted too. Default 1

limit
integer
>= 1 <= 100

Records per page, at most 100 (larger values are capped). PageSize is accepted too. Default 10

customerId
string

Deprecated: must be empty or the account in the path

OK

Media type application/json
object
calls

The call records on this page, newest first.

Array<object>
object
CustomerName

Name of the account (list responses; empty when fetching one call). Note the key is CustomerName.

string
account_sid

Account the call belongs to.

string
annotation

Not currently populated.

string
answered_by

Not currently populated.

string
api_version

API version that produced the record.

string
call_quality

RTP quality summary of the audio; omitted when the leg had no media statistics.

object
codec

Audio codec, e.g. PCMU, PCMA, OPUS.

string
grade

Overall grade from the MOS: excellent, good, fair, poor or bad; one_way or no_media when packets flowed in one direction or none.

string
inbound_packets

Audio packets received from the far end.

integer
issues

Problems found: no_inbound_media, no_outbound_media, packet_loss (over 1%), high_jitter (over 30 ms), low_mos (below 3.6), media_timeout, loss_bursts.

Array<string>
jitter_ms

Inbound inter-arrival jitter in milliseconds.

number
loss_pct

Estimated inbound packet loss in percent (reads high on bursty loss).

number
mos

Mean opinion score of the received audio, 1 to 4.5.

number
outbound_packets

Audio packets sent to the far end.

integer
r_factor

R value (0 to 100) the MOS derives from (ITU-T G.107).

number
caller_name

Not currently populated.

string
carrier_cost

Carrier cost, on records rated through CDR import; omitted otherwise.

number
customer_cost

Cost charged to the customer, on records rated through CDR import; omitted otherwise.

number
customer_rate

Rate charged to the customer, on records rated through CDR import; omitted otherwise.

number
date_created

Not currently populated.

string
date_updated

Not currently populated.

string
direction

Direction of the leg as the media server records it: inbound or outbound.

string
duration

Billed duration in whole seconds (rounded up to the billing pulse when the call was rated).

string
end_time

When the leg ended, “YYYY-MM-DD hh:mm:ss”; absent while in progress.

string
forwarded_from

Not currently populated.

string
from

Calling party (caller ID number or SIP user).

string
from_formatted

From, URL-decoded.

string
group_sid

Not currently populated.

string
hangup_by

Which side hung up, when known.

string
hangup_disposition

SIP hangup disposition, e.g. send_bye, recv_bye, recv_cancel.

string
hangup_reason

Hangup cause, e.g. NORMAL_CLEARING, USER_BUSY, NO_ANSWER, ORIGINATOR_CANCEL.

string
parent_call_sid

Call SID of the parent leg, for legs created by , transfers or conferences.

string
phone_number_sid

Not currently populated.

string
price

Cost of the call in price_unit, as a decimal string; 0 when unrated.

string
price_unit

Currency of price.

string
pulse

Billing increment in seconds, on records rated through CDR import; omitted otherwise.

number
pulse_duration

Pulse duration, on records rated through CDR import; omitted otherwise.

integer
queue_time

Not currently populated.

string
rate

Rate applied, on records rated through CDR import; omitted otherwise.

number
rtp_stats

Full RTP statistics of the leg; only when fetching one call.

object
audio

Audio stream statistics.

object
error_periods

Stretches of the call with inbound packet loss (at most 50).

Array<object>
object
consecutive_flaws

Longest run of consecutive flaws in the period.

integer
duration_ms

Length of the period, ms.

integer
flaws

Flaws counted in the period.

integer
offset_ms

Start of the period from the beginning of the call, ms.

integer
start

Start of the period, unix microseconds.

integer
stop

End of the period, unix microseconds (3 s after the last loss).

integer
inbound

What the platform received from the far end of this leg.

object
bitrate_kbps

Received RTP bitrate in kbit/s over the billed time.

number
cng_packet_count

Comfort noise packets received.

integer
dtmf_packet_count

DTMF (telephone-event) packets received.

integer
flaw_total

Lost, late or flushed packets, plus penalties for runs of consecutive loss.

integer
flush_packet_count

Packets dropped to catch up (jitter buffer flush).

integer
jitter_burst_rate

Burst loss rate seen by the jitter buffer.

number
jitter_loss_rate

Loss rate seen by the jitter buffer.

number
jitter_max_ms

Largest inter-arrival jitter, ms.

number
jitter_max_variance

Largest variance of the packet inter-arrival time, ms squared.

number
jitter_min_ms

Smallest inter-arrival jitter, ms.

number
jitter_min_variance

Smallest variance of the packet inter-arrival time, ms squared.

number
jitter_packet_count

Packets that went through the jitter buffer.

integer
largest_jb_size

Largest jitter buffer size reached, in packets.

integer
loss_pct

Estimated packet loss in percent: flaw_total / (media_packet_count + flaw_total).

number
mean_interval_ms

Mean packet inter-arrival time, ms.

number
media_bytes

Media payload bytes received.

integer
media_packet_count

Media packets received.

integer
mos

Mean opinion score, 1 to 4.5.

number
packet_count

Packets received.

integer
quality_percentage

R value, 0 to 100.

number
raw_bytes

Bytes received, RTP headers included.

integer
skip_packet_count

Packets skipped.

integer
outbound

What the platform sent to the far end.

object
bitrate_kbps

Sent RTP bitrate in kbit/s over the billed time.

number
cng_packet_count

Comfort noise packets sent.

integer
dtmf_packet_count

DTMF (telephone-event) packets sent.

integer
media_bytes

Media payload bytes sent.

integer
media_packet_count

Media packets sent.

integer
packet_count

Packets sent.

integer
raw_bytes

Bytes sent, RTP headers included.

integer
rtcp_octet_count

RTP payload octets announced in RTCP sender reports.

integer
rtcp_packet_count

RTP packets this side announced in its RTCP sender reports (not a count of RTCP packets); 0 when the leg sent no RTCP.

integer
skip_packet_count

Packets skipped.

integer
media

What was negotiated for the leg (codec, addresses, SRTP).

object
advertised_ip

Media IP the platform advertised in SDP.

string
channels

Audio channels.

integer
codec

Negotiated audio codec.

string
codec_rate

Codec sample rate, Hz.

integer
dtmf_type

How DTMF was carried, e.g. rfc2833.

string
jitter_buffer_ms

Jitter buffer setting, ms.

string
local_ip

Platform media IP.

string
local_port

Platform media port.

string
payload_type

RTP payload type sent.

string
ptime_ms

Packetization time, ms.

integer
read_codec

Codec read from the far end.

string
recv_payload_type

RTP payload type received.

string
remote_ip

Far end media IP.

string
remote_port

Far end media port.

string
remote_rtcp_port

Far end RTCP port.

string
rtcp_mux

Whether RTP and RTCP shared a port.

boolean
signaling_transport

SIP transport of the leg, e.g. udp, tls, wss.

string
srtp

Whether the media was encrypted with SRTP.

boolean
srtp_crypto_suite

SRTP crypto suite, when encrypted.

string
ssrc

RTP SSRC of the stream.

string
telephone_event_pt

Payload type of telephone-event.

string
video_codec

Negotiated video codec, when the leg had video.

string
write_codec

Codec written to the far end.

string
quality

Summary of the audio quality, as in call lists.

object
codec

Audio codec, e.g. PCMU, PCMA, OPUS.

string
grade

Overall grade from the MOS: excellent, good, fair, poor or bad; one_way or no_media when packets flowed in one direction or none.

string
inbound_packets

Audio packets received from the far end.

integer
issues

Problems found: no_inbound_media, no_outbound_media, packet_loss (over 1%), high_jitter (over 30 ms), low_mos (below 3.6), media_timeout, loss_bursts.

Array<string>
jitter_ms

Inbound inter-arrival jitter in milliseconds.

number
loss_pct

Estimated inbound packet loss in percent (reads high on bursty loss).

number
mos

Mean opinion score of the received audio, 1 to 4.5.

number
outbound_packets

Audio packets sent to the far end.

integer
r_factor

R value (0 to 100) the MOS derives from (ITU-T G.107).

number
version

Version of this statistics format.

integer
video

Video stream statistics, when the leg had video.

object
error_periods

Stretches of the call with inbound packet loss (at most 50).

Array<object>
object
consecutive_flaws

Longest run of consecutive flaws in the period.

integer
duration_ms

Length of the period, ms.

integer
flaws

Flaws counted in the period.

integer
offset_ms

Start of the period from the beginning of the call, ms.

integer
start

Start of the period, unix microseconds.

integer
stop

End of the period, unix microseconds (3 s after the last loss).

integer
inbound

What the platform received from the far end of this leg.

object
bitrate_kbps

Received RTP bitrate in kbit/s over the billed time.

number
cng_packet_count

Comfort noise packets received.

integer
dtmf_packet_count

DTMF (telephone-event) packets received.

integer
flaw_total

Lost, late or flushed packets, plus penalties for runs of consecutive loss.

integer
flush_packet_count

Packets dropped to catch up (jitter buffer flush).

integer
jitter_burst_rate

Burst loss rate seen by the jitter buffer.

number
jitter_loss_rate

Loss rate seen by the jitter buffer.

number
jitter_max_ms

Largest inter-arrival jitter, ms.

number
jitter_max_variance

Largest variance of the packet inter-arrival time, ms squared.

number
jitter_min_ms

Smallest inter-arrival jitter, ms.

number
jitter_min_variance

Smallest variance of the packet inter-arrival time, ms squared.

number
jitter_packet_count

Packets that went through the jitter buffer.

integer
largest_jb_size

Largest jitter buffer size reached, in packets.

integer
loss_pct

Estimated packet loss in percent: flaw_total / (media_packet_count + flaw_total).

number
mean_interval_ms

Mean packet inter-arrival time, ms.

number
media_bytes

Media payload bytes received.

integer
media_packet_count

Media packets received.

integer
mos

Mean opinion score, 1 to 4.5.

number
packet_count

Packets received.

integer
quality_percentage

R value, 0 to 100.

number
raw_bytes

Bytes received, RTP headers included.

integer
skip_packet_count

Packets skipped.

integer
outbound

What the platform sent to the far end.

object
bitrate_kbps

Sent RTP bitrate in kbit/s over the billed time.

number
cng_packet_count

Comfort noise packets sent.

integer
dtmf_packet_count

DTMF (telephone-event) packets sent.

integer
media_bytes

Media payload bytes sent.

integer
media_packet_count

Media packets sent.

integer
packet_count

Packets sent.

integer
raw_bytes

Bytes sent, RTP headers included.

integer
rtcp_octet_count

RTP payload octets announced in RTCP sender reports.

integer
rtcp_packet_count

RTP packets this side announced in its RTCP sender reports (not a count of RTCP packets); 0 when the leg sent no RTCP.

integer
skip_packet_count

Packets skipped.

integer
sid

Call SID of this leg, a UUID.

string
sip_call_id

SIP Call-ID of the leg, when recorded.

string
start_time

When the leg started, “YYYY-MM-DD hh:mm:ss” as the media server records it.

string
status

Final status: completed, busy, no-answer, canceled, failed or in-progress.

string
subresource_uris

Related resources.

object
notifications

Not currently populated.

string
recordings

Relative URI of the call’s recordings.

string
to

Called party: an E.164 number without +, or sip:user@host for SIP calls.

string
to_formatted

To, URL-decoded.

string
trunk_sid

Not currently populated.

string
type

Kind of endpoint: Phone (PSTN number) or Sip (SIP endpoint or trunk).

string
uri

Relative URI of this call record.

string
end

Zero-based index of the last record on this page.

integer
first_page_uri

Relative URI of the first page.

string
next_page_uri

Relative URI of the next page; empty on the last page.

string
page

One-based number of this page.

integer
page_size

Records per page.

integer
previous_page_uri

Relative URI of the previous page (the first page when on page 1).

string
start

Zero-based index of the first record on this page.

integer
total_count

Number of records matching the filters, as a string.

string
uri

Relative URI of this page.

string

Example

{
"calls": [
{
"account_sid": "AC000000000000000000",
"api_version": "v1",
"call_quality": {
"codec": "PCMU",
"grade": "good",
"inbound_packets": 2100,
"jitter_ms": 4.1,
"loss_pct": 0.3,
"mos": 4.2,
"outbound_packets": 2098,
"r_factor": 86.5
},
"direction": "outbound",
"duration": "42",
"end_time": "2026-11-26 10:16:12",
"from": "15550100123",
"from_formatted": "15550100123",
"hangup_disposition": "recv_bye",
"hangup_reason": "NORMAL_CLEARING",
"price": "0.012000",
"price_unit": "USD",
"rtp_stats": {
"media": {
"channels": 1,
"codec": "PCMU",
"codec_rate": 8000,
"payload_type": "0",
"ptime_ms": 20,
"recv_payload_type": "0",
"srtp": false
},
"quality": {
"codec": "PCMU",
"grade": "good",
"inbound_packets": 2100,
"jitter_ms": 4.1,
"loss_pct": 0.3,
"mos": 4.2,
"outbound_packets": 2098,
"r_factor": 86.5
},
"version": 1
},
"sid": "3f0c2a9e-6a51-4d55-9a57-0d2f6e0f8a11",
"start_time": "2026-11-26 10:15:30",
"status": "completed",
"to": "15550100456",
"to_formatted": "15550100456",
"type": "Phone",
"uri": "/v1/Accounts/AC000000000000000000/Calls/3f0c2a9e-6a51-4d55-9a57-0d2f6e0f8a11"
}
],
"end": 9,
"first_page_uri": "/v1/Accounts/AC000000000000000000/Calls?PageSize=10&Page=1",
"next_page_uri": "/v1/Accounts/AC000000000000000000/Calls?PageSize=10&Page=2",
"page": 1,
"page_size": 10,
"previous_page_uri": "/v1/Accounts/AC000000000000000000/Calls?PageSize=10&Page=1",
"start": 0,
"total_count": "57",
"uri": "/v1/Accounts/AC000000000000000000/Calls?PageSize=10&Page=1"
}

Page or limit not an integer, or customerId names another account

Media type application/json
object
message

What went wrong, e.g. “cdr not found”, “limit should be vaild integer”.

string
status

Always “failed”.

string

Example

{
"message": "cdr not found",
"status": "failed"
}

Authentication failed: missing or invalid credentials (JSON string from the API gateway)

Media type application/json
string

Example generated

example

The account in the path is neither yours nor under yours

Media type application/json
object
message

What went wrong, e.g. “cdr not found”, “limit should be vaild integer”.

string
status

Always “failed”.

string

Example

{
"message": "cdr not found",
"status": "failed"
}

No call matches (message "cdr not found"); also when from_date is after to_date (or to_date is missing), with the body {"error": "…"}

Media type application/json
object
message

What went wrong, e.g. “cdr not found”, “limit should be vaild integer”.

string
status

Always “failed”.

string

Example

{
"message": "cdr not found",
"status": "failed"
}

Account lookup unavailable

Media type application/json
object
message

What went wrong, e.g. “cdr not found”, “limit should be vaild integer”.

string
status

Always “failed”.

string

Example

{
"message": "cdr not found",
"status": "failed"
}