What is the 'Authorization' header format when using a Cloudflare API with a Global API Key or API Token?

Responsive Ad Header

Question

Grade: Education Subject: Support
What is the 'Authorization' header format when using a Cloudflare API with a Global API Key or API Token?
Asked by:
105 Viewed 105 Answers
Responsive Ad After Question

Answer (105)

Best Answer
(319)
When using a Global API Key, the Authorization header typically looks like: `Authorization: Bearer `. If you are using an API Token (which is the recommended approach), the format is also `Authorization: Bearer `. The 'Bearer' prefix indicates that the token is being used for authentication.