Forum Discussion
403 Forbidden when api call
I am calling "https://api.powerbi.com/v1.0/myorg/groups/{0}/reports/{1}/ExportTo" Api in my mvc application.
HttpWebRequest request = System.Net.HttpWebRequest.CreateHttp(string.Format("https://api.powerbi.com/v1.0/myorg/groups/{0}/reports/{1}/ExportTo", workspaceId,reportId1));
request.KeepAlive = true;
request.Method = "POST";
request.ContentType = "application/json";
streamWriter.Write(json);
}
var response = (HttpWebResponse)request.GetResponse();
Here i was getting access token like this,
Now I got the 403 forbidden error with no text.
Can anyone please help me to understand this why it is giving 403 error.
5 Replies
- Greg_DecklerCommunity Champion
Are you using a Pro account or do you have Premium/Embedded capacity? Somebody else recently was having a similar issue.
You could check the Issues forum here:
https://community.powerbi.com/t5/Issues/idb-p/Issues
And if it is not there, then you could post it.
If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".- AnonymousNot applicable
we are on Power-Bi embedded capacity
- AnonymousNot applicable
Hi Anonymous ,
A 403 Forbidden Error occurs when a web server forbids you from accessing the page or other resource that you're not allowed to access. Please refer the solutions in the following threads and check if it works for your scenario.
https://community.powerbi.com/t5/Report-Server/HTTP-403-Forbidden-error-on-API-call/m-p/843901
Best Regards
Rena