title: Access Azure DevOps API via OAuth 2.0 Azure AD
body: <p>In postman i have set simple request to access Azure DevOps API, using OAuth 2.0 security via Azure AD
  <a href="https://docs.microsoft.com/en-us/rest/api/azure/devops/core/projects/list?view=azure-devops-rest-5.1" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/azure/devops/core/projects/list?view=azure-devops-rest-5.1</a>
  On Azure AD application setup with permission to acess Azure DevOps API with user consent </p>
  
  <p>Im getting token, however  Azure DevOps API keeps returning code 203 with sign in html instead of json response. I would appreciate any suggestions</p>
  
  <p>Thanks </p>
  
  <p>Postman request</p>
  
  <pre><code>GET /[some_org]/_apis/projects?api=5.1 HTTP/1.1
  Host: dev.azure.com 
  Authorization: Bearer [something] 
  User-Agent: PostmanRuntime/7.17.1 
  Accept: */* 
  Cache-Control: no-cache 
  Postman-Token: [something] 
  Accept-Encoding: gzip, deflate 
  Cookie: VstsSession=[something] 
  Referer: https://dev.azure.com/[some_org]/_apis/projects?api=5.1 
  Connection: keep-alive cache-control: no-cache
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/2zDnP.png" rel="nofollow noreferrer">Token get details</a></p>