---
id: "cloudflare_api_token"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["secrets"]
langs: ["common"]
quality: 70
url: "https://registry.apicrafter.io/datatype/cloudflare_api_token"
---

# Cloudflare API token (`cloudflare_api_token`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Scoped API token of Cloudflare. Tokens created or rolled in the scannable format start with cfut_ (user API token) or cfat_ (account API token), followed by 40 characters and a checksum whose length Cloudflare does not state. Older tokens are unprefixed 40-character strings; they keep working but are too generic for a regexp and are not covered.

- Parent datatype: `access_token`
- Personal data (PII): no
- Categories: Secrets and credentials (passwords, keys, tokens) (secrets)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^cf(?:ut|at)_[A-Za-z0-9]{41,}$
```

## Examples

- `cfut_` (invalid example) — Prefix without the token

## Supported by tools

- `cloudflaredlp`
- `datadogsds`
- `gitguardian`
- `githubsecretscanning`

## Sources

- doc: <https://developers.cloudflare.com/fundamentals/api/get-started/token-formats/>

## Quality

Score 70/100. Missing: examples, mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/cloudflare_api_token.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/secrets/cloudflare_api_token.yaml>
