Notification Template

Description

A NotificationTemplate represents a reusable message format used by the platform to send communications across various channels (e.g., email, SMS, push). Templates define content, layout, and metadata, and can be configured by staff depending on permissions. These templates are versioned and manageable via API for dynamic communication strategies.

Entity Properties

Note: Property definitions are based on schema references and standard usage. Actual structure should be validated with the schema source:
notificationTemplate.json

NameDescriptionTypeRequired
uidUnique identifier of the NotificationTemplate.stringYes
code_nameInternal identifier for referencing the template programmatically.stringYes
titleHuman-readable title of the template.stringYes
descriptionBrief description of the purpose of the template.stringYes
categoryClassification of the template (e.g., "appointments", "billing").stringYes
configurable_by_staffIndicates whether the template can be edited by staff users.booleanYes
contentThe actual content body of the notification (multi-locale/channel friendly).objectYes

Example

{
  "uid": "notif-001",
  "code_name": "appointment_reminder",
  "title": "Appointment Reminder",
  "description": "Sends a reminder to clients 24 hours before their appointment.",
  "category": "appointments",
  "configurable_by_staff": true,
  "content": {
    "en": {
      "email": {
        "subject": "Reminder: Your appointment is coming up",
        "body": "Hi {{client_name}}, your appointment is scheduled for {{appointment_time}}."
      },
      "sms": {
        "text": "Reminder: Your appointment with {{staff_name}} is at {{appointment_time}}."
      }
    }
  }
}