Execute Command
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "smolmachines",
"path": "",
"method": "POST",
"body": {
"command": ""
}
}'
Free
About this endpoint
Run a command inside a machine. Pass command as a shell string ("ls -la") or argv array (["ls","-la"]). Machine must be ready before calling.
Body parameters
More from Smol Machines
- Session ExecPOST/v1/machines/{id}/sessions/{session_id}/execFree
- Download FileGET/v1/machines/{id}/filesFree
- Delete MachineDELETE/v1/machines/{id}Free
- Create SessionPOST/v1/machines/{id}/sessionsFree
- Stop MachinePOST/v1/machines/{id}/stopFree
- Run CodePOST/v1/machines/{id}/codeFree
- Get MachineGET/v1/machines/{id}Free
- Delete SessionDELETE/v1/machines/{id}/sessions/{session_id}Free
- Machine EventsGET/v1/machines/{id}/eventsFree
- Create MachinePOST/v1/machinesPriced per call
- Upload FilePOST/v1/machines/{id}/filesFree
- Start MachinePOST/v1/machines/{id}/startFree