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
Name | Description |
---|---|
type Query Required | String Use |
from Query Required | Date Specify the start date of your search time range in the |
to Query Required | Date Specify the end date of your search time range in the |
from_search Query | String Filter results by the originating phone number. The parameter can be either full phone number or a part of it. |
to_search Query | String Filter results by destination phone number. The parameter can be either full phone number or a part of it. |
disposition Query | Filter calls by disposition. In case the parameter is not specified, only answered calls are returned. To get all calls regardless their disposition pass |
sip_trunk Query | String Filter results by the unique SIP trunk login used to place an outbound call. For inbound calls the parameter is ignored. |
page Query | Number Page requested. |
per_page Query | Number Number of records per page. |
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'