POST
/
upload
Upload
import requests

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

files = { "file": "open('example-file.txt', 'rb')" }
headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, files=files, headers=headers)

print(response.json())
{
  "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

Response

200
application/json

Successful Response

The response is of type object.