Claude Platform Docs

Tunnels

Create Tunnel
$ ant beta:tunnels create
POST/v1/tunnels
Get Tunnel
$ ant beta:tunnels retrieve
GET/v1/tunnels/{tunnel_id}
List Tunnels
$ ant beta:tunnels list
GET/v1/tunnels
Archive Tunnel
$ ant beta:tunnels archive
POST/v1/tunnels/{tunnel_id}/archive
Reveal Tunnel Token
$ ant beta:tunnels reveal-token
POST/v1/tunnels/{tunnel_id}/reveal_token
Rotate Tunnel Token
$ ant beta:tunnels rotate-token
POST/v1/tunnels/{tunnel_id}/rotate_token
Models
beta_tunnel: object{ id, archived_at, created_at, 3 more }

An MCP tunnel.

id: string

Unique identifier for the tunnel, prefixed with tnl_.

archived_at: string

A timestamp in RFC 3339 format

formatdate-time
created_at: string

A timestamp in RFC 3339 format

formatdate-time
display_name: string

Human-readable name for the tunnel (1-255 characters). Null if unset.

domain: string

Anthropic-assigned hostname for the tunnel. MCP server URLs whose host is a subdomain of this value are routed through the tunnel. Globally unique and never reused, even after the tunnel is archived.

type: "tunnel"
beta_tunnel_token: object{ id, tunnel_token, type }

A tunnel's connector token.

id: string

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

tunnel_token: string

The connector token used to run the tunnel. Treat as a credential.

type: "tunnel_token"
Create Tunnel Certificate
$ ant beta:tunnels:certificates create
POST/v1/tunnels/{tunnel_id}/certificates
Get Tunnel Certificate
$ ant beta:tunnels:certificates retrieve
GET/v1/tunnels/{tunnel_id}/certificates/{certificate_id}
List Tunnel Certificates
$ ant beta:tunnels:certificates list
GET/v1/tunnels/{tunnel_id}/certificates
Archive Tunnel Certificate
$ ant beta:tunnels:certificates archive
POST/v1/tunnels/{tunnel_id}/certificates/{certificate_id}/archive