latestOpenAPI 3.0.02026-07-135965404.0 KB

a1bd874b5960

Shares

Complete send files

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:

  1. Use the POST /shares endpoint to set up your send, including password, recipients, expiration, etc. You must include upload among the permissions in the accessMode and set the sendingLocalFiles paramter 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.
  2. Use the POST /resources/upload 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-token header
  3. Use the POST /shares/complete-send/{id} 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-token header, not the temporary access token
post/shares/complete-send/{id}

Path parameters

idinteger required

ID of the share to trigger invitations for.

Headers

ev-api-keystring required
Example:exampleaccount-zwSuWUZ8S38h33qPS8v0s

API Key

ev-access-tokenstring required
Example:19853ef63a0bc348024a9e4cfd4a92520d2dfd04e88d8679fb1ed6bc551593d1

Access Token

Response

Successful operation

ShareResponse required— unresolved $ref