Claude Platform Docs

터널 토큰 교체

Deprecated
POST/v1/organizations/tunnels/{tunnel_id}/rotate_token

지원 중단. 이 Admin API 엔드포인트는 Claude API의 /v1/tunnels로 대체되었으며 마이그레이션 기간 이후 제거됩니다. 새 통합은 anthropic-beta: mcp-tunnels-2026-06-22 헤더와 workspace:manage_tunnels 범위를 가진 WIF 토큰과 함께 /v1/tunnels를 사용해야 합니다. 기존 통합은 마이그레이션 기간 동안 mcp-tunnels-2026-05-19 헤더와 org:manage_tunnels 범위로 계속 작동합니다.

새 연결에 대해 터널의 현재 토큰을 무효화하고 새 값을 반환합니다.

이미 설정된 연결은 교체로 인해 끊어지지 않으며, 교체 후 재시작된 커넥터는 새 값을 사용해야 합니다. 선택적 reason은 운영 컨텍스트를 위해 기록됩니다.

Path parameters
tunnel_id: string

ID of the Tunnel.

Headers
"anthropic-beta": array of "mcp-tunnels-2026-05-19"

Required for all Tunnel endpoints.

Body
reason: optional string or null

Optional free-text reason for the rotation, recorded for audit.

maxLength1024
Returns
id: string

Stable identifier for the current token value. Changes when the token is rotated.

tunnel_token: string

The tunnel's connection token.

type: "tunnel_token"

Object type. Always tunnel_token for Tunnel Tokens.

defaulttunnel_token
터널 토큰 교체
cURL
curl https://api.anthropic.com/v1/organizations/tunnels/$TUNNEL_ID/rotate_token \
    -X POST \
    -H 'anthropic-version: 2023-06-01' \
    -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN"
Returns Examples
Response 200
{
  "id": "ttkn_bb97000eaec162831399ca9b6684a4fdf5be49ace5683057b017aab5c87e19e0",
  "tunnel_token": "eyJhIjoiRVhBTVBMRSIsInQiOiJFWEFNUExFIiwicyI6IkVYQU1QTEUifQ==",
  "type": "tunnel_token"
}