CDRs

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

get/v1/cdrs/all

Request

  • Base URL
    https://api.wavix.com
  • URL
    https://api.wavix.com/v1/cdrs/all
  • Auth
    HTTP bearer

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), 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).

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.

Changes

    • breaking

      the query request parameter disposition was restricted to a list of enum values

    • info

      added the new enum value all to the query request parameter disposition

    • info

      added the new enum value answered to the query request parameter disposition

    • info

      added the new enum value busy to the query request parameter disposition

    • info

      added the new enum value failed to the query request parameter disposition

    • info

      added the new enum value noanswer to the query request parameter disposition

    • info

      for the query request parameter disposition, the type was generalized from no type to string

    • info

      added the non-success response with the status

    • info

      endpoint added