Skip to main content
POST
/
upload
Upload
import requests

url = "https://platform.reducto.ai/upload"

payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n<string>\r\n-----011000010111000001101001--"
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "multipart/form-data; boundary=---011000010111000001101001"
}

response = requests.post(url, data=payload, headers=headers)

print(response.text)
{
  "file_id": "<string>",
  "presigned_url": "<string>"
}

Authorizations

Authorization
string
header
required

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

Query Parameters

extension
string | null

Body

multipart/form-data
file

Response

Successful Response

file_id
string
required
presigned_url
string | null