Skip to main content
Upload a file to the room’s R2 object storage.

Endpoint

Authentication

Bearer token required.

Request Body

multipart/form-data with the following fields:
string
required
The room to associate the file with.
string
required
The user uploading the file.
File
required
The file to upload.

Response

UploadResult
The uploaded file’s key and URL. See UploadResult.

Example

Response