Skip to content

Commit 3603c79

Browse files
committed
Tunnel: New default for list API endpoints
1 parent 058ba67 commit 3603c79

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Cloudflare Tunnel list endpoints will no longer return deleted resources by default starting December 1, 2025
3+
description: The is_deleted parameter for specific Cloudflare Tunnel list API endpoints will default to false. To retrieve deleted tunnels, you must explicitly set this parameter to true.
4+
hidden: false
5+
date: 2025-09-01
6+
---
7+
8+
Starting **December 1, 2025**, [Cloudflare Tunnel API](/api/resources/zero_trust/subresources/tunnels/) list endpoints will no longer return deleted tunnels by default. This change makes the API behavior more intuitive by only returning active resources unless otherwise specified. No action is required if you already explicitly set `is_deleted=false` or if you only need to list active tunnels.
9+
10+
This change affects the following API endpoints:
11+
* [`GET /accounts/{account_id}/tunnels`](/api/resources/zero_trust/subresources/tunnels/methods/list/)
12+
* [`GET /accounts/{account_id}/cfd_tunnel`](/api/resources/zero_trust/subresources/tunnels/subresources/cloudflared/methods/list/)
13+
* [`GET /accounts/{account_id}/warp_connector`](/api/resources/zero_trust/subresources/tunnels/subresources/warp_connector/methods/list/)
14+
15+
## What is changing?
16+
17+
The default behavior of the `is_deleted` query parameter will be updated.
18+
19+
| Scenario | Previous Behavior (before December 1, 2025) | New Behavior (from December 1, 2025) |
20+
| :--- | :--- | :--- |
21+
| `is_deleted` parameter is omitted | Returns **active & deleted** tunnels | Returns **only active** tunnels |
22+
23+
24+
## Action required
25+
26+
If you need to retrieve deleted tunnels, please update your API calls to explicitly include the `is_deleted` parameter before **December 1, 2025**.
27+
28+
```bash
29+
# To get ONLY deleted tunnels
30+
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/tunnels?is_deleted=true" \
31+
-H "Authorization: Bearer $API_TOKEN"
32+
```
33+
34+
No action is required if you only need to list active tunnels.
35+
36+
## Why we’re making this change
37+
This update is based on user feedback and aims to:
38+
* **Create a more intuitive default:** Aligning with common API design principles where list operations return only active resources by default.
39+
* **Reduce unexpected results:** Prevents users from accidentally operating on deleted tunnels that were returned unexpectedly.
40+
* **Improve performance:** For most users, the default query result will now be smaller and more relevant.
41+
42+
To learn more, please visit the [Cloudflare Tunnel API documentation](/api/resources/zero_trust/subresources/tunnels/).

0 commit comments

Comments
 (0)