/v2/agents/sessions/{session_id}/sandbox/execExecInSandbox runs a one-shot command inside the session's sandbox.
Runs argv directly in the guest (no shell). Stdout/stderr are buffered and capped at 1 MiB each;
truncation is indicated via response headers when present. A non-zero exit code is still HTTP 200.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Command to run inside the sandbox.
A 400 is returned: Invalid argv or request body. A 401 is returned: Authentication failed due to invalid credentials. A 402 is returned: The team is blocked by the prepayment gate. A 403 is returned: Session belongs to another team. A 404 is returned: The resource was not found. A 409 is returned: Session is not in a state that can run exec. A 423 is returned: This session is unavailable; contact support. A 429 is returned: The API rate limit has been exceeded. A 500 is returned: There was a server error. Any other status is an error: There was an unexpected error.