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

This endpoint allows the client to list their own agent sessions.

Agent sessions are coding conversation transcripts uploaded from CLI tools like
[Claude Code](https://github.com/anthropics/claude-code). Use the
[Forem CLI plugin](https://github.com/forem/forem-cli-plugin) to upload sessions
from the command line.

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

- **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/7db6ba099285/schema)
