[ Web Proxy ]
URL:
Viewing: https://developers.cloudflare.com/fundamentals/api/how-to/roll-token/ [Back]  [Original]

Roll tokens Cloudflare Fundamentals docsSkip to content
SearchCtrlKLog in
  1. Home
  2. /Cloudflare Fundamentals
  3. /
    Cloudflare's API
  4. /How to
  5. /Roll tokens

Roll tokens

Last updated Apr 20, 2026Copy as MarkdownView as MarkdownAgent setup

If your token is lost or compromised, you can either create a new token or roll your token to generate a new secret. Rolling your API token into a new one will invalidate the previous token, but the access and permissions will be the same as the previous API token. The new token uses the scannable format, which allows credential scanning tools to detect leaked tokens.

To roll your API token:

  1. Go to My Profile > API Tokens.

    Go to API Tokens ↗
  2. Next to the API token you want to roll, select the three dot icon >Roll.

  3. Select Confirm to generate a new API token.

PreviousRestrict tokensNextAPI token template URLs

Was this helpful?

YesNo
Edit pageReport issue
[]

Web Proxy Viewer  |  New URL  |  Original Page