Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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"}'
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
Hi there!
If you need more help you can view your support options (expected response time for a 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!