---
title: Roll tokens · Cloudflare Fundamentals docs
description: 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.
lastUpdated: 2025-08-20T18:47:44.000Z
chatbotDeprioritize: false
source_url:
  html: https://developers.cloudflare.com/fundamentals/api/how-to/roll-token/
  md: https://developers.cloudflare.com/fundamentals/api/how-to/roll-token/index.md
---

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.

To roll your API token:

1. Log in to the Cloudflare dashboard.

   [Go to **Account home**](https://dash.cloudflare.com/?to=/:account/home)

2. Go to **My Profile** > **API Tokens**.

3. Next to the API token you want to roll, select the **three dot icon** > **Roll**.

4. Select **Confirm** to generate a new API token.
