---
title: "list the authenticated user's agent sessions"
method: GET
path: "/api/agent_sessions"
tags: ["agent_sessions"]
---

# list the authenticated user's agent sessions

`GET /api/agent_sessions`

Retrieve a list of the authenticated user's agent sessions.

### Agent Sessions Overview:
- Agent sessions represent coding conversation transcripts uploaded from CLI tools (like Claude Code).
- Used by the developer portal to render interactive walkthroughs or session summaries.
- Requires authentication.

## Response `200`

successful

- AgentSessionIndex[]
  - `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
  - `published` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time
  - `url` string, url, required

## Other responses

- `401` — unauthorized

## Changes

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

- **2026-07-13** (v1) `189b62b952ea` — 1 breaking
  - removed the media type `application/json` for the response with the status `401`
- **2026-07-13** (v1) `7db6ba099285` — 1 breaking
  - removed the media type `application/json` for the response with the status `401`
- **2026-05-28** (v1) `6550ad7be94f` — 1 info
  - added the media type `application/json` for the response with the status `401`
- **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/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)
