Create CDR Out Export
POST https://{{host}}/v3/exports
Attention
Please note that the Inbound/Outbound CDR export is available for current + 2 last months.
Creates a single Export. DIDWW performs deletion of Export in 1 month after completion.
Request Body Scheme
{
data (object, required)
{
type (string, required): 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.export_type (string, required): cdr_out Type of requested CDRs. Possible values are cdr_in and cdr_out.
filters (object, required)
{
Export Filters Objectyear (integer, NOT nullable, required)
Year of the CDR timestamp.month (integer, NOT nullable, required)
Month of the CDR timestamp.day (integer, NOT nullable, optional)
Day of the CDR timestamp.voiceouttrunk.id (string, NOT nullable, optional)
ID of voice out trunk
}
}
}
}
Request Body Example
{
"data": {
"type": "exports",
"attributes": {
"export_type": "cdr_out",
"filters": {
"year": 2017,
"month": 5,
"day": "12",
"voice_out_trunk.id": "457bf47d-446d-41cd-91c3-dfbda7bf0753"
}
}
}
}
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":"88a29a27-11fe-4db0-a508-eca1d7cf0b68","type":"exports","attributes":{"status":"Pending","created_at":"2021-12-21T07:37:13.085Z","url":null,"callback_url":null,"callback_method":null,"export_type":"cdr_out"}},"meta":{"api_version":"2021-12-15"}}