---
title: "Start PTY session"
method: POST
path: "/v1/pty/start"
tags: ["pty"]
---

# Start PTY session

`POST /v1/pty/start`

Creates PTY session for workspace if not exists, returns immediately

## Query parameters

- `session` string, required
- `agent` string

## Response `200`

Session started or already exists

## Other responses

- `400` — Invalid parameters
- `500` — Failed to create session

## Changes

- **2025-10-24** `84d9ed6c813e` — 1 info
  - endpoint added
- **2025-07-18** `21270d5158bd` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/wandb/apis/catnip-container-api/changes/v1/pty/start/post.md)

---

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