Learn how to make the most out of the Dropbox Community here 💙. 

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.