Sale or offer template
Big discount, short headline, a code and an end date. For sales, coupons and limited-time offers.
Sizes
link1200×630square1080×1080portrait1080×1350story1080×1920
Ways to make it
- An HTTP request from n8n, Make, Zapier or your code (API)
- A signed image URL, for Open Graph tags and email (signed URLs)
- A CSV file or Google Sheet, many images at once (bulk)
Fields
| Field | Type | Limit | Notes |
|---|---|---|---|
discountrequired | text | 12 characters | Discount. Shown huge, e.g. "30% OFF" or "BOGO" |
headlinerequired | text | 80 characters | Headline |
details | text | 140 characters | Details |
code | text | 24 characters | Code. Shown as "Code: …" |
ends | text | 40 characters | End date text. e.g. "Ends Sunday" |
cta | text | 28 characters | Button text. Default: Shop the sale |
brand_name | text | 40 characters | Brand name. Your business name. brand=default fills it from your brand kit. |
logo_url | image (https URL or sample:) | — | Logo. Square PNG or JPEG works best. https URL, a built-in sample, or your brand kit logo with brand=default. |
brand_color | colour #RRGGBB | — | Brand colour. Default: #D7263D |
font | inter / fraunces / grotesk / mono | — | Headline font. inter (clean sans), fraunces (serif), grotesk (bold sans), mono (typewriter). Default: grotesk |
Request for the image above
curl https://postimager.com/v1/renders?wait=20 \
-H "Authorization: Bearer $POSTIMAGER_KEY" \
-H "Content-Type: application/json" \
-d '{
"template": "sale-offer",
"size": "square",
"format": "png",
"variables": {
"brand_color": "#D7263D",
"font": "grotesk",
"brand_name": "Kiln & Clay",
"discount": "30% OFF",
"headline": "The winter studio sale",
"details": "Every mug, bowl and planter. In store and online.",
"code": "WINTER30",
"ends": "Ends Sunday",
"cta": "Shop the sale"
}
}'