POST /v1.0/myorg/GenerateToken
Generate Token
Generates an embed token for multiple reports, datasets and target workspaces. Reports and datasets do not have to be related. The binding of a report to a dataset can be done during embedding. Target workspaces are workspaces where creation of reports is allowed.
This API is relevant only to 'App owns data' embed scenario.
Required scope:
- Content.Create - required only if a target workspace is specified in GenerateTokenRequestV2
- Report.ReadWrite.All or Report.Read.All - required only if a report is specified in GenerateTokenRequestV2
- Report.ReadWrite.All - required if allowEdit flag is specified for at least one report in GenerateTokenRequestV2
- Dataset.ReadWrite.All or Dataset.Read.All
Restrictions
- All the reports and datasets must reside in workspace V2. All the target workpaces must be workspace V2.
- Maximum number of reports, datasets and target workspaces is 50 each.
- Generating Embed Token with RLS may not work for AS Azure or AS OnPrem live connection reports for several minutes after a Rebind.
Servers
- https://api.powerbi.com
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
datasets |
String | No | |
targetWorkspaces |
String | No | |
reports |
String | No | |
identities |
String | No |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.