Hi - I am trying to access this API - Cloudflare API v4 Documentation.
Using my Global API Key - I am able to get things to work perfectly well. I am trying to lock this down by using an API token however, I have tried adding options for all of the Cloudflare Tunnels but still get authentication errors.
Is there something I am missing?
You need to go to https://dash.cloudflare.com/profile/api-tokens and
- [Get Started] on Create Custom Token
- Select Item = Cloudflare Tunnel
- Give it Edit permissions
- Continue and save
Use the header “Authorization: Bearer TOKEN” (replace TOKEN with your created Token) instead of the X-Auth-Email and X-Auth-Key headers.
Perfect - Thanks. Didnt realise to use “Authorization: Bearer TOKEN”. Documention mentions otherwise!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.