cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
EdwinFree Frequent Visitor
Frequent Visitor

How to test PowerBI Report Server API by using Postman

I am trying to test the PBI ReportServer API by using Postman.

Most document talks doing this under PBI Server or within the AD Domain. However, my PBI ReportServer is deployed on Azure VM, and I am trying to test the API on my PC's Postman, which means it's out of domain. The API responsed with 401 Unauthorized. 

Clearly, I need to get authoriation token or setup some key before I call the API. The official document also talks little about the authoriation. https://docs.microsoft.com/en-us/power-bi/report-server/rest-api

 

Do you guys meet same scenairo and how to fix this?

1 ACCEPTED SOLUTION

Accepted Solutions
EdwinFree Frequent Visitor
Frequent Visitor

Re: How to test PowerBI Report Server API by using Postman

I findout the default authoriation is cookies based. And I solved this problem by using NTLM Authoriation.

Annotation 2019-06-05 210829.jpg

 

After called the POST Session API, you will get Cookies and you can call other APIs.

However, there is another problems, that is the Cookie seems not get expired. And I find the official DELETE Session API not works.

1 REPLY 1
EdwinFree Frequent Visitor
Frequent Visitor

Re: How to test PowerBI Report Server API by using Postman

I findout the default authoriation is cookies based. And I solved this problem by using NTLM Authoriation.

Annotation 2019-06-05 210829.jpg

 

After called the POST Session API, you will get Cookies and you can call other APIs.

However, there is another problems, that is the Cookie seems not get expired. And I find the official DELETE Session API not works.