One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
MansoorJafari9
3 years agoNew member | Level 2
get access token from oauth1token and oauth1tokensecret
Hello
I have 2 question.
1-
I want to login in my site with your api and I don't want login in with web page.
I have appkey and appsecrect and I want to get access token with this URL "https://api.dropboxapi.com/2/auth/token/from_oauth1"
but every time I try to get access token. after that I have an error
{ "error": { ".tag": "invalid_oauth1_token_info" }, "error_summary": "invalid_oauth1_token_info/..." }
for this parameters below
{ "oauth1_token": "....", "oauth1_token_secret": "..." }
How can get it?
2-
I have a service that I want to upload multiple file ( about 10000 file and each file about 100 KB) everyday and maybe I want to download and edit multiple files.
I want to know Does your service support this huge requests or maybe you ban my ip?
- ЗдравкоLegendary | Level 20
MansoorJafari9 wrote:...
I have appkey and appsecrect and I want to get access token with this URL "https://api.dropboxapi.com/2/auth/token/from_oauth1"
...
Hi MansoorJafari9,
The access point you are calling is a transitional feature, intended to transform outdated OAuth1 token to OAuth2 token. It's not a good idea to use such a feature in new code! Issuing such type of tokens (OAuth1) is dropped already, in spite existing can still be used (that's what is mentioned feature for). That, what you are using, are application key and application secret, not OAuth1 token and OAuth1 secret!!! 😉 That's why you are getting errors. Use OAuth2 tokens (refresh and access) instead - they are the actual.
Hope this gives direction.
- Greg-DB
Dropbox Staff
1. I see you're trying to call the /2/auth/token/from_oauth1 endpoint. It sounds like this is a new integration, so as Здравко noted, you should not be using that endpoint anyway. This endpoint is only meant for use if you already have pre-existing OAuth 1 access tokens. It should not be used as part of the OAuth 2 app authorization flow.
OAuth 1 access tokens were a feature of an old version of the Dropbox API. If you've only used API v2 and OAuth 2, you wouldn't have any OAuth 1 access tokens. If you don't have pre-existing OAuth 1 access tokens, for instance, if you're just developing the integration now, you should send the user through the normal OAuth 2 app authorization flow.
You can find information on how this works in the OAuth Guide and authorization documentation.2. The Dropbox API does have a rate limiting system that applies to all account types, but we don't have specific rate numbers documented for that, and we cannot increase the limits for any particular app, user, or team. Apps should be written to handle these rate limit responses automatically. Also note that not all responses with a 429 or 503 status code indicate explicit rate limiting, but in any case that you get a response with 429 or 503 status code the best practice is to retry the request, respecting the Retry-After header if given in the response, or using an exponential back-off, if not. I recommend referring to the error documentation and Error Handling Guide for more information. The Performance Guide may also be helpful.
Additionally, there is a specific limit for uploads to some Dropbox Business team plans of "1 billion API calls/month" for "data transport" noted here. This is a limit on the number of upload API calls that can be made per team per month, for certain Dropbox Business team plans only. Note that this only applies to upload calls, and not other types of calls. You can find more information on this limit in the developer documentation here.
If the Dropbox API needs to reject any call(s), it will respond with a relevant error message; it will not just ban your IP address.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,948 PostsLatest Activity: 6 minutes ago
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!