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

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

Reply
Mekaur
Frequent Visitor

API Token security

Hi All,

 

We have one requirement in which we need to access the APIs to get data into Power BI and token is required to refresh the data.

We want to secure that token in some way.

 

Can you please help me how best we can secure the token?

 

Regards

mekaur

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Mekaur , refer if these can help

https://docs.microsoft.com/en-us/power-bi/developer/automation/walkthrough-push-data-get-token

https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Anonymous
Not applicable

Hi @Mekaur,

You can consider moving these get API token methods into your query table steps, it should better than get token external and input in your query table with query parameters.

Get Data from Twitter API with Power Query 
Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Mekaur,

You can consider moving these get API token methods into your query table steps, it should better than get token external and input in your query table with query parameters.

Get Data from Twitter API with Power Query 
Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Mekaur , refer if these can help

https://docs.microsoft.com/en-us/power-bi/developer/automation/walkthrough-push-data-get-token

https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.