Repository Public
1---2title: Archive Tunnel Certificate3url: https://platform.claude.com/docs/en/api/beta/tunnels/certificates/archive4---56# Archive Tunnel Certificate78**POST** `/v1/tunnels/{tunnel_id}/certificates/{certificate_id}/archive`910The 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.1112Archives a tunnel certificate, removing it from the set Anthropic trusts for the tunnel. The certificate record is retained. Archiving the last non-archived certificate is permitted; the tunnel rejects MCP traffic until a new certificate is added.1314## Path parameters1516- `tunnel_id: string`1718- `certificate_id: string`1920## Headers2122- `"anthropic-beta": optional array of AnthropicBeta`2324 Optional header to specify the beta version(s) you want to use.2526 - `string`2728 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 43 more`2930 - `"message-batches-2024-09-24"`3132 - `"prompt-caching-2024-07-31"`3334 - `"computer-use-2024-10-22"`3536 - `"computer-use-2025-01-24"`3738 - `"pdfs-2024-09-25"`3940 - `"token-counting-2024-11-01"`4142 - `"token-efficient-tools-2025-02-19"`4344 - `"output-128k-2025-02-19"`4546 - `"files-api-2025-04-14"`4748 - `"mcp-client-2025-04-04"`4950 - `"mcp-client-2025-11-20"`5152 - `"dev-full-thinking-2025-05-14"`5354 - `"interleaved-thinking-2025-05-14"`5556 - `"code-execution-2025-05-22"`5758 - `"extended-cache-ttl-2025-04-11"`5960 - `"context-1m-2025-08-07"`6162 - `"context-management-2025-06-27"`6364 - `"model-context-window-exceeded-2025-08-26"`6566 - `"skills-2025-10-02"`6768 - `"fast-mode-2026-02-01"`6970 - `"output-300k-2026-03-24"`7172 - `"user-profiles-2026-03-24"`7374 - `"user-profiles-2026-08-18"`7576 - `"user-profiles-2026-09-04"`7778 - `"advisor-tool-2026-03-01"`7980 - `"managed-agents-2026-04-01"`8182 - `"cache-diagnosis-2026-04-07"`8384 - `"dreaming-2026-04-21"`8586 - `"thinking-token-count-2026-05-13"`8788 - `"server-side-fallback-2026-06-01"`8990 - `"server-side-fallback-2026-07-01"`9192 - `"fallback-credit-2026-06-01"`9394 - `"fallback-credit-2026-07-01"`9596 - `"agent-memory-2026-07-22"`9798 - `"mid-conversation-tool-changes-2026-07-01"`99100 - `"compact-2026-01-12"`101102 - `"computer-use-2025-11-24"`103104 - `"mcp-tunnels-2026-06-22"`105106 - `"structured-outputs-2025-11-13"`107108 - `"task-budgets-2026-03-13"`109110 - `"thinking-display-updates-2026-08-18"`111112 - `"ce-user-management-2026-07-13"`113114 - `"mid-conversation-output-config-2026-07-01"`115116 - `"thinking-binding-controls-2026-08-01"`117118 - `"mid-conversation-system-clear-at-2026-08-21"`119120 - `"compact-2026-09-04"`121122- `"anthropic-workspace-id": optional string`123124## Returns125126- `BetaTunnelCertificate object`127128 A CA certificate attached to a tunnel.129130 - `type: "tunnel_certificate"`131132 - `id: string`133134 Unique identifier for the certificate, prefixed with `tcrt_`.135136 - `archived_at: string or null`137138 A timestamp in RFC 3339 format139140 format: date-time141142 - `created_at: string`143144 A timestamp in RFC 3339 format145146 format: date-time147148 - `expires_at: string or null`149150 A timestamp in RFC 3339 format151152 format: date-time153154 - `fingerprint: string`155156 Lowercase hex SHA-256 fingerprint of the certificate's DER encoding.157158 - `tunnel_id: string`159160 ID of the tunnel the certificate is registered against.161162## Example163164```bash165curl https://api.anthropic.com/v1/tunnels/$TUNNEL_ID/certificates/$CERTIFICATE_ID/archive \166 -X POST \167 -H 'anthropic-version: 2023-06-01' \168 -H 'anthropic-beta: mcp-tunnels-2026-06-22' \169 -H "X-Api-Key: $ANTHROPIC_API_KEY"170```171172### Response (200)173174```json175{176 "id": "id",177 "archived_at": "2019-12-27T18:11:19.117Z",178 "created_at": "2019-12-27T18:11:19.117Z",179 "expires_at": "2019-12-27T18:11:19.117Z",180 "fingerprint": "fingerprint",181 "tunnel_id": "tunnel_id",182 "type": "tunnel_certificate"183}184```185