---
title: "Get Agent Trace"
method: GET
path: "/api/admin/agent-traces/{trace_id}"
tags: ["admin"]
---

# Get Agent Trace

`GET /api/admin/agent-traces/{trace_id}`

## Request

- Base URL: `https://api.stremai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stremai.com/api/admin/agent-traces/{trace_id}`
- Auth: none declared

Get full trace with all steps and evaluation details.

## Path parameters

- `trace_id` string, required

## Response `200`

Successful Response

- AgentTraceDetailResponse
  - `id` string, required
  - `session_id` string, required
  - `task_hint` string, nullable, required
  - `status` string, required
  - `total_steps` integer, required
  - `completed_steps` integer, required
  - `failed_step` integer, nullable, required
  - `total_latency_ms` integer, required
  - `total_cost_usd` number, required
  - `total_tokens` integer, required
  - `eval_score` number, nullable, required
  - `created_at` string, required
  - `finalized_at` string, nullable, required
  - `steps` AgentStepResponse[], required
    - `id` string, required
    - `step_number` integer, required
    - `step_type` string, required
    - `model_used` string, nullable, required
    - `tool_name` string, nullable, required
    - `tool_success` boolean, nullable, required
    - `input_summary` string, nullable, required
    - `output_summary` string, nullable, required
    - `latency_ms` integer, required
    - `cost_usd` number, required
    - `tokens_used` integer, required
    - `status` string, required
    - `failure_reason` string, nullable, required
    - `quality_score` number, nullable, required
    - `created_at` string, required
  - `eval_details` object, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stremai/apis/strem-ai.md) · [All operations](https://skmtc.dev/stremai/apis/strem-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/stremai/apis/strem-ai/revisions/160e5f136d48?raw)
