Upload
To initiate a file upload you need to execute a POST request against the /libraries/:id/files endpoint.
Two fields are available in the JSON body of the POST request:
name - the name of the file. Required.
folder_id - the id of the parent folder. Omit this field if the file is attached to the root of the library and not to a parent folder.
In the response you will receive a time-limited JWT token (expires in 15 minutes) and a target URL where you can upload the actual file bytes to.
1. Request to retrieve a token for upload and storage server URL
Response (200 OK)
2. Request to finish the upload
The POST request URL is the external_storage_url from the previous request.
You need to put the token from the first request into the Authorization: Bearer header.
The file is sent in a multipart request where the field name is "file".
Response (200 OK)
Last updated