---
title: "Get Session"
method: GET
path: "/agent/sessions/{session_id}"
tags: ["Runtime"]
---

# Get Session

`GET /agent/sessions/{session_id}`

Return a single session's reconstructed text-only message thread.

Returns 501 when the adapter doesn't support detail retrieval and
404 when the session id is unknown (or when the SSO-scoped user
isn't allowed to see it — the adapter enforces that and returns
``None``).

## Path parameters

- `session_id` string, required

## Response `200`

Successful Response

- SessionDetail — Full /agent/sessions/{id} response. Messages are text-only.
  - `id` string, required
  - `lastUpdateTime` number, nullable
  - `userId` string, nullable
  - `threadId` string, nullable
  - `messages` SessionMessage[]
    - `id` string, required
    - `role` 'user' | 'assistant', required
    - `content` string, required
    - `timestamp` number, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/idun-group/apis/idun-agent-engine-server.md) · [All operations](https://skmtc.net/idun-group/apis/idun-agent-engine-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/idun-group/idun-agent-engine-server/versions/8909cd73cc1c/schema)
