---
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

---

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