I’m getting HTTP 401 error when trying to access Policies API using Postman. I can list the Policies on the Tyk dashboard just fine.
The only difference I can see betwen the Policies API being called from the browser dashboard and from Postman is that in the case of browser dashboard, I see the following cookies being set.
Any idea what the problem might be? Is there any documentation on Policies API? I’m looking for the ability to create a Policy and specify my own human-readable policy id value instead of the UUID format returned by the Policy API.
I checked in mongoDB under tyk_analytics_users, the access key for the user is different. It is a3deb204957647f95d509b00865e3103. Using this key, I was able to access policies API.
Not sure why the key generated from the Tyk Dashboard is not valid. I just used the Dashboard and generated another key: 59de481c2e7f09000106f0b60d8f3f3939934a346599ef260b1780ec. I confirmed this new key was not stored in mongoDB.