Forum Discussion
Jamir
3 years agoFrequent Visitor
How to get EmbedToken Generated using PostMan ? HTTP Error 400. The request hostname is invalid.
1. I was able to genrate Accesstoken using : (Works in postman) POST - https://login.microsoftonline.com/{{tenant_id}}/oauth2/token Header: Content-Type application/x-www-form-urlencoded Bod...
- 3 years ago
Finally, I made it work.. Here are all the details:
(I beleive my problem was with setting up Service Principal properly)
1. Access Token: POST
Header
Body
2. Embed Token: POST
Header
Body
3. EmbedReportURL: GET
Anonymous
3 years agoNot applicable
Hello Jamir ,
I had the same issue and adding these headers worked
URL: https://api.powerbi.com/v1.0/myorg/groups/d...c5/reports/da9.....3/GenerateToken
Body:
{
"accessLevel": "View",
"allowSaveAs": "false"
}
If it still doesn't work, click on run it in Embed Token - Reports GenerateTokenInGroup - REST API (Power BI Power BI REST APIs) | Microsoft Learn add your group id, report id and copy paste the URl. It worked!