Skip to main content
POST

Overview

Gets a presigned URL for uploading files smaller than 5MB directly to S3/R2 storage. This is more efficient than the direct upload endpoint. Upload Flow:
  1. Call this endpoint to get a presigned URL
  2. PUT your file to the presigned URL
  3. Call /s3/entries to register the file in Drime
For files ≥ 5MB, use the multipart upload flow instead.

Request Body

string
required
Original filename
string
required
MIME type of the file
integer
required
File size in bytes
string
required
File extension without dot
integer
Workspace ID. Use 0 for personal workspace.
string
Folder path for auto-creation
integer
Parent folder ID

Response

string
Presigned URL for PUT upload (valid for 1 hour)
string
S3 key (format: uploads/{uuid}/{uuid})
string
Access control (private)
string
Request status (success)