Create CDR Export
POST https://{{host}}/v3/cdr_exports
Attention
Please note that the Inbound CDR export is available for current + 2 last months.
Creates a single CDR Export. DIDWW performs deletion of CDR Export in 1 month after completion.
Request Body Scheme
{
data (object, required)
{
type (string, required): : cdr_exports
attributes (object, required)
{
callback_url (string, optional)
The HTTP or HTTPS endpoint to where events related to export will be delivered.
See Callback details for information about callback_url.callback_method (string, optional)
The HTTP Method used for order events. POST, GET are supported methods.
See Callback details for information about callback_method.filters (object, required)
{
CDR Export Filters Objectyear (integer, NOT nullable, required)
Year of the CDR timestamp.month (integer, NOT nullable, required)
Month of the CDR timestamp.did_number (integer, NOT nullable, optional)
Filters CDRs by DID number.
}
}
}
}
Request Body Example
{
"data": {
"type": "cdr_exports",
"attributes": {
"filters": {
"year": 2017,
"month": 5,
"did_number": "123456789"
}
}
}
}
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
sort | string | Sorts by the status field. | |
sort | string | Sorts by the created_at field. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
Content-Type | string | ||
Api-Key | string |
RESPONSES
status: Created
{"data":{"id":"9cccd228-2c1a-435f-b7eb-77ce6fc00a86","type":"cdr_exports","attributes":{"filters":{"year":"2017","month":"5","did_number":"123456789"},"status":"Pending","created_at":"2017-06-25T14:56:31.513Z","url":null}},"meta":{"api_version":"2021-04-19"}}