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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ImranAslamSSW
Frequent Visitor

REST API that allows CRUD based operations on its objects.

Hi, 

I have one api and I need to access the data in power bi. From where I can start.

Details as per below

 

To fetch a task with ID 123, you would perform the following
curl -g -X GET -H 'Content-Type: application/json' -H 'Authorization: bearer YourTokenHere' 'https://app.celoxis.com/psa/api/v2/tasks/123'
 
Thanks
1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @ImranAslamSSW 

 

This is a GET request to an API. You can create a blank query in Power Query Editor, open its Advanced Editor then paste below code into it to replace anything there. Save the code and check whether it can return you the correct result. 

let
  url = "https://app.celoxis.com/psa/api/v2/tasks/123",
  headers = [#"Content-Type" = "application/json", #"Authorization" = "bearer YourTokenHere"],
  response = Web.Contents(url, [Headers = headers]),
  jsonResponse = Json.Document(response)
in
  jsonResponse

For the first time, you need to click "Edit Credentials" and select "Anonymous" type. 

vjingzhang_0-1684809397450.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors