---
title: "Get session turn details"
method: GET
path: "/api/{org_id}/{stream_name}/traces/session/details"
tags: ["Traces"]
---

# Get session turn details

`GET /api/{org_id}/{stream_name}/traces/session/details`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/{stream_name}/traces/session/details`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/:stream_name/traces/session/details/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves per-turn trace summaries for a single LLM session. The response uses the same trace-summary hit shape as the trace latest endpoint, but aggregates each matched trace across all spans so turn status reflects child span errors.

## Path parameters

- `org_id` string, required
- `stream_name` string, required

## Query parameters

- `session_id` string, required
- `from` integer, required
- `size` integer, required
- `start_time` integer
- `end_time` integer
- `hint_ts` integer
- `timeout` integer

## Response `200`

Success

- PaginatedResponse: Paginated response used by list-style APIs (sessions, traces, users).
  - `from` integer, required
  - `function_error` string
  - `hits` object[], required
  - `size` integer, required
  - `took` integer, required
  - `total` integer, required
  - `trace_id` string

## Other responses

- `400`: Failure
- `500`: Failure

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
