Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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?
Solved! Go to Solution.
I findout the default authoriation is cookies based. And I solved this problem by using NTLM Authoriation.
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.
I findout the default authoriation is cookies based. And I solved this problem by using NTLM Authoriation.
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.
@EdwinFree I have done what you said and I can be able to retrieve the data but I'm getting the unauthorized error if I'm not using it for more than 2-3 minutes then I again need to create the session and make a request to retrieve the data, but you said the session will never expire right?
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |