Langfuse icon

Langfuse

Log LLM traces, spans, generations, and scores to Langfuse, or query traces, prompts, datasets, sessions, and more via the Public API.

Public API → Get Trace

AI-generated

Summary

Retrieve detailed information about a specific trace from Langfuse's Public API by providing its unique Trace ID.

Inputs

  • Trace ID (required) — The unique identifier of the trace to fetch, for example '1234567890abcdef1234567890abcdef'.
  • Show Advanced Fields — Toggle to reveal optional fields for the operation; defaults to false.

Output shape

a single record containing detailed trace data

Returns the trace details corresponding to the provided Trace ID. No pagination applies since this fetches a single trace. Errors are surfaced clearly if the trace is not found or the request fails.

Examples

Example 1: Retrieve a trace by Trace ID

Set the Trace ID field with the known trace identifier; optionally enable 'Show Advanced Fields' to reveal more parameters if available.

Links

Discussion