Skip to main content
POST
Upload Media

Authorizations

x-api-key
string
header
required

Body

multipart/form-data
file
file
required

The media file to upload.

folderId
string
required

The ID of the folder to upload the file into. Required.

Example:

"fol_987654321"

transform
string

JSON string representing initial transforms to apply (e.g. {"width": 1200, "format": "webp"}).

Response

Media uploaded successfully

id
string
Example:

"med_123456789"

url
string
Example:

"https://cdn.dreep.cloud/med_123456789/hero.jpg"

size
integer
Example:

245000

format
string
Example:

"jpeg"