Authentication error for KV API access

I keep getting Authentication error doesn’t matter what type of KV request I make. Below is example of a list request. I have used dummy values of account_id, namespace_id and key below. I double checked the account_id, namespace_id and key. They are correct.

curl --request GET
–header ‘Authorization: Bearer ABCDE’
–header ‘Content-Type: application/json’

Steps I followed:

  1. Created a Worker from dashboard. I got the account_id from the worker page after it was created.
  2. Created a namespace under KV. Got the namespace_id from here.
  3. Used Global API Key for auth.

Solved it. Seems global api key does not work. I created a new API Token with appropriate permissions.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.