---
title: "Get Trace"
method: GET
path: "/api/v1/monitor/traces/{trace_id}"
tags: ["Traces"]
---

# Get Trace

`GET /api/v1/monitor/traces/{trace_id}`

Get a single trace with its hierarchical span tree.

Args:
    trace_id: The ID of the trace to retrieve.
    current_user: The authenticated user (required for authorization).

Returns:
    TraceRead containing the trace and its hierarchical span tree.

## Path parameters

- `trace_id` string, uuid, required

## Response `200`

Successful Response

- TraceRead — Response model for a single trace with its hierarchical span tree. Serializes to camelCase JSON to match the frontend API contract.
  - `endTime` string, date-time, nullable, required
  - `flowId` string, uuid, required
  - `id` string, uuid, required
  - `input` union
    - object
    - string
  - `name` string, required
  - `output` union
    - object
    - string
  - `sessionId` string, required
  - `spans` SpanReadResponse[]
    - `children` SpanReadResponse[]
    - `endTime` string, date-time, nullable, required
    - `error` string, nullable, required
    - `id` string, uuid, required
    - `inputs` object, nullable, required
    - `latencyMs` integer, required
    - `modelName` string, nullable, required
    - `name` string, required
    - `outputs` object, nullable, required
    - `startTime` string, date-time, nullable, required
    - `status` 'unset' | 'ok' | 'error', required — OpenTelemetry status codes. - UNSET: Default status, span has not ended yet - OK: Span completed successfully - ERROR: Span completed with an error
    - `tokenUsage` object, nullable, required
    - `type` 'chain' | 'llm' | 'tool' | 'retriever' | 'embedding' | 'parser' | 'agent', required — Types of spans that can be recorded.
  - `startTime` string, date-time, nullable, required
  - `status` 'unset' | 'ok' | 'error', required — OpenTelemetry status codes. - UNSET: Default status, span has not ended yet - OK: Span completed successfully - ERROR: Span completed with an error
  - `totalLatencyMs` integer, required
  - `totalTokens` integer, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-06-08** `a5c4fa6a88f7` — 2 breaking
  - response property `input` list-of-types was widened by adding types `string` to media type `application/json` of response `200`
  - response property `output` list-of-types was widened by adding types `string` to media type `application/json` of response `200`
- **2026-03-12** `830c31118215` — 1 info
  - endpoint added
- **2025-10-16** `9bd3e81318d7` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v1/monitor/traces/:trace_id/get.md)

---

[API](https://skmtc.dev/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.dev/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/22962dc5e81b/schema)
