List templates
Lists the templates sandboxes can start from (`base`, `code-interpreter`, `agent`, and on nodes that build it `browser`: Chrome already running in the snapshot, a VM-isolated browser with DevTools on port 9222) with their contents and defaults.
GET
/v1/sandboxes/templates
Lists the templates sandboxes can start from (`base`, `code-interpreter`, `agent`, and on nodes that build it
`browser`: Chrome already running in the snapshot, a VM-isolated browser with DevTools on port 9222) with their
contents and defaults.
Authentication
Bearer Token (b3os_sk_ API key or b3os_pat_ token) API Key (cookie: __Host-b3os_session)
Responses
200
The templates.
application/jsonobject
string
REQUIRED
Enum:
listdata
object[]
REQUIRED
Array of:
id
string
REQUIRED
object
string
REQUIRED
Enum:
templatename
string
REQUIRED
description
string
REQUIRED
os
string
REQUIRED
runtimes
string[]
REQUIRED
Array of:
string
capabilities
string[]
REQUIRED
`cdp`: Chrome runs in the template's snapshot with DevTools on `127.0.0.1:9222` inside the sandbox; declare
port 9222 to reach it through a port preview.
Array of:
string
defaults
object
REQUIRED
vcpu
integer
REQUIRED
memory_mib
integer
REQUIRED
disk_gib
integer
REQUIRED
created_at
string (date-time)
REQUIRED
next_cursor
string | null
REQUIRED
401
Missing, malformed, expired or revoked credentials (`unauthorized`).
403
Authenticated but not allowed (`forbidden`, `egress_denied`).
429
A rate, concurrency or quota limit applies (`rate_limited`, `concurrency_limited`, `quota_exceeded`).
500
Something failed inside B3OS (`internal`). Retry with backoff.
503
The node or the product is not available right now (`node_unavailable`, `product_unavailable`, `capacity_unavailable`).
curl -X GET 'https://beta-api.b3os.org/v1/sandboxes/templates' \ -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://beta-api.b3os.org/v1/sandboxes/templates', { method: 'GET', headers: { "Authorization": "Bearer YOUR_API_TOKEN" }});const data = await response.json();console.log(data);
import requestsheaders = { 'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('https://beta-api.b3os.org/v1/sandboxes/templates', headers=headers)print(response.json())
200
Response
{ "object": "list", "data": [ { "id": "tpl_01m5t59b2ps0djyzdf082s18bz", "object": "template", "name": "base", "description": "Ubuntu 24.04 with Python 3.12, Node 24 and git.", "os": "Ubuntu 24.04", "runtimes": [ "python3.12", "node24" ], "capabilities": [ "exec", "files", "pty" ], "defaults": { "vcpu": 1, "memory_mib": 512, "disk_gib": 4 }, "created_at": "2026-10-20T00:00:00.000Z" }, { "id": "tpl_01m5t5ra5xejpz8c0hbn134cet", "object": "template", "name": "code-interpreter", "description": "base plus a Jupyter kernel for run_code (Python and JavaScript).", "os": "Ubuntu 24.04", "runtimes": [ "python3.12", "node24" ], "capabilities": [ "exec", "files", "pty", "run_code" ], "defaults": { "vcpu": 1, "memory_mib": 1024, "disk_gib": 4 }, "created_at": "2026-10-20T00:00:00.000Z" } ], "next_cursor": null}
API Playground
Try this endpoint
GET
/v1/sandboxes/templates