anaplan api 401 Not Authorized using Postman

stephen.hoffer
Contributor

anaplan api 401 Not Authorized using Postman

Using Postman: 

I can use Post and get an authorization token, but when I create the Get with Authorization = AnaplanAuthToken <token from Post>

Content-type=application/json

 

Basic Authentication

and workspace ID and Model Id in URL

https://api.anaplan.com/2/0/workspaces/<workspace id>/models/<model id>

 

I get:

{
"status": {
"code": 401,
"message": "Not Authorized."
}
}

 

Any ideas?

12 REPLIES 12
jesse_wilson
Expert

@stephen.hoffer, you put all of the content in the Parameters tab rather than Headers, so our API server can't see your authentication. I do see you have one header defined, I suspect this is an Authentication header - you have go back to the Authorization tab, and change type to "No Auth", or whatever values you have there will override any Authentication header you define manually.

 

The request should look like this:

Screen Shot 2019-04-02 at 23.14.25.png

 

 



Jesse Wilson
Solution Architect - Data Integrations
Singapore
stephen.hoffer
Contributor

I accept the last two as answers because together they filled in the pieces

stephen.hoffer
Contributor

Just a post-mortem:

 

It turns out that the anaplan URLs needed for the API to work were not on the whitelist...or got automatically put on the blacklist which caused on again then off again functionality.


Once this was addressed there were no more issues with running an export action via the API.