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.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjoxNSwiZXhwIjoxNzc2MzY1MjA0fQ.Y5xaY7qgUXJ0kpzxZ_zGwqk3k4EevOqdYUd_AcbaiHk
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":"7a108ca2-39c4-11f1-8c50-82ad38f4dd55"}}}}}

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/7a133934-39c4-11f1-8c50-82ad38f4dd55
vary: Accept
etag: W/"34266035d1f4faf7b3b111de4404255b"
cache-control: max-age=0, private, must-revalidate
x-request-id: 6e22090b-d6b2-4a7c-8c74-cc5e2cc63d4f
x-runtime: 0.017409
content-length: 869

Status

201 Created

Body

{
  "data": {
    "id": "7a133934-39c4-11f1-8c50-82ad38f4dd55",
    "type": "cdr-exports",
    "links": {
      "self": "http://example.org/api/rest/customer/v1/cdr-exports/7a133934-39c4-11f1-8c50-82ad38f4dd55"
    },
    "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-04-16T18:45:44.964Z",
      "updated-at": "2026-04-16T18:45:44.964Z",
      "time-format": "with_timezone",
      "time-zone-name": null
    },
    "relationships": {
      "account": {
        "links": {
          "self": "http://example.org/api/rest/customer/v1/cdr-exports/7a133934-39c4-11f1-8c50-82ad38f4dd55/relationships/account",
          "related": "http://example.org/api/rest/customer/v1/cdr-exports/7a133934-39c4-11f1-8c50-82ad38f4dd55/account"
        }
      }
    }
  }
}