One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
willie0702
5 years agoExplorer | Level 3
Saving files through Dropbox API
Is it possible to save files automatically without any user interaction through the Dropbox API? I have a server that generates files that need to be saved on Dropbox. If I don't have the Dropbox app installed on the server, can I make an API call and save the files to a specific directory on Dropbox? If so, how do I do this?
- Greg-DB
Dropbox Staff
Dropbox does offer an API you can use for listing, uploading, and downloading files, among other operations, to/from Dropbox, without having the official Dropbox app installed. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here:
https://www.dropbox.com/developers
For example, to upload a file to Dropbox, you can use the /2/files/upload endpoint:
https://www.dropbox.com/developers/documentation/http/documentation#files-upload
That's a link to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:
https://www.dropbox.com/developers/documentation
Those have corresponding native methods for the HTTPS endpoints.
You do need to have the user manually authorize the app initially, but once they do, you can store and re-use the resulting access token/refresh token for further API calls without more manual user interaction. You can find information on how that works in the OAuth Guide:
About Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 3 days 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!