sandboxes

Execute a command (bash -lc command, or argv)

post/sandboxes/{id}/exec

Request

  • Base URL: https://api.eqvps.com/api/v1/eqvps
  • URL: https://api.eqvps.com/api/v1/eqvps/sandboxes/{id}/exec
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

commandstring

Run as bash -lc

argvstring[]
stdinstring
cwdstring
timeoutinteger

Seconds. Synchronous: max 55 (default 30). With async: up to the sandbox's remaining lifetime (default).

asyncboolean

Run as a background task: returns 202 TaskStarted immediately; poll GET /sandboxes/{id}/tasks/{task_id}.

envSbxEnv

Environment variables for the process. Up to 64 names, 32 KB per value, 64 KB total. Values are stored encrypted, never returned by the API and not logged; responses show only env_keys. On create: applied to every exec/run in the sandbox. On exec/run: applied to that call and merged over the sandbox env.

Response

Execution result

exit_codeinteger
stdoutstring
stderrstring
timed_outboolean
truncatedboolean
duration_msinteger

Changes

No recorded changes to this operation across all 1 revision of this API.