cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know more about how you can find anything and protect everything? Check it out here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Saving files through Dropbox API

Saving files through Dropbox API

willie0702
Explorer | Level 3

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?

1 Reply 1

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:

 

https://www.dropbox.com/lp/developers/reference/oauth-guide

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?