We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
rajas
9 years agoNew member | Level 2
From Where I can get the File ID
I am trying to download a file using rest service using V2 API. curl -X POST https://api.dropboxapi.com/2/file_requests/get \
--header "Authorization: Bearer <Access Token>" \
--header ...
Greg-DB
Dropbox Community Moderator
9 years agoYou can get the ID for a file or folder from the Metadata object for the file or folder, e.g., as returned by /2/files/get_metadata or /2/files/list_folder.
If you want to download a file though, you should use /2/files/download (not /2/file_requests/get). For /2/files/download you can supply either the path or ID of the file you want to download. (The /2/file_requests/get endpoint is for getting the information about a file request, not a file, by specifying the ID for the file request.)
rajas
9 years agoNew member | Level 2
Thanks Greg.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!