Please follow these steps to get your Cloudflare account ID and create an API token with permission to edit Cloudflare Workers. Since Cloudflare Workers work at the account level, not the domain level, you'll need to have access to the Workers Admin and DNS roles in Account Scoped Roles.
Please note, your Cloudflare account ID is NOT the email address associated with your Cloudflare account.
Do you have a Cloudflare Account?
Most Raptive sites already have a Cloudflare account, so please talk with your host, such as BigScoots or Rocket.net, and/or technical support service, like NerdPress, to help set this up if they manage Cloudflare for you.
Creating your Cloudflare Worker
1. Go to Manage Account > Account API Tokens
2. Click Create Token and give it a name (we would recommend “Raptive API Token”)
3. Under Permission Policies, click Select Template > Edit Cloudflare Workers
4. Under Token Expiration, select No Expiration and leave Client IP address filtering as is
5. Click Review token, then Create token
6. In the confirmation window, “Token created successfully,” copy the Account ID and API Token
IMPORTANT: This is the only time you can view and copy the API Token. Be sure to copy and store it securely.
Sharing with Raptive
Now that you have your Cloudflare Account ID and API Token, you need to add them to your Raptive dashboard for your site.
1. Log in to your Raptive account
2. Click your profile picture and select Account Settings
3. Click Cloudflare Credentials on the left sidebar
4. Enter the Account ID and API Token in the fields
If you have multiple sites with Raptive, please input the Account ID and API token for each site. If you share a Cloudflare account for all your sites, the Account ID and API token may be the same for each site.
5. Click Save on the bottom right
What happens next
Once saved, we'll attempt to verify the credentials you provided with Cloudflare. If the submission is successful, you should see a confirmation message stating "Cloudflare Credentials Updated."
Once successfully submitted, Raptive will attempt to deploy a Cloudflare Worker within a 5-business-day window. If successful, you should see a Raptive worker listed in your Cloudflare Workers and Pages Overview. If any issues arise, we will contact you.
Frequently asked questions
Can I email Raptive my Account ID and API Token?
No, you must add the Account ID and API Token in your Raptive dashboard, and it cannot be sent to Raptive support directly. Additionally, it is not safe to send API Tokens over email.
How will I know if it's working?
Once your Cloudflare Credentials are successfully added to your Raptive dashboard, Raptive will attempt to deploy a Cloudflare Worker within a 5-business-day window. If successful, you should see a Raptive worker listed in your Cloudflare Workers and Pages Overview. If any issues arise, we will contact you.
I tried to save my Cloudflare credentials in my Raptive dashboard, but I got an error message.
If there is a problem with the submission, you'll see an error message stating "Invalid Account ID/API token. Please refer to the instructions on how to find your Cloudflare Account ID/API token."
Note: Although only one field (either Account ID OR API Token) may be entered incorrectly, you'll still see the error message appear under both fields.
If you receive this error message, we recommend trying the process above again to ensure the information has been entered correctly. If you continue to receive an error message with your submission attempts, please contact your Raptive support team for assistance.
I have more than one site. Do I need to create multiple workers?
If you have the same Cloudflare account for all your sites, you can create one Cloudflare Worker and add the Account ID and API Token to each site’s Cloudflare Credentials in your Raptive dashboard.
When do I need to contact my host?
If you use BigScoots or Nerdpress, they likely handle your CDN
What changes will impact my worker?
Domain changes, transfer of ownership, transferring hosts or Cloudflare accounts
Is Cloudflare the only compatible CDN?
Yes, at this time, only Cloudflare CDN is compatible.
I can’t set a Cloudflare Worker Template. What are the exact settings I need in Cloudflare?
Following the above steps is the easiest way to create a Cloudflare Worker. However, if you cannot set a template, be sure to set up a Worker with Entire Account permissions and the following toggles enabled:
If you have any questions or concerns, please don't hesitate to contact your CPM, AM, or Raptive's Support team.