A paper coupon with a dashed tear line: the offer on one side, the code in a monospace box on the stub.
These are real renders from the API with the example values in the table below. Switch the size above: the same template lays itself out for all 6 sizes — send size or sizes with the request.
For welcome offers, referral codes and newsletter promotions. The card looks like a coupon you could tear off — round notches, a dashed line and scissors — and the code is set in a monospace face so nobody confuses an O with a 0.
Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.
| Field | Type | Description | Example |
|---|---|---|---|
offer |
text | The offer, e.g. 20% off. default: 20% off | 20% off |
title |
text | What the offer applies to, e.g. your first order. | your first order of freshly roasted beans |
code |
text | The coupon code. default: WELCOME20 | BEANS20 |
code_label |
text | Label above the code, e.g. Use code. default: Use code | — |
expires |
text | Expiry line, e.g. Valid until Nov 30. | Valid until Nov 30, 2026 |
brand |
text | Shop name. | Roastery No. 9 |
site |
text | Your domain or a short URL. | roastery9.com |
logo |
image URL | Shop logo, shown next to the shop name. | https://example.com/images/logo-roastery.png |
accent |
colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. default: #7c3aed | #7c3aed |
theme |
dark | light | Colour scheme: dark or light. default: light | — |
Use the slug as template. The response holds the URL of the finished PNG; ?wait=true keeps the connection open until it is ready.
curl -X POST "https://shareglint.com/v1/images?wait=true" \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"template": "coupon-code",
"modifications": {
"offer": "20% off",
"title": "your first order of freshly roasted beans",
"code": "BEANS20",
"expires": "Valid until Nov 30, 2026",
"brand": "Roastery No. 9",
"site": "roastery9.com",
"logo": "https://example.com/images/logo-roastery.png"
}
}'
For static sites, Webflow, Shopify and no-code tools: put the fields in the query string and sign it with your signing secret. The first request renders the image, every later one is a redirect to the cached file. How to compute the signature.
<meta property="og:image" content="https://shareglint.com/i/acc_YOUR_ACCOUNT_ID/coupon-code.png?brand=Roastery%20No.%209&code=BEANS20&expires=Valid%20until%20Nov%2030%2C%202026&offer=20%25%20off&site=roastery9.com&title=your%20first%20order%20of%20freshly%20roasted%20beans&s=YOUR_SIGNATURE">
accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.
curl -X POST "https://shareglint.com/v1/templates/library/coupon-code/copy" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
Blog post
Website page card
Job posting
Event
Podcast episode
Changelog / release
Documentation page
Real estate listing
Product card
Product on sale
Course lesson
Recipe
Newsletter issue
Quote card
Case study / testimonial
GitHub repository
Feature announcement
Profile / author card
Comparison (A vs B)
Stat highlight
New arrival
Price drop
Flash sale
Product rating
Gift card
Menu special
Open house
Book launch
Fundraising goal
Speaker card
Webinar
Community meetup
Countdown
Event ticket
We're hiring (several roles)
Welcome new hire
Certificate of completion
Livestream
Music release
Podcast quote (audiogram)
Star review
Social post
Editorial pull quote
Weekly digest
Listicle
Pros and cons
Before / after
Metrics grid
Bar chart
Milestone celebration
Product roadmap
API endpoint
Code snippet
App store listing
Launch day
Package release
Pricing plans