Forum Discussion

innocence84's avatar
innocence84
Helper I
3 years ago

Generating Authorization: Bearer token for calling Power BI Rest API

Hi,

 

When I  called a Power BI Rest API via the try it page in the web site (https://learn.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-datasets-as-admin ),
Microsoft is generating a token that starts with: 

Authorization: Bearer ey...

 I need to call Power BI Rest APIs from a dataset/dataflow. For that reason I need to generate Authorization: Bearer token. 
Which API should I call for generating this token?

Thanks

 

2 Replies