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 Session

AI-generated

Summary

Retrieve detailed information about a specific session in Langfuse by its session ID.

Inputs

  • Session ID (required) — The unique identifier of the Langfuse session to fetch.
  • Show Advanced Fields — Optionally reveal additional optional fields for this operation (default is false).

Output shape

a single session record object

Returns the session data as a single object. No pagination applies to this operation since it fetches by session ID.

Examples

Example 1: Fetch details of a session

Provide the session ID in the 'Session ID' field to get the session's metadata and statistics from Langfuse's Public API.

Links

Discussion