Authenticate with a Cloudflare API key
API keys are unique to each Cloudflare user and used only for authentication. An API key does not authorize access to accounts or zones. To ensure that the GraphQL Analytics API authenticates your queries, retrieve your Cloudflare Global API Key.
Edit HTTP headers for GraphiQL authentication
Enter X-AUTH-EMAIL in the Header name field and your email address registered with Cloudflare in the Header value field, and click Save
Click Add Header
Click anywhere outside the Edit HTTP Headers window in GraphiQL to return to the Untitled Query 1 tab
Now that you have configured authentication with a Cloudflare API key, you are ready to run queries using GraphiQL.