visual-studiotfsvisual-studio-2015postman

401 - Unauthorized: Access is denied due to invalid credentials when Trying to access the TFS API by postamn


i am getting 401 - Unauthorised: Access is denied due to invalid credentials error while i am trying to access the TFS API by Postman
https://www.visualstudio.com/en-us/docs/integrate/api/wit/wiql

this is i am putting in my Postman
http://apactfs.cbre.com:8080/tfs/applications/DefaultCollection/_apis/wit/workitems?ids=297,299,300&api-version=1.0


Postman image


Solution

  • You need to go to Authorization tab to choose Basic Auth and specify the username and password there:

    enter image description here

    Make sure you have enable Basic Auth for your TFS:

    enter image description here