Invalid format for Authorization header

I am getting the following error when trying to make api calls using a bearer token:

Invalid format for Authorization header

My command that i am making through postman looks like:

curl --location --request GET ‘https://api.cloudflare.com/client/v4/zones/
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer xxx’ \

Note I have removed the actual token but I am passing through a valid one.

Any ideas?

Hi @ismailm123 , did you get to the bottom of this? I have a situation where it looks like CF is possibly stripping the bearer token from the header but not yet sure why.