CDR Exports API

create new entry

POST /api/rest/customer/v1/cdr-exports

Parameters

Name Description
data[type] Resource type (chart-active-calls)
data[attributes][filters] Filters
data[relationships][account] Account
data[attributes][time-format] Start/end and time_connect field format: with_timezone, without_timezone, round_to_seconds
data[attributes][time-zone-name] Specify time zone name. By default UTC. Example: europe/kyiv

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjoxNSwiZXhwIjoxNzY3MzU4MDMzfQ.H2OoSfR2fBicRtrz9q0JvpVXTlPoMyTGBfCUUqncENU
Host: example.org
Cookie: 

Route

POST /api/rest/customer/v1/cdr-exports

Body

{"data":{"type":"cdr-exports","attributes":{"filters":{"time_start_gteq":"2019-01-01 00:00:00","time_start_lt":"2019-01-02 00:00:00","success_eq":true,"duration_eq":60,"duration_gteq":0,"duration_lteq":100,"src_prefix_routing_eq":"123","dst_prefix_routing_eq":"456"}},"relationships":{"account":{"data":{"type":"accounts","id":"056d0e9e-e7d9-11f0-bf40-0a63caf27539"}}}}}

Response

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
location: http://example.org/api/rest/customer/v1/cdr-exports/057000ea-e7d9-11f0-bf40-0a63caf27539
vary: Accept
etag: W/"569d19404e4d062a289ac501523779bd"
cache-control: max-age=0, private, must-revalidate
x-request-id: fcccf588-559a-4594-a205-3e87769e0640
x-runtime: 0.015917
content-length: 869

Status

201 Created

Body

{
  "data": {
    "id": "057000ea-e7d9-11f0-bf40-0a63caf27539",
    "type": "cdr-exports",
    "links": {
      "self": "http://example.org/api/rest/customer/v1/cdr-exports/057000ea-e7d9-11f0-bf40-0a63caf27539"
    },
    "attributes": {
      "filters": {
        "time_start_gteq": "2019-01-01T00:00:00.000Z",
        "time_start_lt": "2019-01-02T00:00:00.000Z",
        "success_eq": true,
        "duration_eq": 60,
        "duration_gteq": 0,
        "duration_lteq": 100,
        "src_prefix_routing_eq": "123",
        "dst_prefix_routing_eq": "456"
      },
      "status": "Pending",
      "rows-count": null,
      "created-at": "2026-01-02T12:46:13.362Z",
      "updated-at": "2026-01-02T12:46:13.362Z",
      "time-format": "with_timezone",
      "time-zone-name": null
    },
    "relationships": {
      "account": {
        "links": {
          "self": "http://example.org/api/rest/customer/v1/cdr-exports/057000ea-e7d9-11f0-bf40-0a63caf27539/relationships/account",
          "related": "http://example.org/api/rest/customer/v1/cdr-exports/057000ea-e7d9-11f0-bf40-0a63caf27539/account"
        }
      }
    }
  }
}