machines
Run a command and stream its output.
Changed onRuns a command and returns stdout, stderr, and the exit code as Server-Sent Events. Requires the machine:exec scope.
post/v1/machines/{id}/exec/stream
Request
- Base URLhttps://api.smolmachines.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Machine id
Request body
Response
Command output as Server-Sent Events, written as it is produced and never truncated. Frames are event: stdout|stderr|error|exit with data: lines; the terminal exit frame carries {"exitCode": N}. Identical to POST /v1/machines/{id}/exec with stream: true — a dedicated path for clients that route by URL rather than by request body.
Changes
- info
endpoint added
- info