Skip to content
UseWait Docs
Esc
navigateopen⌘Jpreview
On this page

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.

Open Graph images

ogImage only accepts a raster image: PNG, JPG, WEBP or GIF, at 1200x630. SVG uploads are allowed and work fine inside page code, but they are rejected as an ogImage because X, Facebook, LinkedIn, Slack and Discord cannot rasterize an SVG and render no preview card at all.

If you are an agent and cannot produce a raster image, ask the user to generate one at ogimagen.com and paste the URL back to you, rather than leaving the waitlist with no preview image.

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).

Was this page helpful?