---
title: "Get a session by ID"
method: GET
path: "/session/{sessionId}"
tags: ["session"]
---

# Get a session by ID

`GET /session/{sessionId}`

## Path parameters

- `sessionId` string, required

## Response `200`

A session

- SessionThreads
  - `id` string
  - `name` string
  - `created_on` string, date-time
  - `threads` Thread[]
    - `id` string
    - `session_id` string
    - `name` string
    - `start_time` string, date-time
    - `end_time` string, date-time
    - `input` string
    - `output` string

## Changes

- **2024-08-13** `2ede9554c2cc` — 1 breaking, 4 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - added the optional property `created_on` to the response with the `200` status
  - added the optional property `id` to the response with the `200` status
  - added the optional property `name` to the response with the `200` status
  - …1 more
- **2024-08-13** `e5fd519e47a7` — 1 breaking, 2 warning
  - the response's body type/format changed from `object`/`` to ``/`` for status `200`
  - removed the optional property `events` from the response with the `200` status
  - removed the optional property `session` from the response with the `200` status
- **2024-08-12** `5800c68dedbb` — 2 breaking, 1 warning, 3 info
  - for the `path` request parameter `sessionId`, the minLength was increased from `0` to `36`
  - added the pattern `^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$` to the `path` request parameter `sessionId`
  - for the `path` request parameter `sessionId`, the maxLength was set to `36`
  - added the optional property `events/items/run_id` to the response with the `200` status
  - …2 more

[Change history](https://skmtc.dev/defra/apis/twiki-api/changes/session/:sessionId/get.md)

---

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