To upload files via your command line or within your application, we suggest using CURL:

Guest uploads
$ curl -F [email protected]-to-file

User uploads with auth_key
$ curl -F [email protected]-to-file -F user_id=xxx -F auth_key=xxx

On success, you will receive the JSON response such as:
{"status":true,"id":7405701,"url":"https:\/\/\/hx34gam9","destination":"https:\/\/\/hx34gam9","name":"march.pdf","filename":"hx34gam9-march.pdf","slug":"hx34gam9","size":"141.5 KB","type":"pdf","expiry":"∞","location":4}

To upload files to your account you'll need an auth_key, which is available on our Business plan
Was this article helpful?
Thank you!