---
description: Cloudflare API tokens include identifiable patterns for automated leak detection in repositories and code.
title: API tokens now detectable by secret scanning tools
image: https://developers.cloudflare.com/changelog/post/2026-04-10-secret-scanning-support/og.png?v=4f6138488ff69ba2
---

[Skip to content](#main-content)

[View RSS feeds](https://developers.cloudflare.com/fundamentals/new-features/available-rss-feeds/) [ Subscribe to RSS](https://developers.cloudflare.com/changelog/rss/index.xml)

[Back to all posts](https://developers.cloudflare.com/changelog)

April 10, 2026

## API tokens now detectable by secret scanning tools

[Cloudflare Fundamentals](https://developers.cloudflare.com/fundamentals/)

Copy as Markdown| [View as Markdown](https://developers.cloudflare.com/changelog/post/2026-04-10-secret-scanning-support/index.md)| [Agent setup](https://developers.cloudflare.com/agent-setup/)

Cloudflare API tokens now include **identifiable patterns** that enable secret scanning tools to automatically detect them when leaked in code repositories, configuration files, or other public locations.

#### What changed

API tokens generated by Cloudflare now follow a standardized format that secret scanning tools can recognize. When a Cloudflare token is accidentally committed to GitHub, GitLab, or another platform with secret scanning enabled, the tool will flag it and alert you.

#### Why this matters

Leaked credentials are a common security risk. By making Cloudflare tokens detectable by scanning tools, you can:

- **Detect leaks faster** — Get notified immediately when a token is exposed.
- **Reduce risk window** — Exposed tokens are deactivated immediately, before they can be exploited.
- **Automate security** — Leverage existing secret scanning infrastructure without additional configuration.

#### What happens when a leak is detected

When a third-party secret scanning tool detects a leaked Cloudflare API token:

1. **Cloudflare immediately deactivates the token** to prevent unauthorized access.
2. **The token creator receives an email notification** alerting them to the leak.
3. **The token is marked as "Exposed"** in the Cloudflare dashboard.
4. **You can then roll or delete the token** from the token management pages.

#### Supported platforms

- **GitHub Secret Scanning** — Automatically enabled for public repositories

For more information on token formats and secret scanning, refer to [API token formats](https://developers.cloudflare.com/fundamentals/api/get-started/token-formats/).

```json
{"@context":"https://schema.org","@type":"BlogPosting","@id":"https://developers.cloudflare.com/changelog/post/2026-04-10-secret-scanning-support/#page","headline":"API tokens now detectable by secret scanning tools","description":"Cloudflare API tokens include identifiable patterns for automated leak detection in repositories and code.","url":"https://developers.cloudflare.com/changelog/post/2026-04-10-secret-scanning-support/","inLanguage":"en","image":"https://developers.cloudflare.com/changelog/post/2026-04-10-secret-scanning-support/og.png?v=4f6138488ff69ba2","dateModified":"2026-04-10","datePublished":"2026-04-10","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
```
