> For the complete documentation index, see [llms.txt](https://docs.edgetag.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.edgetag.io/hosting/self-hosting/access-information.md).

# Access information

To create or update your infrastructure and ensure everything is running correctly, we require your Cloudflare Account ID and API token.

### Video Guide

{% embed url="<https://www.loom.com/share/b5b70b9249df4e01a20474b55d8c20ae>" %}

### Account ID

Click on "Workers & Pages" in the left menu, and you will find the Account ID on the left side.

<figure><img src="https://1474399258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJWZKbUk0hRISkCIj2p4%2Fuploads%2Fj1aUmDG1MuinMJP3xRdi%2FScreenshot%202025-08-20%20at%201.42.28%E2%80%AFPM.png?alt=media&amp;token=312e677d-0662-486c-871e-32ff52be507d" alt=""><figcaption></figcaption></figure>

### API Token

To generate an API token, you will need to go to "Manage Account" -> "Account API tokens" in the left menu and click "Create Token".

Select the "Edit Cloudflare Workers" template to speed up the process. &#x20;

<figure><img src="https://1474399258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJWZKbUk0hRISkCIj2p4%2Fuploads%2FURGC4Mkbyi4ygEQYyPGJ%2FScreenshot%202025-08-20%20at%201.47.05%E2%80%AFPM.png?alt=media&amp;token=aa7c1f04-39b7-4a40-8091-a31f6e466d54" alt=""><figcaption></figcaption></figure>

We already have a comprehensive list of permissions that are required for Workers to perform their duties. Now we just need to add 3 more:

* Account -> Account Analytics (Read)
* Account -> D1 (Edit)
* Zone -> DNS (Edit)

<figure><img src="https://1474399258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJWZKbUk0hRISkCIj2p4%2Fuploads%2FzIyLQlS3GOoPuNuxsSuf%2FScreenshot%202025-08-20%20at%201.48.52%E2%80%AFPM.png?alt=media&amp;token=4f336d49-73f6-49df-9867-2097bb248a83" alt=""><figcaption></figcaption></figure>

The last thing that we need to do is define Zone Resources. Make sure that you select the Specific zone and then your zone.

<figure><img src="https://1474399258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJWZKbUk0hRISkCIj2p4%2Fuploads%2F39s465e6ZIww5VNx30lP%2Fimage.png?alt=media&amp;token=48a6d810-8750-4f0b-bf7f-e2a15e7b943b" alt=""><figcaption></figcaption></figure>

If you have multiple zones and encounter an error in EdgeTag stating that your token should only be associated with one zone, select "All Zones from an Account," click "Add More," then select "Specific Zone" and choose the zone that is not used for EdgeTag. Repeat this process, excluding zones, until only the one used by EdgeTag remains.

<figure><img src="https://1474399258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJWZKbUk0hRISkCIj2p4%2Fuploads%2Fx9ZWhJl1kGFNbdLWBRDk%2Fimage.png?alt=media&amp;token=8265ed46-6e5a-4c91-9b92-b243ab6275be" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
If your domain is not hosted in Cloudflare, ensure that you add support for Custom domains on the next page.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.edgetag.io/hosting/self-hosting/access-information.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
