Run a process
Process Management
Run Process
Start a non-interactive process, stream captured output over Server-Sent Events, and emit a final exit event. Stdin is closed for this endpoint.
POST
Run a process
Start a process, stream its captured output over Server-Sent Events, and receive a final exit event.
Use this endpoint when you want a single request for non-interactive command execution. If the process needs stdin, use Start Process, Process Stdin, and Close Process Stdin instead.
Use this endpoint on the sandbox proxy host:
The first event contains
Endpoint
Example Request
Request Body
commandis required.argsdefaults to[].envdefaults to{}and is applied to the process environment.working_diris optional.useris optional and accepts a username, UID string,uid:gidstring, or an object such as{"uid": 1000, "gid": 1000}.timeoutis optional. When set, Tensorlake kills the process if it is still running after that many seconds.
/processes/run always starts the process with stdin closed and stdout/stderr captured, even if stdin_mode, stdout_mode, or stderr_mode are present in the request body.SSE Events
Tensorlake streams JSON payloads in SSEdata: frames:
handle, pid, and started_at. Output events contain line, timestamp, and stream. The final event contains exit_code or signal; if the kernel OOM killer ended the process, it includes signal: 9 and oom_killed: true.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json