06-24-2024 07:53 PM
Hi All,
Need your help.
I worked with API before, but never had such an issue with authorization.
I'm having the following error: 401 Authorization required
My actions:
Forked the 1.47 collection to my Postman.
Generated API key for organization.
Checked that API Access enabled for the Org.
Postman:
Keep the collection Authorization details intact.
Created "apiKey" variable in the environment.
Trying to run "getOrganizations" and it fails with the error.
I've checked the info here:
https://developer.cisco.com/meraki/api-v1/authorization/#authorization
Could anybody reveal the screenshot of the working postman Authorization please.
Kind regards,
Ritor
06-24-2024 07:58 PM
06-25-2024 12:55 AM
Thank you.
Did the same - still error 401.
API key definitely correct.
No headers except default in the collection API call.
06-25-2024 01:00 AM
Any chance when you copy and pasted the API key there is a leading or trailing space, or the first or last character dropped?
06-25-2024 01:01 AM
Have you definitely got the correct organization/network name for whatever you are testing? They are case-sensitive.
06-25-2024 05:57 PM
Found it.
Bloody web proxy. I forgot it is using auth before sending traffic to the internet.
Should've looked closely to the server reply first.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide