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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Refresh Dataset in PowerBI Service using web API Datasource and bearer token

Wish to host a live PowerBI Service Dashboard. The Datasource is a Web API one that authentications through Headers using a Bearer Access Token (x-apikey-token).

Prakrithika_0-1669007290331.png

 

Refreshing the data source throws this error:

Prakrithika_1-1669007366686.png

 

Came across this threat with the last comment in 2019 stating this was not a supported feature: https://community.powerbi.com/t5/Service/PowerBI-Web-Source-Data-Refresh/m-p/618215#M61757

 

Could someone please clarify if this is supported now - and what the best way to structure the WebContents function call is? 

2 REPLIES 2
Anonymous
Not applicable

The credentials for data sources in the screenshots are by means of a Header API-Bearer Token. Does this value have to be always hard-coded in the query (in anonymous authentication), since the alternative methods do not work/throw errors.

v-xiaotang
Community Support
Community Support

Hi  @Anonymous 

>> scheduled refresh has been disabled because at least one data source is missing credentials. to start the refresh again, go to this dataset's settings page and enter credentials for all data sources. then reactivate scheduled refresh

The error you are encountering now is not the same as the error in that post you attached, please go to this dataset's settings page, and enter credentials for all data sources

 

 

 

Best Regards,

Community Support Team _Tang

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

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.