Skip to main content
POST
Prepare an image upload

Authorizations

Authorization
string
header
required

Your account's secret key: Authorization: Bearer sk_test_… or sk_live_…. Server-side only.

Body

application/json
contentType
enum<string>
required

Image type: image/png, image/jpeg or image/webp.

Available options:
image/png,
image/jpeg,
image/webp
sizeBytes
integer<int64>
required

File size in bytes, up to 2 MB.

Response

The upload address and the objectKey.

uploadUrl
string<uri>
required
objectKey
string
required
expiresAt
string<date-time>
required