Skip to main content
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

New Member

Gateway API Issue

I've run curl --write-out %{json} --request GET


And I get this error 



Super User
Super User

you need to first authenticate before you can call these endpoints.

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=<client_secret>"

Hi @pshymonz ,


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 Zhou


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dear v-rzhou-msft,


I’ve ran the same request in Postman and still receive the same error.



Run it in the Power BI REST API sandbox.

So I've looked at the sandbox and the APIs seem to be of the reporting kind and not access to gateway.

Helpful resources

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.


Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.


Fabric certifications survey

Certification feedback opportunity for the community.