---
title: "Read an agent session"
method: GET
path: "/api/v0beta1/agent-sessions/{id}"
tags: ["AgentSessions"]
---

# Read an agent session

`GET /api/v0beta1/agent-sessions/{id}`

## Path parameters

- `id` string, required

## Response `200`

Agent session.

- AgentSessionDetail
  - `session_id` string, required
  - `sandbox_id` string, required
  - `sandbox_name` string, nullable, required
  - `agent` string, required
  - `status` string, required
  - `preview` string, nullable, required
  - `started_at` union, required
    - string
    - string, date-time
  - `ended_at` union, required
    - string
    - string, date-time
    - unknown
  - `created_at` union, required
    - string
    - string, date-time
  - `updated_at` union, required
    - string
    - string, date-time
  - `messages` AgentSessionMessage[], required
    - `role` string, required
    - `content` string, required
    - `timestamp` string, required
    - `is_error` boolean

## Other responses

- `401` — Error
- `403` — Error
- `404` — Error

## Changes

- **2026-08-14** `664536fccd0e` — 9 breaking, 1 info
  - the response's body type/format changed from `object`/`` to ``/`` for status `200`
  - removed the required property `agent` from the response with the `200` status
  - removed the required property `created_at` from the response with the `200` status
  - removed the required property `ended_at` from the response with the `200` status
  - …6 more
- **2026-08-11** `054c89f5ab5b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/amika/apis/amika-api/changes/api/v0beta1/agent-sessions/:id/get.md)

---

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