Get Tunnel
api/beta/tunnels/retrieve
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/beta/tunnels/retrieve Changed · +13 / -16 lines
# Get Tunnel ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Get Tunnel ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: Get Tunnel -url: https://platform.claude.com/docs/en/api/beta/tunnels/retrieve ---- +# Get Tunnel -## Get Tunnel +**GET** `/v1/tunnels/{tunnel_id}` -**get** `/v1/tunnels/{tunnel_id}` - The Tunnels API is in research preview. It requires the `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a deprecation period. It supersedes the Admin API endpoints at `/v1/organizations/tunnels`, which remain available during a migration window. Fetches a tunnel by ID. -### Path Parameters +## Path parameters - `tunnel_id: string` -### Header Parameters +## Headers - `"anthropic-beta": optional array of AnthropicBeta`
- `"mid-conversation-tool-changes-2026-07-01"` -### Returns +## Returns -- `BetaTunnel object { id, archived_at, created_at, 3 more }` +- `BetaTunnel object` An MCP tunnel.
A timestamp in RFC 3339 format + format: date-time + - `created_at: string` A timestamp in RFC 3339 format + format: date-time + - `display_name: string or null` Human-readable name for the tunnel (1-255 characters). Null if unset.
- `type: "tunnel"` - - `"tunnel"` +## Example -### Example - -```http +```bash curl https://api.anthropic.com/v1/tunnels/$TUNNEL_ID \ -H 'anthropic-version: 2023-06-01' \ -H 'anthropic-beta: mcp-tunnels-2026-06-22' \
-H "X-Api-Key: $ANTHROPIC_API_KEY" ``` -#### Response +### Response (200) ```json {