Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
pchui
5 months agoNew member | Level 2
files/search_v2 400 error
I'm new to Dropbox API.
I'm trying to use files/search_v2 API and got a 400 error with a bearer token created by My Apps in my developer console. I'm trying to access files in my Team's folders. I've tried the following:
1. When I use the access token generated by Dropbox API Explorer, that works.
2. When I use the same CURL command by replacing the bearer token generated by My Apps, it's not working and got the HTTP 400 error.
curl -X POST https://api.dropboxapi.com/2/files/search_v2 \
--header "Authorization: Bearer $TOKEN" \
--header 'Content-Type: application/json' \
--data '{"query":"test"}'3. When I use the same bearer token generated by My Apps with another Dropbox API, such as team/get_info, it works.
4. That makes me wonder if I need to include all the read scopes in my app. I tested with all the read scopes in both User and Teams scopes, but (2) still didn't work.
I'm trying to make (2) work with My App. Any clues/tips/guidance are greatly appreciated!
2 Replies
- pchui5 months agoNew member | Level 2
I found the issue.
I have enabled team_data.member scope and it requires Dropbox-API-Select-User in the HTTP header. Since the search API behaves differently compared to the other API when there's an error, I got thrown off by it.
- DB-Des5 months ago
Dropbox Community Moderator
Hi pchui
Thanks for the report! We're investigating this API issue. We'll follow up here once we have an update.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!