---
title: "Attach an interactive terminal to the user's global workspace"
method: GET
path: "/ai/workspace/terminal"
tags: ["AI Chat"]
---

# Attach an interactive terminal to the user's global workspace

`GET /ai/workspace/terminal`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/workspace/terminal`
- Auth: HTTP bearer

Same protocol as the application workspace terminal, for a terminal thread of the signed-in user's private default workspace. Requires `sandboxes:exec`.

## Query parameters

- `thread` string, required
- `cols` integer, nullable
- `rows` integer, nullable

## Other responses

- `101`: WebSocket established; PTY attached
- `401`
- `403`
- `409`: The workspace sandbox cannot be attached to right now
- `429`: Too many concurrent terminals
- `503`

## Changes

> 76 revisions in range; 1 not diffed.

- **2026-10-14** `9b4ecfa855b0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/workspace/terminal/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) · [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) · [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/7ee3ab1b2020?raw)
