Get-call to mendix api for retrieving branches is unauthorized

0
I am experimenting with the SDK as on https://docs.mendix.com/apidocs-mxsdk/apidocs/team-server-api and trying to retrieve the branches of oe of my projects. Problem is that I keep getting the response "errorCode": "UNAUTHORIZED". Here is my call from Postman:    I think I followed the description, retrieved my username and an API-key from my Mendix-profile, which I think should get me authorized. I then tried adding “PlatformAPIUser” and “PlatformAPIPassword” as described in the stories request: https://docs.mendix.com/apidocs-mxsdk/apidocs/stories-api. Some extra information. The headers look like this:   The app’s subdomain is retrieved from the Sprintr->environment->Production url: https://fly-postnl-worldwide.mendixcloud.com  
asked
1 answers
2

Hi Tim,

 

- Your appid should be the name of your subdomain for the production; subdomain.mendixcloud.com 

- Mendix-ApiKey is the one of your account not the project/app

- No need for password

- Add a header "Content-Type" with value "application/json”

 

 

 

 

answered