Skip to content

Get call detail by ID (user, pbx)

get /cdrs/detail/{id}

Returns the full detail of a single call, including each receiving leg, the call-flow timeline, recording-file references, notes, AI transcription results (transcriptions) and the AI processing status (ai_processing). Scoped server-side to the caller's PBX.

Each recording reference carries a download_url on this API (call-recording?id=…&type=all|caller|callee); download it with the same bearer token. ai_processing explains whether the call is transcribed, and if not, why (status, reasons, errors) — see the examples.

Authentication accepts either a user personal access token or a PBX-owned API key. A PBX API key must carry the call-history ability/scope.

Recordings and AI results for user tokens. A user token gets them only when the user has "Access own call recordings and transcriptions" (access_all_call_recordings on GET /me). Without it the call data is returned without every recording and AI key (recording_file, recording_file_path_caller, recording_file_path_callee, transcriptions, trail_hashes, ai_feedback, ai_processing, ai_processing_errors), wherever it appears, and recordings cannot be downloaded (403). The flags that only say whether something exists (is_recorded, transcriptions_available, is_recording_file_exists) are kept. PBX API keys are not affected.

Rate-limited to 120 requests per minute per principal.

HTTP: bearerAuth

User bearer token. Default authentication for customer-facing endpoints. Obtain a token by calling POST /login with your credentials, then send it on every subsequent request as Authorization: Bearer <token>. The token inherits the permissions and PBX scope of the authenticated user.

HTTP Authorization Scheme
bearer
Bearer format
Bearer <token>
id path · integer · int64 *
The `cdr_id` of the call, as returned by the call-history list.
accept header · string
example: application/json

Responses

The call detail.
Response schema
dataobject
Full detail of a single call, including every receiving leg, the call-flow timeline, recording references, notes, and AI transcription results.
id*integer · int64
Unique identifier of the call detail record.
example: 24904193
company_idstring · uuid
Identifier of the PBX (tenant) the call belongs to.
example: 550e8400-e29b-41d4-a716-446655440000
type*string
Direction of the call.
enum: INCOMING OUTGOING
example: OUTGOING
date*string · date
Calendar date the call started.
example: 2026-01-12
start_time*string
When the call started, in `YYYY-MM-DD HH:MM:SS`.
example: 2026-01-12 15:50:19
answer_timestring | null
When the call was answered, or null if never answered.
end_time*string
When the call ended, in `YYYY-MM-DD HH:MM:SS`.
example: 2026-01-12 15:50:25
duration*integer · int32
Total duration in seconds.
example: 6
billsec*integer · int32
Billable seconds.
example: 0
is_transfer_callboolean
example:
is_internalboolean
Whether both parties are internal to the PBX.
example: 1
is_conference_callboolean
example:
conferencearray<object>
Conference participant legs, when the call was a conference.
[]object
Free-form object
is_recording_file_existsboolean
Whether a recording file exists for this call.
example:
recording_fileobject
A call-recording file reference. Download it from `download_url` with the same bearer token you used to read the call (see the call-recording endpoint); `path` and `download_url` are populated only when a recording exists.
namestring
File name of the recording, or an empty string when none exists.
example:
pathstring | null
Storage path of the recording. Informational; downloads only need `download_url` (`id` + `type`).
download_urlstring | null
Download URL of the recording on this API (`call-recording?id=…&type=…`), when available.
example: https://cockpit.voxbi.com/api/v1/cdrs-utility/call-recording?id=47679936&type=all
hintstring
Human-readable note describing which part of the call this recording covers and how to download it.
example: This recording file is for the entire call, including both caller and callee recordings. Download it from download_url with the same Bearer token you used for this request.
recording_file_path_callerobject
A call-recording file reference. Download it from `download_url` with the same bearer token you used to read the call (see the call-recording endpoint); `path` and `download_url` are populated only when a recording exists.
namestring
File name of the recording, or an empty string when none exists.
example:
pathstring | null
Storage path of the recording. Informational; downloads only need `download_url` (`id` + `type`).
download_urlstring | null
Download URL of the recording on this API (`call-recording?id=…&type=…`), when available.
example: https://cockpit.voxbi.com/api/v1/cdrs-utility/call-recording?id=47679936&type=all
hintstring
Human-readable note describing which part of the call this recording covers and how to download it.
example: This recording file is for the entire call, including both caller and callee recordings. Download it from download_url with the same Bearer token you used for this request.
recording_file_path_calleeobject
A call-recording file reference. Download it from `download_url` with the same bearer token you used to read the call (see the call-recording endpoint); `path` and `download_url` are populated only when a recording exists.
namestring
File name of the recording, or an empty string when none exists.
example:
pathstring | null
Storage path of the recording. Informational; downloads only need `download_url` (`id` + `type`).
download_urlstring | null
Download URL of the recording on this API (`call-recording?id=…&type=…`), when available.
example: https://cockpit.voxbi.com/api/v1/cdrs-utility/call-recording?id=47679936&type=all
hintstring
Human-readable note describing which part of the call this recording covers and how to download it.
example: This recording file is for the entire call, including both caller and callee recordings. Download it from download_url with the same Bearer token you used for this request.
caller*object
The originating party.
idstring | null · uuid
example: 550e8400-e29b-41d4-a716-446655440041
namestring
example: Customer Support
numberstring
example: 2041
receivers*array<object>
Every receiving leg that was rung for this call.
Each item — One receiving leg of a call (a destination that was rung), with its own timing and routing.
idstring | null
Identifier of the receiver (user, extension, or external party).
example: 550e8400-e29b-41d4-a716-446655440040
statusstring
Outcome for this receiving leg.
enum: TRIGGERED RINGING ANSWERED MISSED BUSY FAILED
example: TRIGGERED
namestring
Display name of the receiver, or an empty string when unknown.
example: Sales Team
numberstring
Phone number or extension of the receiver.
example: 2039
start_timestring
When this leg started ringing, in `YYYY-MM-DD HH:MM:SS`.
example: 2026-01-12 15:50:19
answer_timestring | null
When this leg was answered, or null if never answered.
example: 2026-01-12 15:50:19
end_timestring
When this leg ended, in `YYYY-MM-DD HH:MM:SS`.
example: 2026-01-12 15:50:25
durationinteger · int32
Duration of this leg in seconds.
example: 6
billsecinteger · int32
Billable seconds for this leg.
example: 6
via_idstring | null
Identifier of the entity this leg was routed via.
example: 550e8400-e29b-41d4-a716-446655440030
via_namestring | null
Display name of the routing entity.
example: Main Line
via_numberstring | null
Number of the routing entity.
example: +12125550111
via_typestring | null
How this leg was reached, or null when not applicable.
enum: NORMAL IVR IVR-BTN ROUTING QUEUE TWINNING CALL_FLOW TRANSFER BLIND-TRANSFER FORWARD null
example: CALL_FLOW
call_flowarray<object>
Human-readable, ordered timeline of what happened during the call.
colorstring
UI severity hint for the timeline entry.
enum: info secondary success warning danger
example: info
textstring
Primary timeline message.
example: OUTGOING - Call started by Customer Support (2041)
sub_textstring | null
Secondary timeline detail.
timestring
When the timeline entry occurred, in `YYYY-MM-DD HH:MM:SS`.
example: 2026-01-12 15:50:19
notesarray<object>
Notes attached to the call.
[]object
Free-form object
trail_hashesobject | array
Prompt hash(es) used to produce each AI attribute (internal traceability). Empty when none.
example: []
transcriptionsobject | null
AI results, or null until available: `transcription`, `translation`, `summary`, `topic`, `language`, `keywords` / `ai_labels`, `cockpit_keywords`, `sentiment` + `sentiment_score`, `nps` + `nps_score`, `participants`, `discussion_points`, `agreements`, `tasks`. See the endpoint's `recorded_and_transcribed` example.
reprocess_countinteger
How many times the AI results were regenerated after feedback.
example: 0
reprocess_statusstring | null
State of a feedback-triggered reprocessing, null when none was requested.
enum: not_required pending processing completed null
is_reprocessedboolean
example:
has_ai_feedbackboolean
Whether feedback was given on this call's AI results.
example:
ai_feedbackobject | null
The feedback given on this call's AI results, or null.
ai_processing_errorsarray<object>
Errors raised while AI-processing the call, if any. The same list is in `ai_processing.errors`.
Each item — One error raised while AI-processing a call.
idinteger
example: 1532
call_idinteger
example: 47679936
error_typestring
example: audio_error
error_messagestring
example: Recording not available
retriesinteger
example: 0
created_atstring
`YYYY-MM-DD HH:MM:SS`
example: 2026-10-23 15:40:00
updated_atstring
`YYYY-MM-DD HH:MM:SS`
example: 2026-10-23 15:40:00
ai_processingobject
Where the call's AI processing (transcription, translation, summary, …) stands and why. Read `status` first, then `reasons` and `errors` for the details. | status | meaning | |---|---| | `completed` | Done; the results are in `transcriptions`. | | `processing` | The AI is working on the call right now. | | `queued` | Eligible and waiting for its turn. | | `waiting_for_recording` | Waiting for the recording to be verified; processing starts automatically afterwards. | | `retry_scheduled` | Failed on the recording; retried automatically (see `retry`). | | `failed` | Failed and not retried automatically; see `errors`. | | `expired` | Not processed within 7 days of the call; no longer picked up automatically. | | `not_eligible` | Not sent to AI processing; see `reasons`. | A call is transcribed when AI processing is enabled for your company, the conversation lasted more than `conditions.min_billsec` seconds, the call has a verified recording, and it ended less than `conditions.max_age_days` days ago.
statusstring | null
Current state. Null only when it could not be determined (temporary).
enum: completed processing queued waiting_for_recording retry_scheduled failed expired not_eligible null
example: queued
messagestring
Human-readable explanation of `status`.
example: The call is queued for AI processing.
reasonsarray<string>
Why the call is not, or no longer, transcribed: `company_not_enabled`, `call_too_short`, `no_recording`, `recording_not_verified`, `too_old`, `audio_error`, `ai_error`, `retries_exhausted`, `no_result`.
[]string
enum: company_not_enabled call_too_short no_recording recording_not_verified too_old audio_error ai_error retries_exhausted no_result
ai_statusstring
Raw pipeline state (`pending`, `processing`, `completed`).
example: pending
is_transcription_availableboolean
example:
conditionsobject
The eligibility checks, with this call's values.
company_enabledboolean
example: 1
billsecinteger
Seconds of conversation in this call.
example: 1440
min_billsecinteger
A call must last more than this many seconds of conversation.
example: 5
has_recordingboolean
example: 1
is_recording_verifiedboolean
example: 1
max_age_daysinteger
example: 7
retryobject
Automatic retries after a recording/audio failure.
countinteger
example: 0
maxinteger
example: 6
next_retry_atstring | null
Next automatic attempt, `YYYY-MM-DD HH:MM:SS`.
reprocessobject
Reprocessing triggered by AI feedback.
statusstring | null
enum: not_required pending processing completed null
countinteger
example: 0
timelineobject
When each piece of data first arrived, `YYYY-MM-DD HH:MM:SS` (null = not yet): `recording_files_received_at`, `recording_files_verified_at`, `transcription_received_at`, `translation_received_at`, `summary_received_at`, `topic_received_at`, `language_received_at`, `sentiment_received_at`, `nps_score_received_at`, `keywords_received_at`, `labels_received_at`, `participants_received_at`, `discussion_points_received_at`, `agreements_received_at`, `tasks_received_at`.
Free-form object
errors_countinteger
example: 0
last_errorobject
The most recent error, or null.
errorsarray<object>
Every error raised while AI-processing the call, oldest first.
Each item — One error raised while AI-processing a call.
idinteger
example: 1532
call_idinteger
example: 47679936
error_typestring
example: audio_error
error_messagestring
example: Recording not available
retriesinteger
example: 0
created_atstring
`YYYY-MM-DD HH:MM:SS`
example: 2026-10-23 15:40:00
updated_atstring
`YYYY-MM-DD HH:MM:SS`
example: 2026-10-23 15:40:00
statusboolean
example: 1
messagestring
example: CDRs #24904193 detail retrieved successfully.
Authorization Token Missing. This error is returned when the authorization token is missing.
Response schema
errorstring
Error message
example: Authorization Token is missing
The presented PBX API key does not carry the required `call-history` ability/scope, or the call belongs to another company.
Response schema
No response body.
Data Not Found. This error is returned when the requested data is not found.
Response schema
messagearray<string>
[]string
Too many requests. Rate-limited to 120 requests per minute per principal.
Response schema
No response body.
get https://cockpit.voxbi.com/api/v1/cdrs/detail/{id}
Base URL
Request sample
curl -X GET 'https://cockpit.voxbi.com/api/v1/cdrs/detail/{id}' \
  -H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/cdrs/detail/{id}', {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': `Bearer ${YOUR_TOKEN}`,
  },
});

const data = await response.json();
console.log(data);
import requests

response = requests.get('https://cockpit.voxbi.com/api/v1/cdrs/detail/{id}',
    headers={'Authorization': f'Bearer {YOUR_TOKEN}'}
)
response.raise_for_status()
data = response.json()
print(data)
<?php
$context = stream_context_create([
    'http' => [
        'method'  => 'GET',
        'header'  => "Content-Type: application/json\r\nAuthorization: Bearer YOUR_TOKEN",
    ],
]);

$response = file_get_contents('https://cockpit.voxbi.com/api/v1/cdrs/detail/{id}', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
"data": { … },
"id": 47679936,
"company_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "OUTGOING",
"date": "2026-10-23",
"start_time": "2026-10-23 15:07:02",
"answer_time": "2026-10-23 15:07:11",
"end_time": "2026-10-23 15:31:20",
"duration": 1458,
"billsec": 1449,
"is_transfer_call": false,
"is_internal": true,
"is_conference_call": false,
"conference": [],
"is_recording_file_exists": true,
"recording_file": { … },
"name": "15-07-02__2041__+33612345678__47679936.wav",
"path": "2026-10-23/15-07-02__2041__+33612345678__47679936.wav",
"download_url": "http://cdrs.voxbi.com/api/v1/call-recording?id=47679936&type=all",
"hint": "This recording file is for the entire call, including both caller and callee recordings. Download it from download_url with the same Bearer token you used for this request."
},
"recording_file_path_caller": { … },
"name": "15-07-02__2041__+33612345678__47679936-receive.wav",
"path": "2026-10-23/15-07-02__2041__+33612345678__47679936-receive.wav",
"download_url": "http://cdrs.voxbi.com/api/v1/call-recording?id=47679936&type=caller",
"hint": "This recording file is for the caller part of the call. Download it from download_url with the same Bearer token you used for this request."
},
"recording_file_path_callee": { … },
"name": "15-07-02__2041__+33612345678__47679936-transmit.wav",
"path": "2026-10-23/15-07-02__2041__+33612345678__47679936-transmit.wav",
"download_url": "http://cdrs.voxbi.com/api/v1/call-recording?id=47679936&type=callee",
"hint": "This recording file is for the callee (receivers who received the call) part of the call. Download it from download_url with the same Bearer token you used for this request."
},
"caller": { … },
"id": "550e8400-e29b-41d4-a716-446655440041",
"name": "Customer Support",
"number": "2041"
},
"receivers": [ … ],
{ … }
"id": "550e8400-e29b-41d4-a716-446655440077",
"status": "ANSWERED",
"name": "",
"number": "+33612345678",
"start_time": "2026-10-23 15:07:02",
"answer_time": "2026-10-23 15:07:11",
"end_time": "2026-10-23 15:31:20",
"duration": 1458,
"billsec": 1449,
"via_id": null,
"via_name": null,
"via_number": null,
"via_type": "NORMAL"
}
],
"call_flow": [ … ],
{ … },
"color": "info",
"text": "OUTGOING - Call started by Customer Support (2041)",
"sub_text": null,
"time": "2026-10-23 15:07:02"
},
{ … },
"color": "success",
"text": "Answered by +33612345678",
"sub_text": "Via [NORMAL] - ",
"time": "2026-10-23 15:07:02"
},
{ … }
"color": "info",
"text": "Call Finished",
"sub_text": null,
"time": "2026-10-23 15:31:20"
}
],
"notes": [],
"trail_hashes": { … },
"summary": "a1b2c3d4"
},
"transcriptions": { … },
"id": 79,
"cdr_id": 47679936,
"transcription": "Agent: Bonjour, Customer Support, je vous écoute. Client: Bonjour, je vous appelle au sujet de ma facture d'octobre.",
"translation": "Agent: Hello, Customer Support, how can I help? Customer: Hello, I am calling about my October invoice.",
"summary": "The customer asked about a duplicate charge on the October invoice; the agent confirmed it and promised a credit note.",
"topic": "Duplicate charge on October invoice",
"language": "fr",
"keywords": [],
"categories": { … },
"services": [],
"types": []
},
"ai_labels": [],
"cockpit_keywords": [],
"sentiment": { … },
"before_intervention": { … },
"sentiment": 0.3
},
"after_intervention": { … }
"sentiment": 0.8
}
},
"sentiment_score": 0.8,
"nps": { … },
"nps_category": "promoter",
"overall_sentiment_score": 9
},
"nps_score": 9,
"trail_hashes": { … },
"summary": "a1b2c3d4"
},
"participants": [ … ],
{ … },
"name": "Customer Support",
"role": "Support agent"
},
{ … }
"name": "Client",
"role": "Customer"
}
],
"discussion_points": [ … ],
"Duplicate charge on the October invoice"
],
"agreements": [ … ],
"A credit note will be issued"
],
"tasks": [ … ]
{ … }
"owner": "company_representative",
"action": "Send the credit note",
"due_date": "2026-10-27"
}
]
},
"reprocess_count": 0,
"reprocess_status": null,
"is_reprocessed": false,
"has_ai_feedback": false,
"ai_feedback": null,
"ai_processing_errors": [],
"ai_processing": { … }
"status": "completed",
"message": "AI processing is complete; the results are in `transcriptions`.",
"reasons": [],
"ai_status": "completed",
"is_transcription_available": true,
"conditions": { … },
"company_enabled": true,
"billsec": 1449,
"min_billsec": 5,
"has_recording": true,
"is_recording_verified": true,
"max_age_days": 7
},
"retry": { … },
"count": 0,
"max": 6,
"next_retry_at": null
},
"reprocess": { … },
"status": null,
"count": 0
},
"timeline": { … },
"recording_files_received_at": "2026-10-23 15:31:40",
"recording_files_verified_at": "2026-10-23 15:32:05",
"transcription_received_at": "2026-10-23 15:36:12",
"translation_received_at": "2026-10-23 15:36:12",
"summary_received_at": "2026-10-23 15:36:40",
"topic_received_at": "2026-10-23 15:36:40",
"language_received_at": "2026-10-23 15:36:12",
"sentiment_received_at": "2026-10-23 15:36:40",
"nps_score_received_at": "2026-10-23 15:36:40",
"keywords_received_at": null,
"labels_received_at": null,
"participants_received_at": "2026-10-23 15:36:40",
"discussion_points_received_at": "2026-10-23 15:36:40",
"agreements_received_at": "2026-10-23 15:36:40",
"tasks_received_at": "2026-10-23 15:36:40"
},
"errors_count": 0,
"last_error": null,
"errors": []
}
},
"status": true,
"message": "CDRs #47679936 detail retrieved successfully."
}
{ … }
"error": "Authorization Token is missing"
}
Cache-Control string
example: private, must-revalidate
Connection string
example: keep-alive
Content-Type string
example: application/json
Vary string
example: Origin
X-RateLimit-Limit integer
Max requests allowed in the current rate-limit window.
example: 60
X-RateLimit-Remaining integer
Requests remaining in the current rate-limit window.
example: 57
No example for this status.
{ … }
"message": [ … ]
"Data not found"
]
}
Cache-Control string
example: private, must-revalidate
Connection string
example: keep-alive
Content-Type string
example: application/json
Vary string
example: Origin
X-RateLimit-Limit integer
Max requests allowed in the current rate-limit window.
example: 60
X-RateLimit-Remaining integer
Requests remaining in the current rate-limit window.
example: 57
No example for this status.