Get transactional email
Changed onGets details of a transactional email template by ID or slug, including linked body content and available template variables.
Request
- Base URLhttps://api.sequenzy.com/api/v1
- URLhttps://api.sequenzy.com/api/v1/transactional/{idOrSlug}
- AuthHTTP bearer
Path parameters
Transactional email ID or slug
Response
Successful response
Example response
{
"success": true,
"transactional": {
"labels": [
"Billing",
"Receipts"
],
"id": "tx_abc123",
"name": "Welcome Email",
"slug": "welcome-email",
"emailId": "email_123",
"enabled": true,
"managedBy": "dashboard",
"variables": [
"NAME",
"COMPANY",
"PRODUCT"
],
"subject": "Welcome, {{NAME}}",
"previewText": "Your account is ready.",
"emailPreset": "branded",
"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"
}
]
}
],
"email": {
"id": "email_123",
"companyId": "company_123",
"name": "Welcome email",
"subject": "Welcome",
"previewText": "Here's what to do next",
"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"
}
]
}
]
}
}
}Changes
- info
added the optional property
/////to the response with the status - info
added the optional property
//////////to the response with the status
- info
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
/////////to the response with the status
- info