Skip to main content
POST
Upload one or more files to R2 storage

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data

Multipart form. Send each file as a separate files part. Example with curl: curl -F "files=@invoice.pdf" -F "files=@receipt.png" -H "Authorization: Bearer $TOKEN" /api/upload.

files
file[]
required

Up to 10 binary files, each ≤50 MB. Field name must be exactly files.

Maximum array length: 10

Response

Files uploaded

files
object[]
required