E2B

E2B Templates API

The templates API from E2B — 11 operation(s) for templates.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v3/templates Create a template (v3) · Create template (v3) #
Ask an LLM
“How do I create a new template with the v3 endpoint?”
“Can I set the CPU, memory and minimum free disk for a template?”
Tell an agent
Create a template named {name}.
Create template {name} with {cpuCount} CPU cores and {memoryMB} MiB memory.
GET /v2/templates List templates (v2) · List templates (v2) #
Ask an LLM
“Which templates exist on my team using the v2 list?”
“Can I page through all templates with a cursor?”
Tell an agent
List all templates on team {teamID} using the v2 endpoint.
Show {limit} templates from cursor {nextToken}.
GET /templates/{templateID}/files/{hash} Get a build upload link for a template · Get build upload link #
Ask an LLM
“Where do I upload the build layer files for a template?”
“Can I get an upload link for a template's tar file by its hash?”
Tell an agent
Get the build upload link for template {templateID} with hash {hash}.
Upload the build layer tar for template {templateID} using hash {hash}.
GET /templates List templates (legacy) · List templates #
Ask an LLM
“What templates exist on my team with the legacy list?”
“Can I list every template in one team?”
Tell an agent
List all templates on team {teamID}.
Show every template in my team with the legacy endpoint.
GET /templates/{templateID} List builds for a template · Get template #
Ask an LLM
“What builds exist for a template?”
“Can I see the next page of a template's builds?”
Tell an agent
List builds for template {templateID}.
Show {limit} builds of template {templateID} from cursor {nextToken}.
DELETE /templates/{templateID} Delete a template · Delete template #
Ask an LLM
“How do I delete a template?”
“Can I remove a template I no longer use?”
Tell an agent destructive · confirm first
Delete template {templateID}.
Remove the template {templateID} from my team.
PATCH /templates/{templateID} Update a template (legacy) · Update template #
Ask an LLM
“Can I make a template public with the legacy update?”
“What does the legacy template update change?”
Tell an agent
Set the legacy template {templateID} public to {public}.
Update the legacy template {templateID} with public set to {public}.
POST /v2/templates/{templateID}/builds/{buildID} Start a template build (v2) · Start build (v2) #
Ask an LLM
“How do I start a build of a template with the v2 endpoint?”
“Can I force a template build to run even if the cache is fresh?”
Tell an agent
Start v2 build {buildID} for template {templateID}.
Start v2 build {buildID} of template {templateID} from image {fromImage} with steps {steps}.
PATCH /v2/templates/{templateID} Update a template (v2) · Update template (v2) #
Ask an LLM
“Can I make a template public with the v2 update?”
“What does the v2 template update change?”
Tell an agent
Set the v2 template {templateID} public to {public}.
Update the v2 template {templateID} with public set to {public}.
GET /templates/{templateID}/builds/{buildID}/status Get a template build's status · Get build status #
Ask an LLM
“Is my template build finished yet?”
“Can I see the status of a template build with its logs offset?”
Tell an agent
Get the status of build {buildID} for template {templateID}.
Show build {buildID} status for template {templateID} with logs offset {logsOffset}.
GET /templates/{templateID}/builds/{buildID}/logs Get a template build's logs · Get build logs #
Ask an LLM
“What did my template build output while it ran?”
“Can I filter a template build's logs by source?”
Tell an agent
Get the logs for build {buildID} of template {templateID}.
Show {limit} logs from build {buildID} of template {templateID} from cursor {cursor}.
GET /templates/aliases/{alias} Look up a template by alias · Get template by alias #
Ask an LLM
“Does a template exist with a given alias?”
“Can I check a template alias without knowing its ID?”
Tell an agent
Check whether a template with alias {alias} exists.
Look up the template behind alias {alias}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/e2b-dev:e2b-dev-templates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

e2b-dev-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: E2B Templates API
  version: 0.1.0
  description: Complete E2B developer API. Platform endpoints are served on api.e2b.app. Sandbox endpoints (envd) are served on the shared sandbox host (sandbox.e2b.app); target a specific sandbox with the E2b-Sandbox-Id and E2b-Sandbox-Port headers.
servers:
- url: https://api.e2b.app
  description: E2B Platform API
security: []
tags:


# --- truncated at 32 KB (139 KB total) ---
# Full source: https://artifacts.apis.io/e2b-dev/openapi/e2b-dev-templates-api-openapi.yml