Reveal Tunnel Token
api/beta/tunnels/reveal_token
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/reveal_token Changed · +9 / -16 lines
# Reveal Tunnel Token ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Reveal Tunnel Token ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: Reveal Tunnel Token -url: https://platform.claude.com/docs/en/api/beta/tunnels/reveal_token ---- +# Reveal Tunnel Token -## Reveal Tunnel Token +**POST** `/v1/tunnels/{tunnel_id}/reveal_token` -**post** `/v1/tunnels/{tunnel_id}/reveal_token` - 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. Reveals a tunnel's connector token. The value is fetched live on each call; Anthropic does not store it. Repeated calls return the same value until the token is rotated. Exposed as POST so the token does not appear in intermediary access logs. -### 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 -- `BetaTunnelToken object { id, tunnel_token, type }` +- `BetaTunnelToken object` A tunnel's connector token.
- `type: "tunnel_token"` - - `"tunnel_token"` +## Example -### Example - -```http +```bash curl https://api.anthropic.com/v1/tunnels/$TUNNEL_ID/reveal_token \ -X POST \ -H 'anthropic-version: 2023-06-01' \
-H "X-Api-Key: $ANTHROPIC_API_KEY" ``` -#### Response +### Response (200) ```json {