Skip to content

Power BI Embed Token

Prerequisites

  1. a Power BI Embedded capacity

  2. ...that is running

Flows

This is a special feature implemented by the Power BI API.

It is used when following the "App Owns Data" paradigm.

It works like this:

  1. authenticate with the API using OAuth

  2. get a specific dataset, e.g. by calling
    https://api.powerbi.com/v1.0/myorg/groups/81b01d0d-2322-4307-9aa1-a629f14e4beb/reports/da0c49ed-c98c-4c89-991c-1fef6805609f

  3. in the reply, parse the embedURL

  4. generate an embed Token, e.g. by calling
    https://api.powerbi.com/v1.0/myorg/groups/81b01d0d-2322-4307-9aa1-a629f14e4beb/reports/da0c49ed-c98c-4c89-991c-1fef6805609f/GenerateToken

  5. get the dataset data by using the embedURL and the embed token

power-bi-embed-token.png