E2B

E2B Secrets API

The Secrets API from E2B — 2 operation(s) for secrets.

GitHub OpenAPI

Operations 5

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

GET /secrets List project secrets · List secrets #
Ask an LLM
“Which secrets are stored in my project?”
“Can I page through my project's secrets?”
Tell an agent
List my project's secrets.
Show {limit} secrets starting from cursor {nextToken}.
POST /secrets Create a secret · Create secret #
Ask an LLM
“How do I store a runtime marker as a secret?”
“Can I add metadata to a new secret?”
Tell an agent
Create secret {name} with value {value}.
Create secret {name} with value {value} and metadata {metadata}.
GET /secrets/{secretID} Get a secret's metadata · Get secret #
Ask an LLM
“What metadata is stored on a secret?”
“Can I look up a secret by name or ID?”
Tell an agent
Get secret {secretID}.
Show the metadata of secret {secretID}.
POST /secrets/{secretID} Rotate a secret's value · Update secret #
Ask an LLM
“How do I rotate a secret to a new runtime marker?”
“Can I add metadata when rotating a secret?”
Tell an agent
Rotate secret {secretID} to value {value}.
Rotate secret {secretID} to {value} with metadata {metadata}.
DELETE /secrets/{secretID} Delete a secret · Delete secret #
Ask an LLM
“How do I revoke a secret and clean up its versions?”
“Can I delete a secret by its ID?”
Tell an agent destructive · confirm first
Delete secret {secretID}.
Revoke secret {secretID} and schedule its versions for cleanup.

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-secrets-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-secrets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: E2B Secrets 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 (82 KB total) ---
# Full source: https://artifacts.apis.io/e2b-dev/openapi/e2b-dev-secrets-api-openapi.yml