2025 sparked some incredible conversations across our community 👩💻. Discover the highlights and see what’s ahead in 2026.
Forum Discussion
ftenario
7 years agoNew member | Level 2
Fetching File
I have list the folder and got this:
{
".tag": "file",
"name": "sample3.wav",
"path_lower": "/sample3.wav",
"path_display": "/sample3.wav",
"id": "id:YZ5OBevdROAAAAAAAAAAGA",
"client_modified": "2018-04-26T16:35:00Z",
"server_modified": "2018-04-30T23:52:25Z",
"rev": "3b38bd3b0",
....
"},
However when I fetch the file using this:
curl -X POST https://api.dropboxapi.com/2/file_requests/get -H "Authorization: Bearer <REDACTED>" -H "Content-Type: application/json" --data "{\"id\": \"YZ5OBevdROAAAAAAAAAAGA\"}"
I got this error:
{"error_summary": "not_found/..", "error": {".tag": "not_found"}}
2 Replies
- ftenario7 years agoNew member | Level 2
Nevermind. I'm looking it the wrong way
- Greg-DB7 years ago
Dropbox Community Moderator
It sounds like you already sorted this out, but for anyone else with the same question, the issue here is that the metadata is for a file, but the /2/file_requests/get endpoint is for returning the information about a 'file request'.
To get the metadata for a file itself, one would instead use /2/files/get_metadata, or to get the file data, /2/files/download.
ftenario By the way, I redacted it from your post, but for the sake of security, you should disable that access token that you posted originally. You can do so by revoking access to the app entirely, if the access token is for your account, here. Or, you can disable just this access token using the API.
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!