Showing results for 
Show  only  | Search instead for 
Did you mean: 
Are you interested in learning how media industry leaders use Dropbox Replay? Register for our webinar here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

Retrieve NamespaceId from FileId

Retrieve NamespaceId from FileId

New member | Level 2

Our Dropbox integration currently works as follows:

  1. User opens the DropboxPicker from our webpage
  2. User selects a number of files or folders
  3. Identifiers for the selected items are sent to our service (these are currently in the form of their IDs)
  4. Our service uses the Dropbox .NET SDK to resolve the IDs and perform some action on behalf of the user with the given files. This operation requires the Metadata for each selected item.

My current issues:

  1. The DropboxPicker does not give us any path related information for displaying the picked file. This means we can show no accurate representation of its location without integrating the Dropbox client into our frontend to retrieve that data (or round trip to our service once it has been resolved).  The picker clearly has the Metadata for the item - why can't we return that entire payload?
  2. If a user is part of a Team, there does not appear to be any way to take a file ID and figure out what namespace it belongs to. This means that the only way for me to use the ID to retrieve the Metadata for the file is to first try with the default namespace (user home) and then fallback to the Root namespace in the case of failure.  This is messy and inefficient so I'm hoping that this is just me misunderstanding how these unique item identifiers can be used to retrieve the associated metadata.




1 Reply 1

Dropbox Staff

Thanks for writing this up!


1. The Dropbox Chooser doesn't offer a way to get the full metadata, such as the path, like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.


2. Unfortunately the Dropbox Chooser wasn't originally really built to work with the API like this, so it doesn't return namespace/root information that would be useful when handing off to an API integration. So, I'm afraid I don't have a good solution to offer here. I'll likewise pass this along as a request to offer a better option, but again I can't promise if/when that might be done.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?