v4
OpenAPI 3.1.02026-07-3163216290.7 KBUploads
Create an upload
Request a pre-signed URL to upload an image asset. Upload the file with an HTTP PUT to the returned presignedUrl (sending the same Content-Type and Content-Length), then call /uploads/{emailAssetId}/complete to finalize the asset.
post/v1/uploads
Request body
Example request
{
"contentType": "image/png",
"contentLength": 102400
}Response
Pre-signed upload URL created.
Example response
{
"emailAssetId": "cla3s5s7e9t1i3d5f7g9h1j3",
"presignedUrl": "https://loops-assets.s3.amazonaws.com/uploads/cla3s5s7e9t1i3d5f7g9h1j3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=..."
}