A2
A2LABSCLOUD LAB
A2Labs/REST API Reference

A2Labs Platform API

Directly invoke browser and sandbox workloads programmatically. Every endpoint clearly distinguishes between live production endpoints and planned specifications.

Bearer Token AuthenticationPass your API token in the HTTP Authorization header: Bearer <token>
RATE LIMIT: 60 REQ/MIN
Endpoints
POST/api/v1/execute
● Planned APIAuth Required

Dispatch an isolated code payload to the A2Labs execution router for evaluation.

Parameters
FIELDTYPEREQUIREMENTDESCRIPTION
languagestringrequiredTarget runtime (python, nodejs, cpp, rust, go, shell)
codestringrequiredUTF-8 code buffer to execute
timeout_secondsnumberoptionalHard timeout limit (default: 30s, max: 60s)
Example Request Body
{
  "language": "python",
  "code": "import sys\nprint(f\"Hello from A2Labs: {sys.platform}\")",
  "timeout_seconds": 15
}
Response (200 OK)
{
  "id": "exec_8f93a1c0d2e8",
  "runtime": "pyodide-3.12",
  "stdout": "Hello from A2Labs: emscripten\n",
  "stderr": "",
  "exitCode": 0,
  "latencyMs": 14.8,
  "memoryUsedBytes": 12582912
}