Skip to main content
POST
Create asset upload URL

Authorizations

x-api-key
string
header
required

Unified API key for server-side SDK and API integrations

Body

application/json
filename
string
required
Minimum string length: 1
contentType
enum<string>
required
Available options:
image/jpeg,
image/png,
text/csv,
application/vnd.ms-excel,
application/pdf
size
number
required
Required range: x <= 20971520
assetType
enum<string>
default:content-image
Available options:
content-image,
content-document,
lead-magnet
websiteId
string<uuid>
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

Default Response

success
boolean
required
uploadUrl
string
required
key
string
required
expiresIn
number
required