Anthropic Tunnels API

The Tunnels API from Anthropic — 7 operation(s) for tunnels.

Operations 10

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 /v1/tunnels/{tunnel_id}/archive?beta=true Archive a tunnel permanently · Archive Tunnel #
Ask an LLM
“How do I permanently decommission an MCP tunnel?”
“Does archiving a tunnel also archive its certificates?”
Tell an agent destructive · confirm first
Archive tunnel {tunnel_id}.
Decommission MCP tunnel {tunnel_id} for good.
POST /v1/tunnels/{tunnel_id}/certificates/{certificate_id}/archive?beta=true Stop trusting a tunnel CA certificate · Archive Tunnel Certificate #
Ask an LLM
“How do I remove one CA certificate from the set Anthropic trusts for my tunnel?”
“Is the certificate record kept after I archive it?”
Tell an agent destructive · confirm first
Archive certificate {certificate_id} on tunnel {tunnel_id}.
Stop trusting CA cert {certificate_id} for tunnel {tunnel_id}.
GET /v1/tunnels/{tunnel_id}/certificates/{certificate_id}?beta=true Retrieve a tunnel certificate · Get Tunnel Certificate #
Ask an LLM
“Can I look up one CA certificate registered on a tunnel?”
“Is a given tunnel certificate still active?”
Tell an agent
Show certificate {certificate_id} on tunnel {tunnel_id}.
Fetch CA cert {certificate_id} of tunnel {tunnel_id}.
POST /v1/tunnels/{tunnel_id}/certificates?beta=true Register a CA certificate on a tunnel · Create Tunnel Certificate #
Ask an LLM
“How do I let Anthropic verify my MCP gateway's server certificate?”
“What's the size limit for a CA certificate PEM on a tunnel?”
Tell an agent
Register CA certificate {ca_certificate_pem} on tunnel {tunnel_id}.
Trust this PEM CA for tunnel {tunnel_id}: {ca_certificate_pem}.
GET /v1/tunnels/{tunnel_id}/certificates?beta=true List a tunnel's certificates · List Tunnel Certificates #
Ask an LLM
“Which CA certificates are registered on my tunnel?”
“Can I see archived certificates on a tunnel too?”
Tell an agent
List the certificates on tunnel {tunnel_id}.
List tunnel {tunnel_id}'s certs with archived included: {include_archived}.
POST /v1/tunnels/{tunnel_id}/reveal_token?beta=true Reveal a tunnel's connector token · Reveal Tunnel Token #
Ask an LLM
“Where do I get the connector token my tunnel client needs?”
“Does Anthropic store the tunnel connector token?”
Tell an agent
Reveal the connector token for tunnel {tunnel_id}.
Show tunnel {tunnel_id}'s token so I can configure the connector.
POST /v1/tunnels/{tunnel_id}/rotate_token?beta=true Rotate a tunnel's connector token · Rotate Tunnel Token #
Ask an LLM
“What should I do if my tunnel's connector token leaked?”
“Can I record why I rotated a tunnel token for audit?”
Tell an agent destructive · confirm first
Rotate the connector token on tunnel {tunnel_id}.
Rotate tunnel {tunnel_id}'s token with reason {reason}.
GET /v1/tunnels/{tunnel_id}?beta=true Retrieve a tunnel · Get Tunnel #
Ask an LLM
“What hostname was allocated to one of my tunnels?”
“Can I check whether a tunnel has been archived?”
Tell an agent
Show tunnel {tunnel_id}.
Get the hostname and status of tunnel {tunnel_id}.
POST /v1/tunnels?beta=true Create an MCP tunnel · Create Tunnel #
Ask an LLM
“How do I expose a private MCP server to Claude through a tunnel?”
“Is creating a tunnel idempotent?”
Tell an agent
Create a new tunnel.
Create a tunnel named {display_name}.
GET /v1/tunnels?beta=true List tunnels · List Tunnels #
Ask an LLM
“Which MCP tunnels do I have?”
“Are archived tunnels left out of the list by default?”
Tell an agent
List my tunnels.
List tunnels including archived ones: {include_archived}.

Documentation

Specifications

Schemas & Data

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/anthropic:anthropic-tunnels-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

anthropic-tunnels-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Anthropic Tunnels API
servers:
- url: https://api.anthropic.com
tags:


# --- truncated at 32 KB (64 KB total) ---
# Full source: https://artifacts.apis.io/anthropic/openapi/anthropic-tunnels-api-openapi.yml