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.
This endpoint is a stub in the current release. Full interactive stdin support
(with back-pressure and pipe coordination) is coming in a future version.
Path Parameters
The sandbox identifier. Format: sbx-<8 chars>.
Process ID of the background command to write to.Example: 42
Request 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
curl -X POST https://api.declaw.ai/sandboxes/sbx-a1b2c3d4/commands/42/stdin \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "data": "yes\n" }'
Error Responses
| Status | Cause |
|---|
401 | Missing or invalid API key |