Upload one or more files to R2 storage
Upload
Upload one or more files to R2 storage
Accepts up to 10 files as multipart/form-data under the files field. Each file is uploaded to R2 under a per-organization storage key and returned with a freshly generated signed URL.
POST
Upload one or more files to R2 storage
Authorizations
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.
Up to 10 binary files, each ≤50 MB. Field name must be exactly files.
Maximum array length:
10Response
Files uploaded