List Tunnel Certificates
beta.tunnels.certificates.list(strtunnel_id, CertificateListParams**kwargs) -> SyncPageCursor[BetaTunnelCertificate]GET/v1/tunnels/{tunnel_id}/certificates
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.
Lists the certificates registered on a tunnel. Archived certificates are excluded unless include_archived is set.
Parameters
Whether to include archived certificates in the results. Defaults to false.
Returns
List Tunnel Certificates
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get(
"ANTHROPIC_API_KEY"
), # This is the default and can be omitted
)
page = client.beta.tunnels.certificates.list(
tunnel_id="tunnel_id",
)
page = page.data[0]
print(page.id){
"data": [
{
"id": "id",
"archived_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"expires_at": "2019-12-27T18:11:19.117Z",
"fingerprint": "fingerprint",
"tunnel_id": "tunnel_id",
"type": "tunnel_certificate"
}
],
"next_page": "next_page"
}Returns Examples
{
"data": [
{
"id": "id",
"archived_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"expires_at": "2019-12-27T18:11:19.117Z",
"fingerprint": "fingerprint",
"tunnel_id": "tunnel_id",
"type": "tunnel_certificate"
}
],
"next_page": "next_page"
}