---
title: "Select session"
method: POST
path: "/tui/select-session"
---

# Select session

`POST /tui/select-session`

Navigate the TUI to display the specified session.

## Query parameters

- `directory` string
- `workspace` string

## Request body

- object
  - `sessionID` string, required — Session ID to navigate to

## Response `200`

Session selected successfully

- boolean

## Other responses

- `400` — Bad request
- `404` — Not found

## Changes

- **2026-04-25** `0a2d50cb4204` — 1 warning, 1 info
  - changed the pattern of the request property `sessionID` from `^ses` to `^ses.*`
  - added the new optional `query` request parameter `workspace`
- **2026-01-15** `101bbaa394c4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kaaass/apis/opencode/changes/tui/select-session/post.md)

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) · [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kaaass/opencode/revisions/8bb9a15bd144/schema)
