---
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

---

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