Execute Command

VerifiedPOST /v1/machines/{id}/execPublished by Smol Machines
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

  1. Session ExecPOST/v1/machines/{id}/sessions/{session_id}/execFree
  2. Download FileGET/v1/machines/{id}/filesFree
  3. Delete MachineDELETE/v1/machines/{id}Free
  4. Create SessionPOST/v1/machines/{id}/sessionsFree
  5. Stop MachinePOST/v1/machines/{id}/stopFree
  6. Run CodePOST/v1/machines/{id}/codeFree
  7. Get MachineGET/v1/machines/{id}Free
  8. Delete SessionDELETE/v1/machines/{id}/sessions/{session_id}Free
  9. Machine EventsGET/v1/machines/{id}/eventsFree
  10. Create MachinePOST/v1/machinesPriced per call
  11. Upload FilePOST/v1/machines/{id}/filesFree
  12. Start MachinePOST/v1/machines/{id}/startFree
All 15 Smol Machines endpoints