---
title: "List agent sessions"
method: GET
path: "/api/v0/agent/sessions"
tags: ["Agent"]
---

# List agent sessions

`GET /api/v0/agent/sessions`

List all agent sessions for the current user.

## Query parameters

- `limit` integer
- `offset` integer
- `name` string, nullable — Return only the session whose name is exactly this, newest activity first if several match. Resolves a name used as a binding in one request; `limit` and `offset` do not apply.

## Response `200`

Successful Response

- AgentSessionListResponse — Response for listing agent sessions.
  - `sessions` AgentSessionGetResponse[], required — The list of agent sessions.
    - `id` string, uuid, required — The ID of the session.
    - `persona_id` string, uuid, nullable — The ID of the persona used by this session. Null means default persona.
    - `name` string, nullable, required — The name of the session.
    - `status` string, required — The status of the session. Options: 'active', 'completed', 'error'.
    - `settings` AgentSessionSettings, required — Settings for an agent session.
      - `max_iterations` integer, nullable — Maximum number of agent loop iterations. When null, uses server default (30).
    - `message_count` integer, required — The number of messages in the session.
    - `is_roaming` boolean — True iff this session's persona exposes any fs_* / fs_bash tool and therefore has a workspace directory the agent reads/writes.
    - `created_at` string, date-time, required — When the session was created.
    - `updated_at` string, date-time, required — When the session was last updated.
  - `pagination` PaginationMetadata, required
    - `total` integer, required — The total number of items matching the query.
    - `limit` integer, required — The maximum number of items per page.
    - `offset` integer, required — The number of items skipped.
    - `has_more` boolean, required — Whether there are more items available.

## Other responses

- `422` — Validation Error

---

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