To upload to the document store requires an upload token. You can use this endpoint to create an upload_token. Upload tokens will expire after a give time so they should only be used right before the upload takes place.