> 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="/files/hQ7EBxfwd4Aw3vSOXMAn" 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="/files/ATXgO9iBJYuKtm4xJp7u" 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="/files/Iv4TlnHH18nqMJVy0xyt" 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="/files/bhvhLCPQg7B6ZGNkz9Px" 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="/files/eIg75pDvWIVjT5Ql0oFW" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
