Forum Discussion
Gateway API Issue
you need to first authenticate before you can call these endpoints.
- Anonymous2 years agoNot applicable
I do use this code to create a bearer token and then apply this token to the CURL statement but I still recieve this error:
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials&client_id=<client_id>&resource=https://analysis.windows.net/powerbi/api&client_secret=<client_secret>" https://login.microsoftonline.com/52da6ceb-c432-45d8-9cee-97902996ced9/oauth2/token
- Anonymous2 years agoNot applicable
Hi Anonymous ,
As far as I know, you can try to call the Power BI Rest API by Postman, you can use the bear token in it.
For reference: Solved: Power BI REST API Authentication with Postman - Microsoft Fabric Community
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous2 years agoNot applicable
Dear v-rzhou-msft,
I’ve ran the same request in Postman and still receive the same error.
Regards,