v93

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01218121759.7 KB
Media

Create email image upload URL

Returns an authenticated API URL for a block-ready email image. PUT the exact bytes to uploadUrl using the same API credentials, then register the key with POST /media/complete-upload. The public object does not exist until its bytes pass server-side validation.

post/media/upload-url

Request body

filenamestring required
contentTypestring required
fileSizeBytesinteger required

Example request

{
  "contentType": "image/png"
}

Response

Upload URL created

successboolean
uploadUrlstring
publicUrlstring
keystring
fileNamestring