---
title: "Get agent session"
method: GET
path: "/api/v0/agent/sessions/{session_id}"
tags: ["Agent"]
---

# Get agent session

`GET /api/v0/agent/sessions/{session_id}`

Get an agent session.

## Path parameters

- `session_id` string, uuid, required

## Response `200`

Successful Response

- AgentSessionGetResponse — Response for getting an agent session.
  - `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.

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