get trace
get_traceFetch all logged steps of one agent run by trace ID, oldest-first including aborted partials, to pinpoint the failure point in a multi-step execution.
Instructions
Fetch every logged step of one agent run or conversation (grouped by the X-Omnia-Trace-Id you sent), oldest-first in execution order and including aborted partials — use it for error analysis of a multi-step run. GET /v1/traces/{traceId} (API-key scope: read). Returns: JSON { object: 'list', trace_id, data: [ { request_id, created_at (Unix seconds), model, alias: string|null, tag, status ('SUCCESS'|'ABORTED'), finish_reason, streamed, cache_hit, fallback_from, prompt_tokens, completion_tokens, messages: parsed request messages (null if unparseable), response: parsed assistant message (null if unparseable) } ] } ordered oldest first. Notes: Requires request logging to be enabled — 409 { error: string } (flat shape) otherwise. Unlike /v1/logs this includes ABORTED partial rows (a run that died at step 4 is the finding). No pagination or filters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| traceId | Yes | The trace id sent as X-Omnia-Trace-Id on the gateway requests. 404 'Trace not found' when no logged step carries it. |