Our Community is in read-only mode until April 8th, learn more here. You can still search existing threads or get help via Dropbox Support, the Dropbox Help Center, or Learn.
Forum Discussion
Lakshmi
9 years agoNew member | Level 2
How to get metadata for files and folders in Dropbox REST API v2
curl -X GET https://api.dropboxapi.com/1/metadata/auto --header "Authorization: Bearer <access token redacted>"
The above endpoint will be used for get metadata in dropbox v1 API.
How to get...
Greg-DB
Dropbox Community Moderator
9 years agoIn Dropbox API v2, you can get the metadata for an item using /files/get_metadata. You can list the files and folders under a particular path using /files/list_folder and /files/list_folder/continue.
By the way, I redacted it from your post, but for the sake of security, you should disable that access token that you posted. You can do so by revoking access to the app entirely, if the access token is for your account, here:
https://www.dropbox.com/account/security
Or, you can disable just this access token using the API:
v1: https://www.dropbox.com/developers/core/docs#disable-token
v2: https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!