Dropbox API Listing a folder Listing the root folder via curl

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

This lists the root folder, which is identified by the empty string "" for Dropbox API v2, using curl, using /files/list_folder:

curl -X POST https://api.dropboxapi.com/2/files/list_folder \
    --header "Authorization: Bearer <ACCESS_TOKEN>" \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"\"}"

<ACCESS_TOKEN> should be replaced with the OAuth 2 access token.

Note that the response may contain has_more=true, in which case your app should call back to /files/list_folder/continue to continue getting more entries.



Got any Dropbox API Question?