POST
/
uploads
/
presigned-url
{
  "upload_url": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

file_name: Name of the file to upload (e.g. 'file1.txt', 'file2.csv'). content_type: Content type of the file to upload (e.g. 'image/png', 'application/pdf', 'text/plain'). Only images and documents are supported.

Response

200
application/json

Successful Response

upload_url: Presigned URL for uploading a file to the user's files bucket.

Note: Make a PUT presigned URL request to upload the file.