# API Token
- You need to have a Cloudflare account and add your domain to it first
Go to User API Tokens to create API Token:
- Please fill in the "Token name" section
- Then in the "Permissions" section, you need to have 2 permissions: Zone->Zone->Read and Zone->DNS->Edit
- Then in the "Zone Resources" section, select Include->Specific zone->[Your domain]
- Finally click "Continue" to generate the token, remember it carefully because you only see it once
# Zone ID, Record ID, Domain
- Go to Cloudflare's DNS setup page (Cloudflare->[Yourdomain]->DNS)
- Then turn on Inspect(F12) -> click on the Network tab -> refresh page (F5) you will see there is a lot of data in the Network tab look for the data called [dns_records?] and click on it -> on the right select Response you will see the list
- "id" is the Record ID
- "zone_id" is the Zone ID
- "name" (not "zone_name") is the domain name
# DDNS with Cloudflare