I have added authorization at the collection level.
At the folder level and request level I have selected Inherit auth from parent.
but when I am running the request I am getting a 401 error.
API key is valid which was inherited to this request.
Can any one please clarify this ?
Day 12 of what?
There are several challenges that are split into days.
Is it the 15 days for testers, or the 30 days for developers?
I suspect is because the key should be called “x-api-key” instead of “apikey”.
Tip: Put your actual API key in an environment variable. (In the current value).
I have updated the heading. But I believe key name we can give anything. That should not be an issue.
Yes, my API key is placed in the env variable only.
No, the key name key needs to match what the API is expecting.
Postman API | Postman Public Workspace | Postman API Network
Postman uses API keys for authentication. The API key tells the API server that the request came from you. Everything that you have access to in Postman is accessible with your API key. You can generate a Postman API key in the API keys section of your Postman account settings.
You must include an API key in each request to the Postman API with the
X-Api-Key request header. In Postman, you can store your API key as an environment variable. The Postman API collection will use it to make API calls.
However, the following is also relevant.
Using the API key as a query parameter
Requests that accept the
X-Api-Key request header also accept the API key when you send it as the
apikey query parameter. An API key sent as part of the header has a higher priority when you send the key as both a request header and a query parameter.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.