cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

From Where I can get the File ID

From Where I can get the File ID

rajas
New member | Level 2

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 "Content-Type: application/json" \
    --data "{\"id\": \"oaCAVmEyrqYnkZX9955Y\"}"

Where I can get the file id?

 

Thanks in advance.

2 Replies 2

Re: From Where I can get the File ID

Greg-DB
Dropboxer

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

Re: From Where I can get the File ID

rajas
New member | Level 2

Thanks Greg.

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    rajas New member | Level 2
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?