Finding Your Cloudflare API Keys

To publish Cloudflare Workers projects and serve them from our global cloud network, create a Cloudflare account and setup a registered domain or a Workers.dev subdomain on Cloudflare.

Wrangler and other tools use the following credentials to manage uploading and publishing your Worker scripts to your Cloudflare domain:

  • Account ID
  • Zone ID (Note You do not need your Zone ID for deploying Workers on a Workers.dev subdomain)
  • Global API Key
  • Email address

Account ID and Zone ID

Registered Domains

For domains that you have registered on Cloudflare, you need both IDs:

  1. Log in to your Cloudflare account and select the desired domain.
  2. Select the Overview tab on the navigation bar.
  3. Scroll to the API section and select Click to copy to copy your Account ID.
  4. Copy your Zone ID.

Workers.dev

For workers.dev domains, you will just need the Account ID:

  1. Log in to your Cloudflare account and select Workers.

  2. Scroll to the API section and select Click to copy to copy your Account ID.

Global API Key

  1. Click Get API Key below the API section to jump to your Profile page.

  2. Scroll to API Keys, and click View to copy your Global API Key *.

* IMPORTANT: Treat your Global API Key like a password! It should not be stored in version control or in your code, use environment variables if possible.