Assets
Upload images to the UseWait CDN and use them in pages and emails.
Upload logos, backgrounds, and Open Graph images to the UseWait CDN. The returned public URL can be used in ogImage, inside page code, or in email templates.
Upload
curl -X POST https://usewait.com/api/v1/assets \
-H "Authorization: Bearer uw_live_YOUR_KEY" \
-F "file=@logo.png"curl -X POST https://usewait.com/api/v1/assets \
-H "Authorization: Bearer uw_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"data": "<base64-encoded bytes>",
"contentType": "image/png",
"fileName": "logo.png"
}'{
"asset": {
"url": "https://cdn.usewait.com/<account>/<id>.png",
"fileName": "logo.png",
"contentType": "image/png",
"bytes": 48213
}
}
Limits
- Max size: 5 MB per file.
- Allowed types:
image/jpeg,image/png,image/gif,image/webp,image/svg+xml. - Uploads count against the standard rate limit (120 requests per minute).