Sandboxes
Run a command inside the sandbox (`@vercel/sandbox`-compatible).
Changed onwait=false (default) returns { command: {..., exitCode: null} } immediately once the background task is spawned.
wait=true streams application/x-ndjson: the first line is the running envelope, the second is the finished envelope with exitCode.
post/v1/sandboxes/{id}/cmd
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- AuthHTTP bearer
Path parameters
idstring required
Request body
Response
Command started (wait=false) or finished (wait=true)
Changes
- info
endpoint added
- info