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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
justSomePower
New Member

GenerateToken API Call

Hello!  I'm trying to embed apps in my website and have run into a 401 UnAuthorized error from the GenerateToken API method. I'm following the embed for your organization approach and am using credentials (username/password) so my API can call the PowerBI API.  I can embed reports from workspaces just fine, but cannot embed reports from apps.  For some reason, the GenerateToken method rejects reports from apps.  Is there some setting I'm missing in my user or is embedding reports from apps not supported?

 

Thank you!

1 REPLY 1
Anonymous
Not applicable

HI @justSomePower,

How did you used this API, can you please share some more detail? Does this token have generating for all the contents that the apps included?

How to Get Your Question Answered Quickly  

If you want to embed that app, you need confirm the token is define for these contents and the account have enough permission to access these contents.

Embed Token - Generate Token - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.