---
title: "Get Trace Analysis Prompt"
method: GET
path: "/v2/trace/{trace_id}/analysis-prompt"
tags: ["traces"]
---

# Get Trace Analysis Prompt

`GET /v2/trace/{trace_id}/analysis-prompt`

Size-bounded debugging prompt: error, task, trajectory, and log tails.

## Path parameters

- `trace_id` string, uuid, required

## Response `200`

Successful Response

- TraceAnalysisPromptResponse — A size-bounded debugging prompt for a trace, ready to paste into a coding agent.
  - `trace_id` string, uuid, required
  - `prompt` string, required
  - `truncated` boolean, required

## Other responses

- `400` — Invalid or malformed request
- `401` — Missing or invalid credentials
- `403` — Caller may not access this resource
- `404` — Referenced entity does not exist
- `409` — Resource already exists
- `422` — Validation Error

## Changes

- **2026-09-25** `44153c2e35e9` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hud/apis/hud-platform/changes/v2/trace/:trace_id/analysis-prompt/get.md)

---

[API](https://skmtc.dev/hud/apis/hud-platform.md) · [All operations](https://skmtc.dev/hud/apis/hud-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/hud/apis/hud-platform/revisions/50a2fbc0a044?raw)
