---
title: "Get run details"
method: GET
path: "/agent/v1/run/{id}/details"
tags: ["Agents"]
---

# Get run details

`GET /agent/v1/run/{id}/details`

Full audit trail for a run including output, steps (tool calls, text), and token usage.

## Path parameters

- `id` string, required

## Response `200`

Run details with full step trace

- object
  - `id` string
  - `agentId` string
  - `status` 'queued' | 'running' | 'completed' | 'failed' | 'cancelled'
  - `prompt` string
  - `guidance` string, nullable
  - `model` string, nullable
  - `workflowId` string, nullable — Durable workflow run ID
  - `modalSandboxId` string, nullable — Deprecated legacy Modal sandbox ID. Prefer `provider` and `runtimeId`.
  - `provider` 'daytona' | 'vercel', nullable — Runtime provider for this run
  - `runtimeId` string, nullable — Provider-specific runtime identifier
  - `runtimeState` 'running' | 'stopped' | 'archived' | 'ended' | 'error', nullable — Current runtime state, when available
  - `result` object, nullable — Final output from the agent
    - `output` string
    - `outputObjectIds` string[]
    - `finalResponse` object, nullable — Compact agent-facing result summary and execution issues
      - `summary` string
      - `createdObjectIds` string[]
      - `issues` string[]
    - `logs` object, nullable — Sandbox execution logs (runtime server + runner script)
      - `runtime` string — Runtime server stdout/stderr
      - `opencode` string — Legacy runtime server stdout/stderr
      - `runner` string — Runner script stdout/stderr
  - `usage` object, nullable — Token usage statistics
    - `model` string
    - `inputTokens` integer
    - `outputTokens` integer
    - `toolCalls` integer
    - `durationMs` integer
    - `summary` object, nullable
      - `costMicros` integer
      - `totalInputTokens` integer
      - `totalOutputTokens` integer
      - `totalTokens` integer
    - `entries` object[]
      - `id` string
      - `kind` 'llm' | 'api'
      - `service` string
      - `endpoint` string, nullable
      - `method` string, nullable
      - `statusCode` integer, nullable
      - `costMicros` integer
      - `promptTokens` integer, nullable
      - `completionTokens` integer, nullable
      - `totalTokens` integer, nullable
      - `model` string, nullable
      - `timestamp` string, date-time
      - `metadata` unknown
  - `steps` object[]
    - `id` string
    - `type` 'output' | 'thinking' | 'tool_call' | 'tool_result'
    - `content` string, nullable
    - `toolName` string, nullable
    - `toolInput` unknown
    - `toolOutput` unknown
    - `durationMs` integer, nullable
    - `timestamp` string, date-time
  - `createdAt` string, date-time
  - `startedAt` string, date-time, nullable
  - `completedAt` string, date-time, nullable

## Other responses

- `400` — Missing run ID
- `401` — Invalid API key
- `403` — No agent access
- `404` — Run not found

---

[API](https://skmtc.net/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.net/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casemark/case-dev-api/versions/5b7e64e6d6f9/schema)
