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.