Postman not sending API-Key in Headers

I’m trying to get my head around their weird setup of Authorization in the Postman App on Windows. I want to send an API Key using x-api-key. I set it up and specify that it must be in the Authorization section of the Headers.

When I send the data using a GET command, the x-api-key is just sent as a Header and not part of the Authorization section.

Am I missing something? Or should the API Key option NOT be in the Authorization section? Is Postman changing the data sent without notifying why or what?

[User-Agent] => PostmanRuntime/7.44.1
[X-Api-Key] => kjf3336wk5CFoOAtuSNeeKWkzewSox
[X-Metadata-Page] => test5.php
[Authorization] => 

)

Is it not better to just build a cURL page that you can use for testing instead of Postman? Or will it not work in cURL too?

Hi @material-cosmonaut23. Welcome to the Postman Community :postman:.

Can you open your Postman Console and send me a screenshot of your request headers(obscuring all sensitive data)? That will help me understand the issue you’re experiencing better.

And yes, you are correct! This should be included in the Authorization header as mentioned on the UI.

Something like this?

No. I was wondering how you were able to ascertain that this was not included in the Authorization header.

The Authorization header is auto-generated when you send the request, and the UI simplifies that for you. Were you getting an authorization error when you ran the request?

No, I wrote code to display what was sent. The image in the first post shows empty Authorization, and the X-Api-Key is just a normal header field