Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi
I am trying to design a simple web app which can use power BI REST API to refresh a dataset.
But I stuck on how to get the authorization token from Azure Directory.
I tried to use POSTMAN and get a token but it return "401 unauthorize error" when I try to refresh the dataset.
But if I use the token I get from microsoft try it link (Datasets - Refresh Dataset - REST API (Power BI Power BI REST APIs) | Microsoft Docs ), it works.
Is there anybody here can help on how to get the correct authorization token?
Thanks
Thanks for the replies but it still doesn't work, our company use DUO as a second authorization, is anybody have the experience for that?
Hi @lilian7300 ,
Please refer to this blog:
https://dataveld.com/2020/05/09/using-postman-with-the-power-bi-rest-api/
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
When you acquire an access token, you must request a permission scope of Dataset.ReadWrite.All.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.