---
title: "show details for an agent session"
method: GET
path: "/api/agent_sessions/{id}"
tags: ["agent_sessions"]
---

# show details for an agent session

`GET /api/agent_sessions/{id}`

This endpoint allows the client to retrieve a single agent session by slug or ID.
Returns the full session including messages, curated selections, and slices.

## Path parameters

- `id` string, required

## Response `200`

successful

- AgentSessionShow — Full representation of an agent session including messages and curation data
  - `id` integer, required
  - `slug` string, required
  - `title` string, required
  - `tool_name` string, required — Tool that produced the session (e.g. claude_code, codex)
  - `total_messages` integer, required
  - `curated_count` integer, required — Number of curated messages selected for display
  - `published` boolean, required
  - `metadata` object, nullable — Session metadata (tool-specific)
  - `messages` object[], required — All normalized messages in the session
  - `slices` object[], required — Named slices grouping message ranges
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `url` string, url, required

## Other responses

- `401` — unauthorized
- `404` — not found

## Changes

- **2026-07-13** (v1) `7db6ba099285` — 2 breaking
  - removed the media type `application/json` for the response with the status `401`
  - removed the media type `application/json` for the response with the status `404`
- **2026-05-28** (v1) `6550ad7be94f` — 2 info
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `404`
- **2026-03-19** (v1) `8dae809f0fde` — 1 breaking
  - removed the required property `curated_selections` from the response with the `200` status
- **2026-03-03** (v1) `c9e7662755c2` — 1 info
  - endpoint added
- **2023-01-10** (v1) `754f8b25f815` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/forem/apis/forem-api-v1/changes/api/agent_sessions/:id/get.md)

---

[API](https://skmtc.dev/forem/apis/forem-api-v1.md) · [All operations](https://skmtc.dev/forem/apis/forem-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/forem/forem-api-v1/revisions/7db6ba099285/schema)
