Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
So I am trying to connect to an API that requires a Bearer token. When I try to simulate in POSTMAN I successfully get the response data I need:
Here you can see the different Headers
But when connecting to PowerBi as "Anonymous" and adding all the Headers I get the error message
The server is up as I am getting a response from POSTMAN. So I don't know what I am doing wrong.
Thanks for your help
Hi @Anderrated ,
Base on your description and screenshots , you are encountering issues when connected to the API in Power BI Desktop. However, you are able to successfully connect to the API using Postman. The '500 Internal Server Error' typically indicates a server-side issue, could you please check and confirm the following info?
In addition, you can refer the following link to connect to API.
Power BI REST API: Step-by-step Guide to Use It
Or create a blank query in Power Query Editor with the following codes:
let
url = "https://example.com/api/endpoint",
headers = [
#"Authorization" = "Bearer YOUR_BEARER_TOKEN",
#"Content-Type" = "application/json"
],
response = Web.Contents(url, [Headers=headers]),
jsonResponse = Json.Document(response)
in
jsonResponse
Best Regards
Hi @Anonymous
Thanks for your reply. I have tried what you mentioned but obtained the same result. Blank query returns the same error message: Internal server error (500). The token is not expired and is the same. Do you have any more ideas?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
7 | |
7 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |