Appearance
Email
Description
The email module provides management of email blocks, templates with i18n support, and user email verification.
Events
Following events are transmitted via the websocket.
Fired when a new email block is created. This event requires read access to the resource email.blocks.
| Name | Description |
|---|---|
typestringconstant | Constant value: EMAIL_BLOCK_ADD |
uuidstring | Unique identifier for the block |
namestring | Human-readable name for the block |
contentstring | HTML content of the block |
createdAtinteger | Creation timestamp |
updatedAtintegeroptional | Last update timestamp |
API
EndpointsList Email BlocksGet Email BlockDelete Email BlockList Email TemplatesGet Email TemplateDelete Email TemplateRender Email TemplateGet Email StatusRegister EmailVerify Email
GET
GET
DEL
GET
GET
DEL
GET
GET
POST
POST
List Email Blocks
Returns all email building blocks (headers, footers, buttons, etc.)
GET
/api/v1/email/blocks
Access
This endpoint requires read permission for the resource email.blocks.
Response
| Name | Description |
|---|
Get Email Block
Returns a single email block by UUID
GET
/api/v1/email/blocks/:blockUuid
Access
This endpoint requires read permission for the resource email.blocks.
URL Parameter
| Name | Description |
|---|---|
blockUuidstring | Unique identifier for the block |
Response
| Name | Description |
|---|---|
uuidstring | Unique identifier for the block |
namestring | Human-readable name for the block |
contentstring | HTML content of the block |
createdAtinteger | Creation timestamp |
updatedAtintegeroptional | Last update timestamp |
Delete Email Block
Deletes an email block
DELETE
/api/v1/email/blocks/:blockUuid
Access
This endpoint requires delete permission for the resource email.blocks.
URL Parameter
| Name | Description |
|---|---|
blockUuidstring | Unique identifier for the block |
Response
This endpoint simply returns Status 204 to indicate a successful operation and to save bandwidth.
List Email Templates
Returns all email templates
GET
/api/v1/email/templates
Access
This endpoint requires read permission for the resource email.templates.
Response
| Name | Description |
|---|
Get Email Template
Returns a single email template by UUID
GET
/api/v1/email/templates/:templateUuid
Access
This endpoint requires read permission for the resource email.templates.
URL Parameter
| Name | Description |
|---|---|
templateUuidstring | Unique identifier for the template |
Response
| Name | Description |
|---|---|
uuidstring | Unique identifier for the template |
namestring | Human-readable name for the template |
blocksarray | Aray of block UUIDs referenced in the template |
subjectstring | Email subjec template wih `text:key` and `param` placeholders |
bodystring | Email body HTML with `text:key`, `block:uuid`, and `param` placeholders |
translationsdictionary | Translations keyed by language code, containing text key to string mappings |
parametersarray | List of required parameter names like `code`, `username` |
createdAtinteger | Creation timestamp |
updatedAtintegeroptional | Last update timestamp |
Delete Email Template
Deletes an email template
DELETE
/api/v1/email/templates/:templateUuid
Access
This endpoint requires delete permission for the resource email.templates.
URL Parameter
| Name | Description |
|---|---|
templateUuidstring | Unique identifier for the template |
Response
This endpoint simply returns Status 204 to indicate a successful operation and to save bandwidth.
Render Email Template
Renders an email template with the specified locale and parameters. Replaces block:uuid placeholders with block content and param placeholders with provided values.
GET
/api/v1/email/render/:templateUuid
Access
This endpoint requires read permission for the resource email.templates.
URL Parameter
| Name | Description |
|---|---|
templateUuidstring | Unique identifier for the template |
Query Parameter
| Name | Description |
|---|---|
localestring | Locale code for the translation (e.g., en-GB, de-DE) Pattern: ^[a-z]{2}(-[A-Z]{2})?$ |
Response
| Name | Description |
|---|---|
subjectstring | Rendered subject with parameters replaced |
bodystring | Rendered body with blocks and parameters replaced |
Get Email Status
Returns the current user`s email verification status
GET
/api/v1/email/user
Response
| Name | Description |
|---|---|
statusstringenum | Possible values: unregistered, pending_verification, verified |
emailstringoptional |
Register Email
Registers an email address for the current user and sends a verification code. Can be called again to resend the code if email is not yet verified.
POST
/api/v1/email/register
Request Body
| Name | Description |
|---|---|
emailstring | Email address to register |
Response
This endpoint simply returns Status 204 to indicate a successful operation and to save bandwidth.
Verify Email
Verifies a user`s email using the 6-digit code
POST
/api/v1/email/verify
Request Body
| Name | Description |
|---|---|
codestring | 6-digit verification code |
Response
| Name | Description |
|---|---|
statusstringenum | Possible values: unregistered, pending_verification, verified |
verifiedAtnumberoptional |