List CDRs
Changed onReturns a paginated list of call detail records for the authenticated account, within the requested date range.
Request
- Base URLhttps://api.wavix.com
- URLhttps://api.wavix.com/v1/cdrs
- AuthHTTP bearer
Query parameters
Start of the date range to query, in YYYY-MM-DD format. Inclusive.
End of the date range to query, in YYYY-MM-DD format. Inclusive.
Filters CDRs by call direction. One of placed (outbound calls dialed by the account) or received (inbound calls answered by the account).
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), noanswer (no answer within the ring timeout), busy (the called party was busy), failed (the call could not be routed), or all (no disposition filter).
Filters CDRs by originating phone number. Accepts a full or partial number.
Filters CDRs by destination phone number. Accepts a full or partial number.
Filters outbound CDRs by SIP trunk login. Ignored for inbound calls.
Filters CDRs by the unique call ID.
Page number to retrieve. Default 1.
Number of records to return per page. Default 25.
Response
Returns a paginated list of CDRs.
Example response
{
"items": [
{
"date": "2023-08-21T06:43:36.000Z",
"from": "14302287001",
"to": "33170363950",
"duration": 6,
"destination": "France",
"per_minute": "0.027",
"charge": "0.822",
"sip_trunk": "32882",
"forward_fee": "0.0",
"uuid": "99df5ffd-962a-410f-bcce-d08f1f7f328c",
"call_id": "99df5ffd-962a-410f-bcce-d08f1f7f328c",
"parent_uuid": "99df5ffd-962a-410f-bcce-d08f1f7f328c",
"parent_call_id": "99df5ffd-962a-410f-bcce-d08f1f7f328c",
"answered_by": "human"
}
],
"pagination": {
"current_page": 2,
"per_page": 25,
"total": 101,
"total_pages": 5
}
}Changes
- breaking
the
queryrequest parameterdispositionwas restricted to a list of enum values - info
added the new enum value
allto thequeryrequest parameterdisposition - info
added the new enum value
answeredto thequeryrequest parameterdisposition - info
added the new enum value
busyto thequeryrequest parameterdisposition - info
added the new enum value
failedto thequeryrequest parameterdisposition - info
added the new enum value
noanswerto thequeryrequest parameterdisposition - info
for the
queryrequest parameterdisposition, the type was generalized from no type tostring
- breaking
- breaking
the response's body type changed from no type to
objectfor status - info
removed from the response body
allOflist for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking