cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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:Ā 

Dropbox Business API search by file name

Dropbox Business API search by file name

7113454
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

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

Greg-DB
Dropbox Staff

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

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    7113454 New member | Level 2
What do Dropbox user levels mean?