Email Components
Get default email component
Returns the component used as the company default for a slot. A 404 means emails fall back to the generated footer.
get/email-components/defaults/{slot}
Path parameters
slot'footer' required
Response
Default component returned
Example response
{
"success": true,
"component": {
"id": "cmp_123",
"companyId": "company_123",
"name": "Default Footer",
"blocks": [
{
"id": "block_123",
"type": "html",
"content": "<h1>Hello</h1>",
"styles": {
"backgroundColor": "#f8fafc",
"backgroundOpacity": 80,
"textColor": "#111827",
"borderRadius": 12,
"borderColor": "#cbd5e1",
"borderWidth": 1
},
"conditions": [
{
"id": "c1",
"value": "plan:pro"
}
]
}
],
"componentType": "footer",
"defaultSlot": "footer",
"version": 3
}
}