Skip to main content
POST
Deprecated in favour of init_multipart_upload
Start an upload by POSTing the filename and size to /documents/init_upload. To actually perform the upload it is then necessary to transmit the file to the provided upload_url, with any additional_fields as needed.

Performing the actual upload

A typical upload involves POSTing a sample up to 20GB in size to a provided HTTPS URL. The Content-Type should be multipart/form-data and the additional_fields should be included in the POST body. The workflow using httpie or Python requests is:

Authorizations

X-API-Key
string
header
required

Body

application/json
filename
string
required

The filename of the document to be uploaded, optionally gzipped (and ending in .gz or .gzip). Filenames should only contain alphanumeric characters, dashes, underscores, and periods.

size
integer
required

The size of the file in bytes.

Required range: x >= 1

Response

200 - application/json

OK

additional_fields
Additional Fields · object
required

Additional fields to include in the upload.

document_id
string
required

The document_id of the uploaded document.

upload_url
string
required

The URL to POST the document to.