---
title: "Get Voice Session Trace"
method: GET
path: "/api/ai-agents/{agent_id}/voice-sessions/{session_id}/trace"
tags: ["ai-agents", "ai-agents"]
---

# Get Voice Session Trace

`GET /api/ai-agents/{agent_id}/voice-sessions/{session_id}/trace`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/ai-agents/{agent_id}/voice-sessions/{session_id}/trace`
- Auth: none declared

Return the full ClickHouse execution timeline for a voice session.

Mirrors get_activity_trace's voice branch but keyed directly by
voice_sessions.id — no activity_log indirection needed. Resolves
the matching ClickHouse trace by (thread_id, started_at window).

Status discriminators:
  404 not_found             — session id wrong / wrong workspace
  410 voice_trace_not_found — no matching CH trace in the window
  410 trace_expired         — CH retention evicted the trace row

## Path parameters

- `agent_id` integer, required
- `session_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
