Executes code in the sandbox
/v1/agents/sandboxes/{sandbox_id}/code/run
Headers:
Content-Type: application/jsonAuthorization: Bearer YOUR_API_KEY| Parameter | Type | Required | Description |
|---|---|---|---|
sandbox_id | string | Yes | ID of the sandbox |
| Field | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Code to execute |
language | string | Yes | Language: python, javascript, typescript, bash |
timeout | integer | No | Execution timeout in seconds (default: 30) |
API key authentication. Get your API key from the Gravix Layer Dashboard.
Sandbox ID