Skip to content
Changelog

Report a bug

E2b integration: operations for AI agents

E2b connects to Type.com as an integration. This page lists the 82 operations documented for Claude and Codex in Type.com: 40 read, 25 write, 17 destructive.

About E2b

E2B Platform and Sandbox APIs reference operations, subject to Type setup and account permissions.

Categories: Developer Tools & IT

How to connect E2b to Type.com

Connect
Configure provider-specific API target and authentication setup.
Access
Organization connection: one shared account for the workspace.

To add the connection, follow the steps in Space connections.

Documented operations

82 operations. Your connection's permissions determine which operations are available. API references describe the vendor surface; they do not expand your connection's credentials or access.

82 operations listed.

Sandboxes

  • Read

    List sandboxes (deprecated)

    List all running sandboxes. Use GET /v2/sandboxes instead.

    GET /sandboxes

  • Read

    List sandboxes (v2)

    List all sandboxes

    GET /v2/sandboxes

  • Read

    List sandbox metrics

    List metrics for given sandboxes

    GET /sandboxes/metrics

  • Read

    Get sandbox logs (deprecated)

    Get sandbox logs. Use /v2/sandboxes/{sandboxID}/logs instead.

    GET /sandboxes/{sandboxID}/logs

  • Read

    Get sandbox logs (v2)

    Get sandbox logs

    GET /v2/sandboxes/{sandboxID}/logs

  • Read

    Get sandbox

    Get a sandbox by id

    GET /sandboxes/{sandboxID}

  • Read

    Get sandbox metrics

    Get sandbox metrics

    GET /sandboxes/{sandboxID}/metrics

  • Read

    List snapshots

    List all snapshots for the team

    GET /snapshots

  • Write

    Create sandbox (deprecated)

    Create a sandbox from the template. All system communication with the sandbox is secured. Use POST /v2/sandboxes instead.

    POST /sandboxes

  • Write

    Create sandbox (v2)

    Create a sandbox from the template. All system communication with the sandbox is secured.

    POST /v2/sandboxes

  • Write

    Pause sandbox

    Pause the sandbox

    POST /sandboxes/{sandboxID}/pause

  • Write

    Resume sandbox (deprecated)

    Resume the sandbox

    POST /sandboxes/{sandboxID}/resume

  • Write

    Fork sandbox

    Fork the sandbox: checkpoint the running sandbox in place (it is briefly paused, snapshotted with its full memory state, and resumed on its node, keeping its ID and expiration untouched) and create count new sandboxes from that snapshot. Returns one result per requested fork, each carrying either the created sandbox or the error that prevented it from starting. A non-201 status means the request failed before any fork was attempted.

    POST /sandboxes/{sandboxID}/fork

  • Write

    Connect to sandbox (deprecated)

    Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use POST /v2/sandboxes/{sandboxID}/connect instead.

    POST /sandboxes/{sandboxID}/connect

  • Write

    Connect sandbox (v2)

    Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The request body is optional; an omitted timeout defaults to 300 seconds.

    POST /v2/sandboxes/{sandboxID}/connect

  • Write

    Refresh sandbox

    Refresh the sandbox extending its time to live

    POST /sandboxes/{sandboxID}/refreshes

  • Write

    Create snapshot

    Create a persistent snapshot from the sandbox's current state. Snapshots can be used to create new sandboxes and persist beyond the original sandbox's lifetime.

    POST /sandboxes/{sandboxID}/snapshots

  • Destructive

    Delete sandbox

    Kill a sandbox

    DELETE /sandboxes/{sandboxID}

  • Destructive

    Set sandbox timeout

    Set the timeout for the sandbox. The sandbox will expire x seconds from the time of the request. Calling this method multiple times overwrites the TTL, each time using the current timestamp as the starting point to measure the timeout duration.

    POST /sandboxes/{sandboxID}/timeout

  • Destructive

    Update sandbox network

    Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting field clears it.

    PUT /sandboxes/{sandboxID}/network

Templates

  • Read

    List templates (v2)

    List all templates

    GET /v2/templates

  • Read

    Get build upload link

    Get an upload link for a tar file containing build layer files

    GET /templates/{templateID}/files/{hash}

  • Read

    List templates (deprecated)

    List all templates

    GET /templates

  • Read

    List default templates

    Lists the platform's default templates, ordered by template ID. Deleted templates are left out. Templates that are not public are listed only to their own team and to admin callers. The build, resources and envd version are those of the newest ready build tagged `default`, the one a sandbox started from the template runs, and are zero or empty when there is none; `buildStatus` describes the newest build tagged `default` in any state. Usage fields (`spawnCount`, `buildCount`, `lastSpawnedAt`, `createdBy`) are reported only for the caller's own templates and to admin callers.

    GET /default-templates

  • Read

    Get template

    List all builds for a template

    GET /templates/{templateID}

  • Read

    Get build status

    Get template build info

    GET /templates/{templateID}/builds/{buildID}/status

  • Read

    Get build logs

    Get template build logs

    GET /templates/{templateID}/builds/{buildID}/logs

  • Read

    Get template by alias

    Check if template with given alias exists

    GET /templates/aliases/{alias}

  • Write

    Create template (v3)

    Create a new template

    POST /v3/templates

  • Write

    Update template (deprecated)

    Update template

    PATCH /templates/{templateID}

  • Write

    Start build (v2)

    Start the build

    POST /v2/templates/{templateID}/builds/{buildID}

  • Write

    Update template (v2)

    Update template

    PATCH /v2/templates/{templateID}

  • Destructive

    Delete template

    Delete a template

    DELETE /templates/{templateID}

Tags

  • Read

    List template tags

    List all tags for a template

    GET /templates/{templateID}/tags

  • Read

    List template tag groups

    Lists the template's tags that have at least one ready build, each with its most recent ready assignments, paginated over tags with a keyset cursor. Returns 404 when the template does not exist or belongs to another team.

    GET /templates/{templateID}/tags/groups

  • Read

    Count template tags

    Returns the number of distinct tags of the template that have at least one ready build. Returns 404 when the template does not exist or belongs to another team.

    GET /templates/{templateID}/tags/count

  • Read

    Check template tag

    Checks whether a tag of the template has at least one ready build. Returns 404 when the template does not exist or belongs to another team.

    GET /templates/{templateID}/tags/exists

  • Read

    List template tag assignments

    Lists the ready assignments of one tag of the template, newest first, with keyset cursor pagination. Returns 404 when the template does not exist or belongs to another team.

    GET /templates/{templateID}/tags/{tag}/assignments

  • Write

    Assign tags

    Assign tag(s) to a template build

    POST /templates/tags

  • Destructive

    Delete tags

    Delete multiple tags from templates

    DELETE /templates/tags

Volumes

  • Read

    List team volumes

    List all team volumes

    GET /volumes

  • Read

    Team volume

    Get team volume info

    GET /volumes/{volumeID}

  • Write

    Create team volume

    Create a new team volume

    POST /volumes

  • Destructive

    Delete team volume

    Delete a team volume

    DELETE /volumes/{volumeID}

Envd

  • Read

    Check the health of the service

    GET /health

    GET /health

  • Read

    Service stats

    GET /metrics

    GET /metrics

  • Read

    Environment variables

    GET /envs

    GET /envs

Filesystem

  • Read

    Download a file

    GET /files

    GET /files

  • Read

    ListDir

    POST /filesystem.Filesystem/ListDir

    POST /filesystem.Filesystem/ListDir

  • Read

    Stat

    POST /filesystem.Filesystem/Stat

    POST /filesystem.Filesystem/Stat

  • Write

    Upload a file and ensure the parent directories exist. If the file exists, it will be overwritten.

    Any request header of the form `X-Metadata-<key>: <value>` is persisted as a user-defined extended attribute on the uploaded file. The `X-Metadata-` prefix is stripped and the remaining header name is lowercased to form the metadata key; the resulting map is returned on `EntryInfo` lookups (e.g. `Stat`, `ListDir`). Each upload replaces the file's metadata with the keys provided in that request: keys previously stored but absent from the new request are removed, and an upload that sends no `X-Metadata-*` header clears all existing metadata. Both keys and values must be printable US-ASCII (bytes `0x20`-`0x7E`) and are rejected with HTTP 400 otherwise. Each key is capped at 246 bytes (the Linux VFS xattr-name limit minus the namespace prefix), and the combined size of all metadata on a file (keys plus values, with the namespace prefix counted per key) is capped at 4096 bytes to stay within the filesystem's per-inode xattr budget. Multiple files in a single multipart upload receive the same metadata. If the same `X-Metadata-<key>` header is sent more than once, only the first value is used.

    POST /files

  • Write

    CreateWatcher

    Non-streaming versions of WatchDir

    POST /filesystem.Filesystem/CreateWatcher

  • Write

    GetWatcherEvents

    POST /filesystem.Filesystem/GetWatcherEvents

    POST /filesystem.Filesystem/GetWatcherEvents

  • Write

    MakeDir

    POST /filesystem.Filesystem/MakeDir

    POST /filesystem.Filesystem/MakeDir

  • Write

    RemoveWatcher

    POST /filesystem.Filesystem/RemoveWatcher

    POST /filesystem.Filesystem/RemoveWatcher

  • Write

    WatchDir

    Server-streaming RPC. Use the Connect protocol with streaming support.

    POST /filesystem.Filesystem/WatchDir

  • Destructive

    Move

    POST /filesystem.Filesystem/Move

    POST /filesystem.Filesystem/Move

  • Destructive

    Remove

    POST /filesystem.Filesystem/Remove

    POST /filesystem.Filesystem/Remove

Process

  • Read

    List

    POST /process.Process/List

    POST /process.Process/List

  • Write

    Update

    POST /process.Process/Update

    POST /process.Process/Update

  • Destructive

    CloseStdin

    Close stdin to signal EOF to the process. Only works for non-PTY processes. For PTY, send Ctrl+D (0x04) instead.

    POST /process.Process/CloseStdin

  • Destructive

    Connect

    Server-streaming RPC. Use the Connect protocol with streaming support.

    POST /process.Process/Connect

  • Destructive

    SendInput

    POST /process.Process/SendInput

    POST /process.Process/SendInput

  • Destructive

    SendSignal

    POST /process.Process/SendSignal

    POST /process.Process/SendSignal

  • Destructive

    Start

    Server-streaming RPC. Use the Connect protocol with streaming support.

    POST /process.Process/Start

  • Destructive

    StreamInput

    Client-streaming RPC. Client input stream ensures ordering of messages. Use the Connect protocol with streaming support.

    POST /process.Process/StreamInput

Teams

  • Read

    Get team metrics

    Get metrics for the team

    GET /teams/{teamID}/metrics

  • Read

    Get team metrics max

    Get the maximum metrics for the team in the given interval

    GET /teams/{teamID}/metrics/max

Secrets

  • Read

    List secrets

    List the project's secrets. No response carries a secret value.

    GET /secrets

  • Read

    Get secret

    Get one secret's metadata, selected by identifier or name.

    GET /secrets/{secretID}

  • Write

    Create secret

    Create a secret by storing a runtime marker as its first version. The response carries metadata only.

    POST /secrets

  • Destructive

    Update secret

    Replace the secret's stored marker by appending a new version. The response carries metadata only.

    POST /secrets/{secretID}

  • Destructive

    Delete secret

    Revoke the secret and schedule its versions for cleanup.

    DELETE /secrets/{secretID}

Events

  • Read

    List sandbox events

    Get sandbox events

    GET /events/sandboxes/{sandboxID}

  • Read

    List events

    Get all sandbox events for the team associated with the API key

    GET /events/sandboxes

Webhooks

  • Read

    List webhooks

    List registered webhooks.

    GET /events/webhooks

  • Read

    Get webhook

    Get a registered webhook.

    GET /events/webhooks/{webhookID}

  • Read

    List webhook deliveries

    List webhook delivery attempts.

    GET /events/webhooks/{webhookID}/deliveries

  • Read

    Get webhook statistics

    Get webhook delivery aggregate stats.

    GET /events/webhooks/{webhookID}/stats

  • Write

    Create webhook

    Register events webhook.

    POST /events/webhooks

  • Write

    Update webhook

    Update a registered webhook configuration.

    PATCH /events/webhooks/{webhookID}

  • Destructive

    Delete webhook

    Delete a registered webhook.

    DELETE /events/webhooks/{webhookID}

See How connections work for access and permissions, or browse all integrations.

Reference date: October 29, 2026. E2b API docs.