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
NathanMoyle
Regular Visitor

Can't connect to API that uses POST (Dropbox)

Hi, I am trying to connect to the dropbox API but keep getting a 404 error. The documentation gives me this example, whcih works well in command promt:

curl -X POST https://api.dropboxapi.com/2/team_log/get_events \
    --header "Authorization: Bearer <Hidden access token>" \
    --header "Content-Type: application/json" \
    --data "{\"limit\": 50,\"category\": \"groups\"}"

I then tried making this work in power query with the following code:

 

 

 

let
  access = "Bearer <Hidden Access Token>",
  Source = Json.Document(Web.Contents("https://api.dropboxapi.com/2/team_log/get_events",[Query=[limit="50"],Headers=[#"Content-Type"="application/json",Authorization=access]]))
in
  Source

 

 

 

 I think the problem is that the API used POST but Web.Contents defaults to GET. I couldnt find any helpful information anywhere to tell me how to use POST

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @NathanMoyle ,

Please review the content in the following links and hope they can help you resolve the problem.

Connecting to data source hosted on Dropbox (check message 23 from @masplin)

Power BI service and Dropbox

Import multiple files from Dropbox folder into PowerBI and Excel (via PowerQuery) at once

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @NathanMoyle ,

Please review the content in the following links and hope they can help you resolve the problem.

Connecting to data source hosted on Dropbox (check message 23 from @masplin)

Power BI service and Dropbox

Import multiple files from Dropbox folder into PowerBI and Excel (via PowerQuery) at once

Best Regards

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.