get cdrs on the account

API Docs by APIMATIC

Get CDRs on the Account

Use this method to get a list of CDRs for inbound and outbound calls. The records can be filtered by date, phone number, destination or call type. By default, the results are paginated, with 25 records per page.

This endpoint requires authentication.

GET /cdr
  • EXPLORER
  • PARAMETERS

Errors

  • .args.from should match format "date"
  • .args.to should match format "date"
Endpoint Arguments*
Parameters*

Use `placed` to get CDRs for outbound calls or `received` for inbound calls.

Specify the start date of your search time range in the `yyyy-mm-dd` format

  • should match format "date"

Specify the end date of your search time range in the `yyyy-mm-dd` format.

  • should match format "date"

Filter results by the originating phone number. The parameter can be either full phone number or a part of it.

Filter results by destination phone number. The parameter can be either full phone number or a part of it.

Filter calls by disposition. In case the parameter is not specified, only answered calls are returned. To get all calls regardless their disposition pass `all` as the parameter value

Filter results by the unique SIP trunk login used to place an outbound call. For inbound calls the parameter is ignored.

Page requested.

Number of records per page.

Response Type

curl -X GET -G \
  --url 'https://api.wavix.com/v1/cdr' \
  -H 'Accept: application/json' \
  -d 'appid=appid' \
  -d 'type=placed' \
  -d 'from=2021-01-19T00%3A00%3A00.000Z' \
  -d 'to=2021-01-22T00%3A00%3A00.000Z' \
  -d 'from_search=12435426534' \
  -d 'to_search=12435426534' \
  -d 'sip_trunk=36465' \
  -d 'page=10' \
  -d 'per_page=100'