One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
aaqrabaw
8 years agoNew member | Level 2
how to know my doc path in dropbox so i can call list_rev API URL
how to know my doc path in dropbox ? so i can call `https://api.dropboxapi.com/2/files/list_revisions`
my json body for the request is :
{
"path": "/root/",
"mode": "path",
"limit": 10
}
what i'm trying to do is to list all rev for all doc im my Dropbox , but i'm getting `"error_summary": "path/malformed_path/",`
i found the solution , i can get paper rev from :
URL :
URL : https://api.dropboxapi.com/2/paper/docs/get_metadata
data : {
"doc_id": "<doc id>"
}
- aaqrabawNew member | Level 2
i found the solution , i can get paper rev from :
URL :
URL : https://api.dropboxapi.com/2/paper/docs/get_metadata
data : {
"doc_id": "<doc id>"
}- Greg-DB
Dropbox Staff
[Cross-linking for reference: https://stackoverflow.com/questions/48367992/how-to-know-my-doc-path-in-dropbox-so-i-can-call-list-rev-api-url ]
The /2/files/list_revisions endpoint accepts a file path or ID, and returns the file revisions for that specified file. To get the file path/ID, you can get file metadata via a number of other endpoints, e.g., /2/files/list_folder[/continue], or /2/files/get_metadata. You should use the `id` or `path_lower` value from the returned FileMetadata object(s).
For example, to list every file/folder in the root of the account, you would use /2/files/list_folder[/continue] with path "" (empty string) to identify the root.
Note that files and Paper documents are separate. You can't use /2/files/list_revisions for Paper documents.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,948 PostsLatest Activity: 23 minutes ago
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 or Facebook.
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!