Skip to main content
POST
/
computers
/
{id}
/
exec
Execute Python Code
curl --request POST \
  --url https://www.orgo.ai/api/computers/{id}/exec \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "<string>",
  "timeout": 10
}'
{
  "output": "<string>",
  "success": true,
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Format: sk_live_...

Path Parameters

id
string
required

Body

application/json
code
string
required
timeout
integer
default:10

Response

200 - application/json

Code executed

output
string
success
boolean
error
string