Forum Discussion
PowerBI API - 400 Bad Request - On postman
I tried Power BI API in postman
Generate access token:
- I created an app in azure,created certificate
- Updated PowerBI API permissions
- Gave access to the app in Power BI dashboard
Response Body:
Body:
Please help
Hi Anonymous ,
It works when i try it. Did you change the host in the headers?
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- v-chenwuz-msftCommunity Support
Hi Anonymous ,
Your calling url should be "https://api.powerbi.com/v1.0/myorg/GenerateToken" and dataset and report id should be contained in body.
You can try this in Embed Token - Generate Token - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- AnonymousNot applicable
Hello v-chenwuz-msft
Thank you for the reply,
I still get this error in postman
but it worked in the microsoft try it. any idea if I am going wrong somewhere?
- v-chenwuz-msftCommunity Support
Hi Anonymous ,
It works when i try it. Did you change the host in the headers?
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.