Email Components
Duplicate email component
Changed onCreates a new component with the same description, type and blocks as an existing one. Without a name, the copy is called "<name> (Copy)", or "<name> (Copy 2)" and so on when that name is taken. Duplicating a copy keeps a single "(Copy N)" suffix. The copy is never pinned as a default, so duplicating the default footer gives a regular component.
post/email-components/{componentId}/duplicate
Request
- Base URLhttps://api.sequenzy.com/api/v1
- URLhttps://api.sequenzy.com/api/v1/email-components/{componentId}/duplicate
- AuthHTTP bearer
Path parameters
componentIdstring required
ID of the component to copy.
Request body
Example request
{
"name": "Promo banner (winter)"
}Response
Component copied
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
}
}Changes
- info
added the optional property
////to the response with the status
- info
- info
endpoint added
- info