Forum Discussion

Grasmachien's avatar
Grasmachien
Frequent Visitor
3 years ago
Solved

Export paginated report to file forbidden

Hi, I'm trying to use the "exportToFile" API. However I keep getting back a status 403. I'm embedding a report in a website using the. powerbi-client package. We are using an app registration...
  • AmosHersch's avatar
    AmosHersch
    3 years ago

    When ever you call a Power BI API you need to send an authorization header with a token. It's not specific for this API.

    Otherwise Power BI cannot know who's sending the request, and validate the permissions.