Forum Discussion

msullybos's avatar
msullybos
Explorer | Level 3
4 years ago

Dropbox API Explorer Business endpoints fail w/ "Your API app is not allowed to call this function"

I'm logged in as an admin on a Dropbox for Business test accounts. When I use Get Token in the business endpoints of Dropbox API Explorer and then try to use a command, such as team/team_folder/list, I get the errorError: 400

Error in call to API function "team/team_folder/list": Your API app is not allowed to call this function.

Is there something I can do to get Get Token to work with business endpoints, or do I have to get a token created by my app for that purpose? 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    The API Explorer doesn't know which permission is needed for each endpoint, so if you "Get Token" with "App Permission" set to the wrong permission for the current endpoint, you'll get this error when making the call.

     

    For example, /2/team/team_folder/list requires the "Team member file access" permission, so you'd need to switch to that before getting the token.

     

    I'll ask the team to see if we can update the API Explorer to make this easier.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 24 minutes ago
351 Following

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 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!