Reachability

Check which permissions a pasted Cloudflare API token has.

Changed on

Read-only calls, plus two writes whose bodies Cloudflare is certain to reject (an A record with an invalid address, a tunnel with no name): "not authorized" means the permission is missing, a validation error that it is there, and nothing is created either way. Any other answer is unverified, and a run refuses the token. A token that reaches zones besides the one asked about is refused too, naming them. The token is used for this check only and is not stored.

post/ingress/cloudflare/token-check

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Request body

hostnamestring nullable

A hostname the token is meant to serve, when the zone is not known: the longest zone the token reaches that is the hostname or one of its parents is checked, as zone would be. Ignored when zone is set.

tokenstring password required

The token, as pasted. Used for this check only; not stored. A secret field, so the AI assistant takes it through a secret slot.

zonestring nullable

The zone the token is meant for. With it, a token that reaches any other zone is not ready.

Response

checked_zonestring nullable

The zone the write permissions were probed in.

errorstring nullable

Why it did not, when it did not.

readyboolean required

Every permission is present and, for one zone, the token reaches no other.

template_urlstring required

Where to create a token with the permissions filled in.

validboolean required

Cloudflare accepted the token at all.

zonesstring[] required

Zones the token reaches (the first 50).

Changes