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.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjoxNSwiZXhwIjoxNzkyNjE5Mjc1fQ.72OuZfkOyWOHKVI4tVBc2NoG0imjHvxSdkb5ri9JXtI
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":"ef1a92f0-cd98-11f1-acef-6a55a9c27822"}}}}}

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/ef1d90e0-cd98-11f1-acef-6a55a9c27822
vary: Accept
etag: W/"e6bdbb0728b4d8bf6358d96df05a7cb1"
cache-control: max-age=0, private, must-revalidate
x-request-id: 9cb9cca9-5af4-4529-a6bc-e69189ea8cc0
x-runtime: 0.022504
content-length: 869

Status

201 Created

Body

{
  "data": {
    "id": "ef1d90e0-cd98-11f1-acef-6a55a9c27822",
    "type": "cdr-exports",
    "links": {
      "self": "http://example.org/api/rest/customer/v1/cdr-exports/ef1d90e0-cd98-11f1-acef-6a55a9c27822"
    },
    "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-10-21T21:46:55.560Z",
      "updated-at": "2026-10-21T21:46:55.560Z",
      "time-format": "with_timezone",
      "time-zone-name": null
    },
    "relationships": {
      "account": {
        "links": {
          "self": "http://example.org/api/rest/customer/v1/cdr-exports/ef1d90e0-cd98-11f1-acef-6a55a9c27822/relationships/account",
          "related": "http://example.org/api/rest/customer/v1/cdr-exports/ef1d90e0-cd98-11f1-acef-6a55a9c27822/account"
        }
      }
    }
  }
}