E2B · Capability

E2B Sandbox API — Sandboxes

E2B Sandbox API — Sandboxes. Lead operation: E2B Create A Sandbox. Self-contained Naftiko capability covering the sandbox CRUD business surface.

E2B Sandbox API — Sandboxes is a Naftiko capability published by E2B, one of 13 capabilities the APIs.io network indexes for this provider. It bundles 4 operations across the GET, POST, and DELETE methods rooted at /v1/sandboxes.

The capability includes 2 read-only operations and 2 state-changing operations. Lead operation: E2B List Running Sandboxes. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include E2B and Sandboxes.

Run with Naftiko E2BSandboxes

What You Can Do

GET
Listsandboxes — E2B List Running Sandboxes
/v1/sandboxes
POST
Createsandbox — E2B Create A Sandbox
/v1/sandboxes
GET
Getsandbox — E2B Get A Sandbox
/v1/sandboxes/{sandboxID}
DELETE
Killsandbox — E2B Kill A Sandbox
/v1/sandboxes/{sandboxID}

MCP Tools

e2b-list-sandboxes

E2B List Running Sandboxes

read-only idempotent
e2b-create-sandbox

E2B Create A Sandbox

e2b-get-sandbox

E2B Get A Sandbox

read-only idempotent
e2b-kill-sandbox

E2B Kill A Sandbox

idempotent

Capability Spec

sandboxes-sandboxes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: E2B Sandbox API — Sandboxes
  description: 'E2B Sandbox API — Sandboxes. Lead operation: E2B Create A Sandbox. Self-contained Naftiko capability
    covering the sandbox CRUD business surface.'
  tags:
  - E2B
  - Sandboxes
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    E2B_API_KEY: E2B_API_KEY
capability:
  consumes:
  - type: http
    namespace: sandboxes-sandboxes
    baseUri: https://api.e2b.app
    description: E2B Sandbox API — sandbox lifecycle business capability. Self-contained, no shared references.
    resources:
    - name: sandboxes
      path: /sandboxes
      operations:
      - name: listsandboxes
        method: GET
        description: E2B List Running Sandboxes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: array
          value: $.
      - name: createsandbox
        method: POST
        description: E2B Create A Sandbox
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Sandbox create request (templateID, metadata, envVars, timeout, autoPause).
          required: true
    - name: sandbox
      path: /sandboxes/{sandboxID}
      operations:
      - name: getsandbox
        method: GET
        description: E2B Get A Sandbox
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sandboxID
          in: path
          type: string
          required: true
      - name: killsandbox
        method: DELETE
        description: E2B Kill A Sandbox
        outputRawFormat: json
        inputParameters:
        - name: sandboxID
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: X-API-Key
      value: '{{env.E2B_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: sandboxes-sandboxes-rest
    port: 8080
    description: REST adapter for E2B Sandbox API — Sandboxes.
    resources:
    - path: /v1/sandboxes
      name: sandboxes
      description: REST surface for sandbox collection.
      operations:
      - method: GET
        name: listsandboxes
        description: E2B List Running Sandboxes
        call: sandboxes-sandboxes.listsandboxes
        outputParameters:
        - type: array
          mapping: $.
      - method: POST
        name: createsandbox
        description: E2B Create A Sandbox
        call: sandboxes-sandboxes.createsandbox
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/sandboxes/{sandboxID}
      name: sandbox
      description: REST surface for an individual sandbox.
      operations:
      - method: GET
        name: getsandbox
        description: E2B Get A Sandbox
        call: sandboxes-sandboxes.getsandbox
        with:
          sandboxID: rest.path.sandboxID
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: killsandbox
        description: E2B Kill A Sandbox
        call: sandboxes-sandboxes.killsandbox
        with:
          sandboxID: rest.path.sandboxID
  - type: mcp
    namespace: sandboxes-sandboxes-mcp
    port: 9090
    transport: http
    description: MCP adapter for E2B Sandbox API — Sandboxes.
    tools:
    - name: e2b-list-sandboxes
      description: E2B List Running Sandboxes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sandboxes-sandboxes.listsandboxes
      outputParameters:
      - type: array
        mapping: $.
    - name: e2b-create-sandbox
      description: E2B Create A Sandbox
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: sandboxes-sandboxes.createsandbox
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: e2b-get-sandbox
      description: E2B Get A Sandbox
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sandboxes-sandboxes.getsandbox
      with:
        sandboxID: tools.sandboxID
      outputParameters:
      - type: object
        mapping: $.
    - name: e2b-kill-sandbox
      description: E2B Kill A Sandbox
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: sandboxes-sandboxes.killsandbox
      with:
        sandboxID: tools.sandboxID