CodeEdit
Code execution without LLM
Code execution without LLM
Every request needs a credential — see Authentication.
| Method | Path | Summary |
|---|
POST | /sandbox/codeedit/v1/executions | Execute |
GET | /sandbox/codeedit/v1/languages | List Languages |
Accepted on every endpoint on this page.
| Name | In | Type | Required | Description |
|---|
x-correlation-id | header | string | no | End-to-end correlation id for this eval run. When set, the gateway and downstream services honor it verbatim in logs, Cloud Trace span attributes, async job payloads, and Langfuse trace.id. When omitted, the gateway generates a ULID and echoes it on the response. |
POST /sandbox/codeedit/v1/executions
| Name | In | Type | Required | Description |
|---|
X-Sandbox-Project-Id | header | string | null | no | Project to bill and rate-limit this request against. Validated against the credential: a project-scoped token may only name its own project, and gets 403 otherwise. Defaults to the token's project when omitted. |
X-Sandbox-Tenant-Id | header | string | null | no | Tenant for this request. Must match the credential's tenant when the credential carries one. |
application/json, required — ExecutionRequest
| Field | Type | Required | Description |
|---|
language | string | yes | |
files | object | no | |
stdin | string | null | no | |
limits | ResourceLimits | null | no | |
| Status | Description | Body |
|---|
200 | Successful Response | object |
413 | Submitted files exceed the total payload limit. | — |
422 | Validation Error | HTTPValidationError |
429 | The project is already running its maximum number of concurrent executions. This is backpressure, not failure: the work was never started, so retrying after the interval in Retry-After is safe and will not duplicate anything. The limit is per project, so spreading load across projects raises it; a single client should cap its own concurrency rather than rely on retries. | — |
GET /sandbox/codeedit/v1/languages
| Status | Description | Body |
|---|
200 | Successful Response | object |
The object shapes referenced above.
| Field | Type | Required | Description |
|---|
language | string | yes | |
files | object | no | |
stdin | string | null | no | |
limits | ResourceLimits | null | no | |
| Field | Type | Required | Description |
|---|
detail | ValidationError[] | no | |
| Field | Type | Required | Description |
|---|
wall_time_ms | integer | no | Default: 5000. |
memory_mb | integer | no | Default: 256. |
pids | integer | no | Default: 64. |
output_bytes | integer | no | Default: 1048576. |
filesystem_mb | integer | no | Default: 64. |
| Field | Type | Required | Description |
|---|
loc | string | integer[] | yes | |
msg | string | yes | |
type | string | yes | |
input | any | no | |
ctx | object | no | |
Machine-readable spec: OpenAPI YAML.