EndpointsWrite command input

Sandboxes

Write command input

Writes text to the standard input of a command started with stdin: true. Requires run_commands. Commands and file operations need an ACTIVE sandbox; on any other state they answer 409.

POST/sandboxes/{id}/commands/{command_id}:writeStdin
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.

Required string length: 1 - 53

Example: "ws_j572abc123def4"

idstringrequired

Sandbox id (sbx_...).

Pattern: ^sbx_[A-Za-z0-9]{1,64}$

Example: "sbx_j572abc123def456"

command_idstringrequired

Sandbox command id (cmd_...).

Pattern: ^cmd_[A-Za-z0-9]{1,64}$

Example: "cmd_j572abc123def456"

Body

application/json
datastringrequired

Text to write.

Maximum string length: 1048576

closebooleandefault:false

Close standard input afterwards.

Response

<No Content>

No response body.