Skip to main content
POST
Send Stdin
Sends a string to the standard input of a background process. The target process must have been started with stdin: true in the run command request so that a stdin pipe was reserved. Returns an empty {} body.
For full interactive stdin with streaming output, back-pressure, and separate stdout/stderr callbacks, see the dedicated stdio API. This command-level endpoint is a simpler alternative for one-shot stdin writes.

Path Parameters

string
required
The sandbox identifier. Format: sbx-<8 chars>.
integer
required
Process ID of the background command to write to.Example: 42

Request Body

string
required
String data to write to the process stdin. Include a newline (\n) to simulate pressing Enter.Example: "yes\n"

Response

Returns an empty JSON object {}.

Example

Response

Error Responses