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

# Cloudflare Global API Key (`cloudflare_global_api_key`)

> **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.

Global API Key of a Cloudflare user account, which grants full access to the account. Keys in the scannable format start with cfk_, followed by 40 characters and a checksum whose length Cloudflare does not state. Older keys are unprefixed strings of 37 to 45 lowercase hexadecimal digits; they look like hashes and are not covered by the regexp.

- Parent datatype: `api_key`
- 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`):

```
^cfk_[A-Za-z0-9]{41,}$
```

## Examples

- `cfk_` (invalid example) — Prefix without the key

## Supported by tools

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

## Sources

- doc: <https://developers.cloudflare.com/fundamentals/api/get-started/token-formats/>
- other: <https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml>

## Quality

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

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