This chapter shows with screenshots how to create the API Token the program needs. The pictures are from Cloudflare's dashboard in November 2026 on an account with three example domains (wi24rd.com, abe.wi24rd.com and xyz.wi24rd.com). Cloudflare changes its dashboard now and then, so the buttons may have moved a little, but the fields are the same.
What you should end up with: an API Token named Huginn and Muninn, the two required permissions (Zone › Read and Analytics › Read), if you like the optional Account Security Center Insights › Read (see step 2), and access to the domains Huginn should see. Nothing else.
Step 1 – Open Cloudflare's page with the fields filled in
Click Create API Token at Cloudflare in the program (in step 2 of the guide or under Settings › Connection). It opens Cloudflare's page My Profile › API Tokens in your browser with the name and the two permissions filled in. If you are not logged in at Cloudflare, log in first; the page opens afterwards.

If you start from the Create Token button on the API Tokens page yourself instead, you fill in the name and permissions by hand. The fields are the same as in the pictures.
Step 2 – Check the two permissions
Unfold DNS & Zones. Here Zone must be ticked under Read and nothing else.

Unfold Analytics & Logs. Here Analytics must be ticked under Read.

All other groups must stay at 0 (except the optional permission below, if you want it). Never give Edit to anything: the program only reads, and an API Token without write permissions cannot change anything at Cloudflare, whatever happens to your computer.
Optional: Cloudflare's own findings
If you want to see Cloudflare's own security findings (Security Insights) under Attacks, give the token one more permission: Account Security Center Insights › Read. It belongs to the account, not to the domains, so it goes in a new policy for the account. It can only read. Without it the program works as before, and the section Cloudflare's own findings says the permission can be added.
- Click Add new policy below the policy with the two permissions, and choose Add new Account policy.

- Leave Include and All accounts as they are. Type
Security Centerin the search field, and tick Read next to Account Security Center Insights.

If you search for Security Center in the first policy, you find Zone Security Center Insights. It does not work with the program: Cloudflare only answers with the account's findings. Use Account Security Center Insights.
Step 3 – Choose which domains the API Token may see
At the top of the policy are Include and All zones. Click All zones to see the choices.

- If Huginn should be able to see all your domains, leave All zones. You still choose in the program which of them are fetched.
- If the API Token should only see one domain, for example because you are making it for a customer, choose Specific zone and then the domain in the list that appears.


abe.wi24rd.com is chosen. A program with this API Token sees only that domain.If you want to give access to several particular domains, click Add more and add one line per domain.
Step 4 – Expiration and IP filter
Scroll down. Token expiration is at No expiration. If you choose an expiry, the program stops fetching on that day, and you have to create a new API Token. Leave Client IP address filtering empty; your computer's address changes, and a filter would lock the program out.

Click Continue to summary.
Step 5 – Check the summary


If anything other than Analytics: Read and Zone: Read (and Account Security Center Insights: Read, if you added it) is listed under Permission policies, click Back and fix it. Otherwise click Create Token.
Step 6 – Copy the API Token

- Click the copy icon to the right of the token, or select the whole text and copy it.
- Go back to the program, paste it into the field API Token (read only), and click Save and connect.
- Close the browser tab. You cannot see the token again; if you lose it, you simply create a new one.
The command under Test this token is for people who want to try the token in a terminal. You do not need to use it.
Afterwards: the token in the list
Under My Profile › API Tokens the token is now in the list with the two permissions.

If you want to revoke the token
If you delete the program, or want to close the access for any other reason, delete the token here. Then it cannot be used by anyone, whatever happens.


Subdomains need no new permission
The figures per subdomain in Visitors and Attacks come from the same figures that Analytics › Read already gives. You do not need to change your API Token. The program does not read your DNS records.
Health needs no new permission
Errors per hour and cache in Health also come from the figures that Analytics › Read already gives. You do not need to change your API Token.
More than one account
The program takes one API Token per Cloudflare account. If you have domains on more than one account, create an API Token for each account following steps 1–6. You paste the first one in the guide. You add the others under Settings › Connection with Add API Token…. The domains from all accounts are shown together.
Each API Token becomes a connection in the program. The name the program shows is the account's name at Cloudflare. It is used as it is, even when it is an e-mail address, for example "…'s Account". If one API Token can see more than one account, it says, for example, "… + 1 more". If the program does not know a name yet, it says, for example, "Connection 2".
You can give the connection your own name with Rename… in the program. The name at Cloudflare does not change. See Settings.
For the IT company: one token per customer
If you manage customers' domains, make one API Token per customer with Specific zone and the customer's domain (step 3), give the customer the token, and the customer pastes it into their own program. The customer then sees only their own domain, and you can revoke the access again without touching anything else.