Objects
Template
A newsletter's theme and its blocks, in order.
{
"version": 1,
"theme": {
"logo": null,
"colors": { "brand": "#1467C2", "text": "#0A0A0A", "background": "#FFFFFF" },
"fonts": { "headings": "geist", "text": "geist" }
},
"blocks": [
{ "id": "a1b2c3d4e5", "type": "header", "title": "Weekly Market Radar", "layout": "left",
"show": { "logo": true, "title": true, "issue": true, "date": true } },
{ "id": "f6g7h8i9j0", "type": "radar", "kind": "news", "radar_ids": [37], "title": "Competitors",
"max": 5, "order": "sources", "format": "expanded",
"show": { "logo": true, "summary": true, "filter": true, "sources": true, "date": true },
"leave_out_sent": true, "when_empty": "hide" },
{ "id": "k1l2m3n4o5", "type": "footer", "layout": "simple", "text": "Acme SAS", "view_in_browser": true }
]
}| Block | Its fields |
|---|---|
header | title, layout (left, centred, banner), show (logo, title, issue, date). One, always first |
radar | kind (news or tenders, set by its radars), radar_ids, title, max (1 to 20), order (a news block's sources, newest, by_filter, by_company; a tender block's closing, newest), format (compact, expanded), show (logo, each signal's company: its logo and its name; summary, filter, sources, date), leave_out_sent, when_empty (hide, say) |
rates | radar_ids (exchange rate radars, their pairs and interest rates), title, show (name) |
prices | radar_ids (commodity price radars), title, show (unit) |
heading | text, size (large, normal, small), align (left, centred) |
text | doc: paragraphs and lists of runs, each run text with bold, italic or href; size, align |
divider | space (large, normal, small) |
footer | layout (simple, centred, brand), text, view_in_browser. One, always last |
A template changes one block at a time: see The template.