Forum Discussion
403 forbidden error while trying to call power bi rest api
- Anonymous4 years ago
HI Anonymous,
According to the error message, it seems like permission-related issues.
I'd like to suggest you check the following rest API documents to confirm if you have correctly assigned the permission of these API usages to your account:
Reports - REST API (Power BI Power BI REST APIs) | Microsoft Docs
Regards,Xiaoxin Sheng
This error indicates that the server has determined that you are not allowed access to the thing you've requested, either on purpose or due to a misconfiguration . It's probably because the site owner has limited access to it and you don't have permission to view it. The vast majority of the time, there's not much you can do to fix things on your (*client) end. There are four common causes for 403 Forbidden error (server side) . Here they are listed from most likely to least likely:
- An empty website directory
- No index page
- Incorrect settings in the .htaccess file
- Permission / Ownership error
If authentication credentials were provided in the request, the server considers them insufficient to grant access. The client SHOULD NOT automatically repeat the request with the same credentials. The client MAY repeat the request with new or different credentials. However, a request might be forbidden for reasons unrelated to the credentials.