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: 

Dynamically create apps

Dynamically create apps

GreenbackBoogie
Explorer | Level 4
Go to solution

Hi!

 

I'm designing an app, where users would potentially make a lot of queries to the Dropbox API (it will make use of very active file-sharing). And this amount of requests by all the users will obviously hit the rate limiting for a single Dropbox app. But it will be fine for a single user though.

 

So I came up with the idea of creating a Dropbox app per user of my app (so each user would work with Dropbox API through their own token).

 

My question is: is there a way of creating API apps (to obtain API tokens) automatically? So each new user of my app will obtain his own Dropbox token (under the hood).

 

Thanks in advance.

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
I see, thanks for clarifying. The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend doing so, for various technical and security reasons.

However if you did want to go this route, instead of kicking off the authorization flow, you would manually use an existing access token for your account and app. (Just be careful not to revoke it, e.g. via https://www.dropbox.com/account/connected_apps .)

Of course, you would be more likely to hit the rate limits. I'll send this along as a feature request for a better way to handle this, or a way to programmatically register API apps, but I'm not aware of any plans to add those right now.

View solution in original post

4 Replies 4

Greg-DB
Dropbox Staff
Go to solution
Dropbox doesn't offer a way to automatically create API apps.

The Dropbox API rate limiting system does work per-app-user though, so using a single app should be fine anyway.

GreenbackBoogie
Explorer | Level 4
Go to solution
Hi, Greg. Yes, it works per-app-user - if a user is authorizing the app. But if the only authorized user is me and I use my own user-token on the back-end (so my app is kind of a "proxy" or "gateway" between end-users and Dropbox), then all the requests will be performed against a single token (mine).

Greg-DB
Dropbox Staff
Go to solution
I see, thanks for clarifying. The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend doing so, for various technical and security reasons.

However if you did want to go this route, instead of kicking off the authorization flow, you would manually use an existing access token for your account and app. (Just be careful not to revoke it, e.g. via https://www.dropbox.com/account/connected_apps .)

Of course, you would be more likely to hit the rate limits. I'll send this along as a feature request for a better way to handle this, or a way to programmatically register API apps, but I'm not aware of any plans to add those right now.

GreenbackBoogie
Explorer | Level 4
Go to solution
Thank's a lot! I hope this feature will arrive some day 🙂
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    GreenbackBoogie Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?