Skip to content

CDR API reference

Last updated: 2026-06-01

Query call detail records (CDR), download recordings, and export reports.

Required scope

cdr:read

Endpoints

MethodPathDescription
GET/cdr/listSearch CDR by date range, extension, trunk, direction, status.
GET/cdr/get?call_id=c_abcFetch a single call's full record.
GET/cdr/recording?call_id=c_abcDownload the recording audio file.
GET/cdr/transcript?call_id=c_abcReturn the AI transcript (if available).
POST/cdr/exportKick off an async CSV export job; poll until done.

Example response

{
  "errcode": 0,
  "total_number": 1,
  "data": [{
    "call_id": "c_abc123",
    "started_at": "2026-06-01T10:23:14Z",
    "from": "+46812345678",
    "to": "101",
    "direction": "inbound",
    "duration": 84,
    "status": "answered",
    "trunk": "Telia-Primary",
    "recording": true,
    "transcript": true
  }]
}

Common errors

  • 40001 — Missing or invalid parameter.
  • 40301 — API key lacks the scope this endpoint requires.
  • 40401 — Resource not found.
  • 50001 — Internal error; safe to retry with backoff.