---
title: "Get PTY session"
method: GET
path: "/pty/{ptyID}"
---

# Get PTY session

`GET /pty/{ptyID}`

Retrieve detailed information about a specific pseudo-terminal (PTY) session.

## Path parameters

- `ptyID` string, required

## Query parameters

- `directory` string
- `workspace` string

## Response `200`

Session info

- Pty
  - `id` string, required
  - `title` string, required
  - `command` string, required
  - `args` string[], required
  - `cwd` string, required
  - `status` 'running' | 'exited', required
  - `pid` number, required

## Other responses

- `404` — Not found

---

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