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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
jprice0401
New Member

How to bring data from a Rest API into Powebi including authentication Token

Hi there,

 

I am wondering if someone can help me connect PowerBI to the following REST API.

 

Directions on how to connect to the API are in the following link: https://dev.praemium.com/

 

However, I am not sure exactly how to enter the details into PowerBI.

 

Many thanks

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @jprice0401 

rajulshah's solution should work,

Please enter the query in the Advanced editor of Edit quesris(Power Query).

 

Besides, there are some references:

https://docs.microsoft.com/en-us/power-query/handlingauthentication

https://community.powerbi.com/t5/Power-Query/Dataset-Refresh-REST-API-amp-JSON-with-required-Param-i...

If there is still any problem, feel free to let us know.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

rajulshah
Resident Rockstar
Resident Rockstar

Hello @jprice0401,

 

Please try following:

 

let
      Source = Web.Contents("http://{URL as provided}/Portfolios HTTP/1.1", 
                            [Headers=[#"content-type"="application/json",#"x-pps-token"="YOUR-TOKEN-GOES-HERE",#"x-pps-api-version"="THE-API-VERSION"]]),
     JsonProductResponse = Json.Document(Source ,1252)
  in
     JsonProductResponse

 

Hope this helps.

Hi there thank you for your help.

 

I am still unsure where the body of the call would go in this solution i.e. the Portfolio ID and Username as in the link provided.

 

Thanks

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors