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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
fxs7576_02
Helper I
Helper I

Generate Secured Embed Code via. REST API

Hi PowerBI Community,

 

Does anyone know if there's a way to generate a 'Publish to Web (public)' link (as shown in the screenshots) via. Power BI REST API, or any methods? I cannot find it from the list of API endpoints (this link), but I want to confirm if this is currently doable. 

 

fxs7576_02_0-1738272941106.png

fxs7576_02_1-1738273011225.png

 

Best regards

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @fxs7576_02 

 

I'm afraid that the Power BI REST API does not currently support the generation of Publish to web embed code. Embed code is automatically generated when you select Publish to web and are allowed to use the feature. And only one embed code can be created per report.

https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-publish-to-web#create-embed-cod... 

 

Could you tell me why you want to do this? If you need further help, feel free to let me know.

 

Best Regards,
Yulia Xu

 

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @fxs7576_02 

 

I'm afraid that the Power BI REST API does not currently support the generation of Publish to web embed code. Embed code is automatically generated when you select Publish to web and are allowed to use the feature. And only one embed code can be created per report.

https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-publish-to-web#create-embed-cod... 

 

Could you tell me why you want to do this? If you need further help, feel free to let me know.

 

Best Regards,
Yulia Xu

 

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

Hi @Anonymous ,

 

I was just curious if that's possible. Thanks for letting me know that it's not currently supported.

 

Best regards

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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