Computer Actions
Execute Python
Run a Python snippet on the computer and capture its stdout.
POST
Execute Python
Executes Python code on the computer in a short-lived interpreter and returns its output.
Path parameters
Computer ID (UUID).
Body parameters
Python code to execute.
Timeout in seconds (1-300).
Response
Captured stdout from the interpreter.
true if the code ran without raising an uncaught exception.Error message, if execution failed.
Python exception class (e.g.,
SyntaxError, NameError).true if execution was killed by the timeout.Example
Successful response
Error response
Errors
| Status | Meaning |
|---|---|
400 | Missing or non-string code, or computer instance not available. |
401 | Missing or invalid API key. |
403 | You do not have access to this computer. |
404 | Computer not found. |
500 | Upstream desktop agent failure. |
Authorizations
API key authentication. Get your key at orgo.ai/workspaces
Path Parameters
Computer ID
Body
application/json
Execute Python