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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
keds2300
Regular Visitor

Using REST API as a data source

I'm trying to connect to a data source that uses REST API and can't seem to get authentication working.  In REST, this code works: 

BearerToken.png

 

 

In PowerBI, I've used the same URL and set the Authorization header with the same parameters and get the following authorization error: 

AccessError.png

 

What am I doing wrong here? 

3 REPLIES 3
Jayendran
Solution Sage
Solution Sage

Hi @keds2300 ,

 

Please see my exisiting answer below

 

https://community.powerbi.com/t5/Developer/Dataset-not-refreshing-via-API-in-Power-BI-web-service-am...

 

By directly this is not achieveable however using gateway as a workaround this can be achievable !

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @keds2300 

 

check Chris Webb's Blog.

https://blog.crossjoin.co.uk/category/power-bi-api/

 

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Thanks, but the post has information about creating a custom connector for the Power BI REST API.  I'm trying to connect to a another application's API.  Can I not do that directly from PowerQuery or do I need to create a custom connector as well?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.