Skip to main content
POST
/
api
/
v1
/
builders
/
{uuid}
/
exec
Run a command in the builder
curl --request POST \
  --url https://{subdomain}.mihu.ai/api/v1/builders/{uuid}/exec \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "command": "ls -la; python3 --version",
  "timeout": 60
}
'
{
  "success": true,
  "data": {
    "exit_code": 0,
    "output": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Path Parameters

uuid
string<uuid>
required

Body

application/json
command
string
required
Example:

"ls -la; python3 --version"

timeout
integer

Max seconds to wait. Default 60.

Required range: 1 <= x <= 600
Example:

60

Response

Command result.

success
boolean
Example:

true

data
object