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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
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.