cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 

Dropbox Business API search by file name

7113454 New member | Level 2
New member | Level 2

Hi, I need to search for a file by it name in team directories. At the moment it searches in the personal directory only and I cannot find a solution. Here is my last API request:

curl -X POST "https://api.dropboxapi.com/2/files/search" \
--header "Authorization: Bearer flxOQ8bIfzAAAAAAAAABR_XTx_ESr_token_here" \
--header "Dropbox-API-Select-User: dbmid:AACGPjntA0nzliQDLHp_team_member_id" \
--header 'Content-Type: application/json' \
--data '{"path":"","query":"filename.jpg"}'

2 Replies 2

Re: Dropbox Business API search by file name

7113454 New member | Level 2
New member | Level 2
Finally I have read about the namespaces and playing with "Dropbox-API-Path-Root" header

Re: Dropbox Business API search by file name

Dropboxer
Dropboxer

That's correct, to access the "team space", you should use the "Dropbox-API-Path-Root" header as you mentioned.

For more information on this, please refer to the Namespace Guide:

https://www.dropbox.com/developers/reference/namespace-guide

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?