Fetch a call trace and recording
Use the dino CLI and your API key to evaluate a call. The API serves two things for a call: its trace and its recording.
- The trace is everything Dino recorded about the call, except audio.
- The recording is the call audio as one Ogg Opus file.
There is no separate summary or transcript download. The transcript is part of the trace.
Before you start
You need:
- An installed
dinoCLI. - A Dino API key for an account that can see the call.
- A workspace that holds the key. Follow step 1 of the Quickstart.
- The call ID.
Keep the API key in the workspace .env file. Never paste it into chat.
dino workspace check
dino account getFetch the trace
dino call trace --call-id <call-id>The CLI prints its normal JSON envelope. The trace is in data. The command is read-only, so it needs no confirmation.
Download the recording
The command writes a local file, so it needs your approval for one exact run.
# After you approve the local file write:
dino call recording --call-id <call-id> \
--output <absolute-path>/call.ogg \
--confirm-mutation call.recordingThe CLI refuses to replace an existing file. Add --overwrite to replace it. The result gives contentType (audio/ogg), bytes, and output.
Example
The values below are an example. Your trace has the same shape.
dino call trace --call-id 01a0f1f0-0000-7000-8000-000000000001An abridged data:
{
"call": {
"callId": "01a0f1f0-0000-7000-8000-000000000001",
"transport": "twilio",
"carrierCallId": "CA0000000000000000000000000000000",
"startedAt": "2026-10-06T10:51:07.294Z",
"endedAt": "2026-10-06T10:52:39.296Z",
"terminationSource": "user",
"terminationReason": "user_hangup"
},
"config": {
"agentId": "01a0f1e0-0000-7000-8000-0000000000aa",
"partner": "vertex",
"model": "gemini-3.8-live",
"runtime": { "vadMode": { "kind": "vox_vad_lite" } }
},
"events": [
{ "at": "2026-10-06T10:51:07.294Z", "kind": { "type": "phase", "data": "INITIATED" } },
{ "at": "2026-10-06T10:51:09.291Z", "kind": { "type": "asset_sent", "data": { "asset": "greeting" } } },
{ "at": "2026-10-06T10:51:11.302Z", "kind": { "type": "asset_played", "data": { "asset": "greeting" } } },
{ "at": "2026-10-06T10:51:12.510Z", "kind": { "type": "caller_speech_started" } },
{ "at": "2026-10-06T10:51:12.515Z", "kind": { "type": "listening_opened" } },
{ "at": "2026-10-06T10:51:13.940Z", "kind": { "type": "caller_speech_ended" } },
{ "at": "2026-10-06T10:51:13.955Z", "kind": { "type": "listening_closed" } },
{ "at": "2026-10-06T10:51:14.405Z", "kind": { "type": "reply_started", "data": { "number": 1 } } },
{ "at": "2026-10-06T10:51:14.980Z", "kind": { "type": "reply_delivered", "data": { "number": 1 } } },
{ "at": "2026-10-06T10:51:16.120Z", "kind": { "type": "interruption" } },
{ "at": "2026-10-06T10:51:16.180Z", "kind": { "type": "playback_cleared", "data": { "cause": "interruption" } } },
{
"at": "2026-10-06T10:51:16.200Z",
"kind": { "type": "transcript", "data": { "speaker": "user", "text": "Sorry, can you say that again?" } }
}
],
"usage": {
"model": [{ "promptTokenCount": 995, "responseTokenCount": 339, "totalTokenCount": 1334 }],
"metering": ["..."]
}
}dino call recording --call-id 01a0f1f0-0000-7000-8000-000000000001 \
--output /home/me/calls/call.ogg --confirm-mutation call.recording{ "contentType": "audio/ogg", "bytes": 703115, "output": "/home/me/calls/call.ogg" }The file is Ogg Opus with two channels: the caller on the left and the agent on the right.
What the trace contains
| Section | Contents |
|---|---|
call | Call ID, transport, carrier call ID, from and to numbers, start and end times, termination source and reason. Phase changes are phase events. |
config | agentId is the agent version that ran the call. Read its configuration with dino agent get --agent-id <agentId>. partner is the model vendor and model is the model. runtime gives the VAD mode and the VAD profile with its thresholds. A simulation has no VAD mode. |
events | The call timeline, in time order. Each event has at and kind. |
usage | model holds the vendor's token usage reports, as the vendor sent them. metering holds Dino metering events. |
config.runtime is absent when the call never had media, for example a call that was not answered.
Each event kind has a type and, for some types, data:
type | data |
|---|---|
phase | INITIATED, CONNECTING, ACTIVE, or TERMINATED. |
transcript | speaker (user or assistant) and text. at is when the utterance started. |
flow | One flow log entry. dir is received, event, or emitted. |
integration | The integration execution record, placed at the time the flow sent the request to the integration. |
vad | speech_start or speech_end, from Dino voice detection. |
caller_speech_started, caller_speech_ended | No data. The caller started or stopped speaking. These are absent when the model vendor detects speech. |
reply_started | number of the agent reply, counted from 1. The first audio of the reply arrived. |
reply_delivered | number. The last audio of the reply arrived. A vendor that sends the reply in bulk delivers it fast. A vendor that sends at speaking speed delivers it over the length of the reply. |
reply_generated | number. The model vendor finished the reply. |
reply_heard | number. The caller heard the end of the reply. |
interruption | No data. The model vendor reported that the caller interrupted. |
playback_cleared | cause. interruption: Dino cleared the agent audio after the vendor reported an interruption. idle_prompt_timeout: Dino stopped an idle prompt that did not finish in time. |
listening_opened, listening_closed | No data. Dino started or stopped sending caller audio to the model vendor. Caller speech outside these windows did not reach the vendor. These are absent when the model vendor detects speech. |
output_muted | No data. From this time the caller no longer heard the agent. The recording leaves out the agent audio after it. |
asset_sent, asset_played | asset of the lifecycle audio, for example greeting or idle_prompt. asset_played is when the caller heard its end. |
The trace has no audio packets and no audio asset data.
Errors
| Status | Meaning |
|---|---|
| 404 | The call does not exist, or your account cannot see it. |
| 404 | For the recording: the call has no audio, or Dino could not prepare it. |
| 503 | The recording is still being prepared. Retry after the Retry-After seconds. |
Privacy
- The trace contains personal data: phone numbers, the transcript, placeholder values such as customer names, tool call arguments, and integration inputs and results.
- The recording contains the voices of the people on the call.
- Handle both as personal data under your agreement with Dinodial.
- A trace or recording on disk is outside Dino access control. Protect the files you write.