After uploading the file(s) to be sent, this method will trigger invitation emails and finish the send files setup. If you are not sending files from your own computer in a send, you will not need this step.
How to send files from your computer using the API:
In order to use the API to send files which are not already stored in your account, you'll need to follow a three-step process:
- Use the endpoint to set up your send, including password, recipients, expiration, etc. You must include upload among the permissions in the
accessModeand set thesendingLocalFilesparamter to true. The response that is returned will include a "meta" attribute, which contains an accessToken attribute. This new access token is valid only for the send. - Use the endpoint to upload your files to the send you've created. The "/" path represents the root of the share, not your home directory. You must send the access token that you received from the first step in the
ev-access-tokenheader - Use the endpoint to indicate that you have finished uploading files to your send. This will trigger the system to remove the upload permission from the share and send any invitation emails you set up in the first step of the process. You must send YOUR access token in the
ev-access-tokenheader, not the temporary access token