v50

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-06-16122182589.7 KB
CDRs

Export CDRs

Streams matching call detail records as newline-delimited JSON (NDJSON), one record per line, for bulk export.

get/v1/cdrs/all

Query parameters

fromstring date required
Example:2023-01-01

Start of the date range to query, in YYYY-MM-DD format. Inclusive.

tostring date required
Example:2023-09-01

End of the date range to query, in YYYY-MM-DD format. Inclusive.

typestring required
Example:received

Filters CDRs by call direction. One of placed (outbound calls dialed by the account) or received (inbound calls answered by the account).

disposition'answered' | 'noanswer' | 'busy' | 'failed' | 'all'

Final disposition of the call. One of answered (the called party answered), noanswer (no answer within the ring timeout), busy (the called party was busy), failed (the call could not be routed), or all (matches any disposition when used as a filter).

Filters CDRs by call disposition. One of answered (the called party answered), busy (the called party was busy), rejected (the call was declined), failed (the call could not be routed), or all (no disposition filter).

from_searchstring
Example:13524815863

Filters CDRs by originating phone number. Accepts a full or partial number.

to_searchstring
Example:12565378257

Filters CDRs by destination phone number. Accepts a full or partial number.

sip_trunkstring
Example:12321

Filters outbound CDRs by SIP trunk login. Ignored for inbound calls.

uuidstring
Example:99df5ffd-962a-410f-bcce-d08f1f7f328c

Filters CDRs by the unique call ID.

pageinteger
Example:1

Page number to retrieve. Default 1.

per_pageinteger
Example:25

Number of records to return per page. Default 25.

Response

Returns an NDJSON stream of CDRs, one record per line.