Send Stdin
Command API
Send Stdin
Write data to the stdin of a running background process.
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
The sandbox identifier. Format:
sbx-<8 chars>.Process ID of the background command to write to.Example:
42Request Body
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
| Status | Cause |
|---|---|
401 | Missing or invalid API key |