> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.adsxapp.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to get the Cloudflare key

The Cloudflare key is **required**: it keeps your presell pages online, registers your domains, and provides security, stability, and protection for your whole setup — with automatic SSL, smart bot blocking, and pages that stay available even during traffic spikes. You only need to get the key once, and it takes just a few minutes.

> **Heads up:** the most common mistake is copying the wrong code at the end of the process. Cloudflare shows several similar-looking codes on the same screen, and only one of them works in AdsX. Step 7 shows exactly which one to copy.

${frame}[](https://www.youtube.com/embed/ehX1dkcJUos)
## Is the interface showing in another language?

This guide uses the Cloudflare interface in English. If you switched the language to English and it still shows in another language, your browser is automatically translating the page. The video below shows how to force English:
${frame}[](https://www.youtube.com/embed/TZ7C1fJZg6s)

## 1. Open the API Keys screen in AdsX

Open **API Keys** in the main menu, as shown below:

![](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/image_q0us5l.png =640x469)

Keep this screen open: you'll come back to it at the end to paste the key.

## 2. Sign up or log in to Cloudflare

Click the Cloudflare logo on the card, or go directly to [dash.cloudflare.com](https://dash.cloudflare.com/sign-up/workers-and-pages).

The fastest way is to click **Continue with Google**. If you already have an account, click **Log in** at the bottom of the page.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/01-criar-conta_1r16cvh.png =640x527)

## 3. Open the tokens area

In the left menu, click **Manage account**.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/02-manage-account_109ijk3.png =640x575)

In the options that open, click **Account API tokens**.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/03-account-api-tokens_13wi7gf.png =640x382)

## 4. Create a new token

Click **Create Token** (top right corner) or **Create a token** (middle of the screen). Both do the same thing.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/04-create-token_10zjzhj.png =640x347)

## 5. Choose the "Write all resources" permission

Under **Permission policies**, click **Write all resources**.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/05-write-all-resources_1sgjuvs.png =640x340)

* **Token name**: you can keep the name Cloudflare suggested.
* **Token expiration**: leave it on **No expiration** (selected by default).

> Don't choose "Read all resources" or any other option. With a different permission, AdsX can't publish your pages.

## 6. Review and create the token

Click **Review token** at the bottom of the page.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/06-review-token_vhb7v2.png =640x342)

The next screen shows a long list of permissions. You don't need to check anything: scroll to the bottom and click **Create token**.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/07-create-token_14u4rcf.png =640x372)

## 7. Copy the right key: "Your API Token"

This is the most important part. Cloudflare shows **several codes** in the same window, but AdsX only accepts **one**: the one in the **Your API Token** field.

Click the copy icon next to **Your API Token**.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/08-copiar-token_1n08qey.png =640x643)

**Don't copy** any of these other fields. They look like keys, but they don't work in AdsX:

* **Account ID**: it's the first field in the window, and the most common mistake.
* **Access Key ID**
* **Secret Access Key**
* **S3 API endpoint**
* **Example Usage**

![](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/09-campo-certo_172wkx8.png =640x429)

> **How to tell you copied the right one:**
> * The code was right below the yellow box "Important: Copy your token now".
> * It usually starts with `cfat_`.
> * If the code has only numbers and the letters "a" to "f" (32 characters), you copied the **Account ID**. Go back and copy the **Your API Token** field.

> **Copy it before clicking Confirm.** Cloudflare shows the key only once. If you close the window without copying it, there's no way to see it again: create another token by repeating steps 4 to 7.

After copying, click **Confirm**.

## 8. Paste the key into AdsX

Go back to the **API Keys** screen in AdsX, paste the key into the **Cloudflare** card, and click **Save**.

Done! Your presells are ready to be published.

## Seeing "Incorrect Cloudflare Key"?

This almost always happens because the wrong field was copied in step 7. To fix it:

1. In Cloudflare, create a new token (steps 3 to 6).
2. Copy the **Your API Token** field (step 7) and save it in AdsX.
