API Tokens are not supported by this API for now

I’m trying to use load balancer’s API but I’m being denied by the following error:

curl -X GET -H "Authorization: Bearer ***************************"  -H "Content-Type:application/json" "https://api.cloudflare.com/client/v4/user/load_balancers/***********************" | jq .
{
  "success": false,
  "errors": [
    {
      "code": 10000,
      "message": "API Tokens are not supported by this API for now"
    }
  ]
}

I have created the API token in my account profile. I have followed the Cloudflare API v4 Documentation. It also doesn’t work with X-Auth-Key (and setting the API Token as the value). What am I doing wrong?

This is your answer.

This API endpoint simply does not support API token (yet).

Use Global API key instead.

2 Likes

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