API v1.0
Upload File Presigned Url
Returns a presigned url for uploading a file to the user’s files bucket.
After uploading a file, the user can use the included_file_names
field
in the RunTaskRequest
to include the files in the task.
POST
Authorizations
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.