A restocked product in an arched window on a plinth, a peeling sticker over it and the low-stock note as a short meter.
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 stores and Shopify apps that post a restock alert from an inventory webhook. The meter fills to the first number in stock_note ("Only 12 left" fills 12 %), so a scarce product shows a short bar. Without a photo the arch shows a striped panel with the product's first letter; a long product name shrinks, and the sticker text shrinks inside its square. Wide frames put the plinth on the left and the text on the right; square and vertical frames stand the plinth on top and the text under it.
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 |
|---|---|---|---|
product |
text | Product name, the headline. default: Product name | Studio Wireless Headphones |
label |
text | Sticker text, e.g. Back in stock or Restocked. default: Back in stock | Back in stock |
variant |
text | Colour, size or model, one line, e.g. Midnight Black · Over-ear. | Midnight Black · Over-ear |
price |
text | Price as shown, e.g. $139. | $139 |
stock_note |
text | Low-stock note over the meter, e.g. Only 12 left; its first number sets how full the meter is (0–100). | Only 12 left |
cta_label |
text | Button text, e.g. Grab yours. default: Shop now | Grab yours |
url |
text | Store address next to the logo. | aurora-audio.com |
image |
image URL | Product photo; fills the arch. | https://example.com/images/headphones.jpg |
logo |
image URL | Store logo, square. | https://example.com/images/b07-aurora.png |
accent |
colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. default: #a3e635 | #a3e635 |
theme |
dark | light | Colour scheme: dark or 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": "back-in-stock",
"modifications": {
"product": "Studio Wireless Headphones",
"label": "Back in stock",
"variant": "Midnight Black · Over-ear",
"price": "$139",
"stock_note": "Only 12 left",
"cta_label": "Grab yours",
"url": "aurora-audio.com",
"image": "https://example.com/images/headphones.jpg",
"logo": "https://example.com/images/b07-aurora.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/back-in-stock.png?cta_label=Grab%20yours&label=Back%20in%20stock&price=%24139&product=Studio%20Wireless%20Headphones&stock_note=Only%2012%20left&url=aurora-audio.com&variant=Midnight%20Black%20%C2%B7%20Over-ear&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/back-in-stock/copy" \
-H "Authorization: Bearer sk_live_YOUR_KEY"