Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Frequent Visitor

API setup authorization bearer.

I've followed all the different insturctions to setup the API. The one thing I cannot figure out is where and how to get the authorization code/string/bearer. I'm trying to connect my dataset to Retool. The only way I can get it to work is to copy the Authorization: Bearer from example but this only works for a day and then it changes. I'm sure i'm missing something incredibly simple but i cannot figure it out. Any help would be appreciated. 

Community Support
Community Support

Hi @nroeder ,


The access token will expire after an hour. So you should use script to refresh the token.

Refresh the access token in Power BI embedded analytics | Microsoft Docs

Then use the token in the headers for the rest api.


For more details, you can refer this post

Solved: REST API Get Access Token - Microsoft Power BI Community


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.





Thanks! I definetley think i'm on the right track but everything I find is based on coding. Here is the interface i'm trying to connect. Any idea?

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors