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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
SaraStep
Frequent Visitor

Power BI REST API embed token and infinite loading report

Hi guys,

 

I have issues with Power BI Rest API. I need to add a Power BI report to my internal portal as "Embed report Website or portal".

 

I started in Postman. First of all, I had an access token generated.

SaraStep_0-1714385452110.png

Secondly, I had an embed token generated with report and group parameters and bearer token (from the previous screenshots)

SaraStep_3-1714387015203.png

SaraStep_4-1714387056525.png

The call return the embed token and I added to URL.

https://app.powerbi.com/reportEmbed?reportId=REPORT_ID&groupId=GROUP_ID&w=2&config=EMBED_TOKEN

 

As soon as I want to use the Embed Url that I obtained, Power BI loads endlessly.

 

SaraStep_2-1714386951493.png

 

 

Could anyone advise me where I'm going wrong? Is there a parameter missing somewhere for example in the Body (the second call)?

 

Thank you very much.

 

1 REPLY 1
v-kaiyue-msft
Community Support
Community Support

Hi @SaraStep ,

 

1. Please verify whether the token is correct. Please try to send an api request, for example: GET https://api.powerbi.com/v1.0/myorg/reports, to verify whether your token can access the Power BI api. If the data can be returned, the token generation steps are correct. 

 

2. Put the token in the request header. The token parameter should be placed in the request header instead of being placed in the link as a parameter. In front of this token is a: Bearer token.

 

3. For more details, please refer to the link:

Power BI REST API: Step-by-step Guide to Use It | Coupler.io Blog
Embed Token - Reports GenerateTokenForCreateInGroup - REST API (Power BI Power BI REST APIs) | Micro...

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.