---
title: "Send prompt to PTY"
method: POST
path: "/v1/pty/prompt"
tags: ["pty"]
---

# Send prompt to PTY

`POST /v1/pty/prompt`

Sends prompt to PTY session, waits for readiness

## Query parameters

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

## Request body

- string

## Response `200`

Prompt sent successfully

## Other responses

- `400` — Invalid parameters
- `404` — Session not found
- `408` — PTY not ready within timeout
- `500` — Failed to send prompt

## 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/prompt/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)
