Stat card with chart template
A number, its change and a small bar chart. 1200 × 630 px.
Try it
Loading the template…
Fields
| Name | Type | Shows now |
|---|---|---|
label | Text | Monthly revenue |
value | Chart data | (see the template) |
note | Text | Up from last month |
chart | Chart data | (see the template) |
Use it with the API
Press "Use this template". After you sign in, the editor opens a copy in your workspace.
Publish it. Its id replaces
YOUR_TEMPLATE_IDbelow.Send your values:
curl -X POST https://mintrender.com/v1/render \ -H "Authorization: Bearer $MINTRENDER_KEY" \ -H "Content-Type: application/json" \ -d '{ "template": "YOUR_TEMPLATE_ID", "data": { "label": "Monthly revenue", "value": 48250, "note": "Up from last month", "chart": [ 31, 35, 33, 39, 41, 48 ] }, "format": "png"}'Signed link
Put a link like this in an image tag or an og:image tag. Your server signs it with the link key of your workspace. We make the image the first time someone opens the link. How to sign links.
https://img.mintrender.com/YOUR_TEMPLATE_ID/main.png?label=Monthly%20revenue¬e=Up%20from%20last%20month&s=SIGNATUREn8n and Make
Download the n8n workflow: in n8n, paste it on the canvas, then add your API key as a header credential (Authorization: Bearer mr_live_…).
In Make, add the HTTP module "Make a request": method POST, URL https://mintrender.com/v1/render, a header Authorization with Bearer and your key, body type Raw, content type JSON, and this body:
{ "template": "YOUR_TEMPLATE_ID", "data": { "label": "Monthly revenue", "value": 48250, "note": "Up from last month", "chart": [ 31, 35, 33, 39, 41, 48 ] }, "format": "png"}