Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ray_codex
Resolver II
Resolver II

Asking for credentials with API

Hi,

I'm trying to get data from an API with a bearer token. Since it is paginated, I'm have the bearer token in my PQ and looping the data page by page. The script worked, only I had to change the endpoint. I can get the data from it with Postman, but if I want to get the data in PBI Desktop it will ask me to "enter credentials". I will pick Anonymous and none for privacy level, since the token is allready in my Power Query. This will give me a failure on credentials all the time. 

I'm not a big fan of API's so I try to avoid it as much a possible, but in this case this in my only option. Can anyone give me some advice how to procede and/or give me an idea what could be the issue?

1 ACCEPTED SOLUTION
ray_codex
Resolver II
Resolver II

all of a sudden it worked. Didn't change anything, I guess there was an issue at their side.

View solution in original post

2 REPLIES 2
ray_codex
Resolver II
Resolver II

all of a sudden it worked. Didn't change anything, I guess there was an issue at their side.

kushanNa
Super User
Super User

Hi @ray_codex 

 

Do you have any documentation related to that API?

 

I remember some time ago, this was the first article that helped me get started with API bearer tokens in Power BI. Just sharing it here — maybe it will help you:


https://community.fabric.microsoft.com/t5/Power-Query/Authenticating-to-the-Sophos-Central-API-with-...

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.