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

Retrieve details for a single agent session by unique slug or ID.

### Integration Tip:
- Returns the complete session structure including parsed message logs, token counts, slices, and tool execution metadata.

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

> 59 revisions in range; 34 could not be searched.

- **2026-07-13** (v1) `189b62b952ea` — 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`
- **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/1f64f71fc2a7/schema)
