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.
For domains that you have registered on Cloudflare, you need both IDs:
For workers.dev domains, you will just need the Account ID:
Log in to your Cloudflare account and select Workers.
Scroll to the API section and select Click to copy to copy your Account ID.
Click Get API Key below the API section to jump to your Profile page.
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.