How make simple curl call?

I created a token and want to make curl request.

curl -X GET "<zone>" \ 
-H "Content-Type:application/json" \ 
-H "Authorization: Bearer <TOKEN>"

I thought I can make call with this token since

API Tokens use the standard Authorization: Bearer header for authentication instead of x-auth-email and x-auth-key that API Keys use. Requests can be authenticated like the following:

But when I run the coude I get

{"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6111,"message":"Invalid format for Authorization header"}]}],"messages":[],"result":null}%

This topic was automatically closed after 31 days. New replies are no longer allowed.