Skip to main content
POST
Upload media

Authorizations

Authorization
string
header
required

OAuth2 access token obtained via the authorization flow. Include in the Authorization header as: Bearer {access_token}

Body

application/json
url
string<uri>
required

HTTPS URL of the media to upload. Mutually exclusive with data.

data
string

Base64-encoded media content. Mutually exclusive with url. Max 20MB.

filename
string

Optional filename hint for the CDN public ID

Maximum string length: 255
resourceType
enum<string>

Resource type. Auto-detected from URL/content if omitted.

Available options:
image,
video

Response

200 - application/json

Default Response

success
boolean
data
object