The NotificationTemplate Object

Metadata definition for notification templates and delivery settings.

Properties

NameDescriptionTypeRequired
uidUnique identifier for the entity instance.stringYes
code_nameUnique identifier name for the notificationstringYes
titleThe display name of the notification template that appears in the staff portal notification settings. This is what users see when browsing available notification options (e.g., "Payment Received Notification").ref to localizedTextListYes
descriptionA brief explanation that appears in the staff portal notification settings to help them understand what this notification is for and when it will be triggered.ref to localizedTextListYes
categoryThe functional category this notification belongs to (e.g., "payments", "booking", "documents").string (enum: payments, clients, calendar, booking, marketing, teamchat, scheduling, advertising, group_events, documents, messages, reviews, social, account)Yes
configurable_by_staffBoolean flag that determines whether staff members can customize or modify this notification template through the staff portal.booleanYes
delivery_channelList of delivery channels for the notification.array of stringsYes
trigger_typeType of trigger for the notification.string (enum: system, client)Yes
contentNotification content for 'email' and/or 'staff_portal'.objectYes
created_atISO8601 timestamp of when the entity was created.stringYes
updated_atISO8601 timestamp of the last update to the entity.stringYes

Content Properties

NameDescriptionTypeRequired
staff_portalobject
emailobject

Example

JSON

{
  "uid": "notif-001",
  "code_name": "welcome_new_user",
  "title": [
    {
      "locale": "en",
      "value": "Welcome Notification"
    },
    {
      "locale": "fr",
      "value": "Notification de bienvenue"
    },
    {
      "locale": "de",
      "value": "Willkommensbenachrichtigung"
    }
  ],
  "description": [
    {
      "locale": "en",
      "value": "Sent to new users upon registration."
    },
    {
      "locale": "fr",
      "value": "Envoyé aux nouveaux utilisateurs lors de l'inscription."
    },
    {
      "locale": "es",
      "value": "Enviado a los nuevos usuarios al registrarse."
    }
  ],
  "category": "account",
  "configurable_by_staff": true,
  "delivery_channel": [
    "push",
    "email"
  ],
  "trigger_type": "system",
  "content": {
    "staff_portal": {
      "title": [
        {
          "locale": "en",
          "value": "Welcome!"
        },
        {
          "locale": "fr",
          "value": "Bienvenue!"
        },
        {
          "locale": "es",
          "value": "¡Bienvenido!"
        }
      ],
      "message_body": [
        {
          "locale": "en",
          "value": "Thanks for joining us!"
        },
        {
          "locale": "fr",
          "value": "Merci de nous avoir rejoints!"
        }
      ],
      "deep_link": "https://example.com/welcome"
    },
    "email": {
      "subject": [
        {
          "locale": "en",
          "value": "Welcome to Our Service"
        },
        {
          "locale": "fr",
          "value": "Bienvenue à notre service"
        },
        {
          "locale": "de",
          "value": "Willkommen bei unserem Service"
        }
      ],
      "top_image": {
        "url": "https://example.com/banner.png",
        "width": 600,
        "alt": [
          {
            "locale": "en",
            "value": "Welcome banner"
          },
          {
            "locale": "fr",
            "value": "Bannière de bienvenue"
          }
        ]
      },
      "main_title": [
        {
          "locale": "en",
          "value": "Hello and Welcome!"
        },
        {
          "locale": "fr",
          "value": "Bonjour et bienvenue!"
        }
      ],
      "main_text": [
        {
          "locale": "en",
          "value": "We're excited to have you on board."
        },
        {
          "locale": "es",
          "value": "Estamos emocionados de tenerte con nosotros."
        }
      ],
      "middle_image": {
        "url": "https://example.com/mid.png",
        "width": 400,
        "alt": [
          {
            "locale": "en",
            "value": "Mid section image"
          },
          {
            "locale": "es",
            "value": "Imagen de la sección media"
          }
        ]
      },
      "middle_text": [
        {
          "locale": "en",
          "value": "Here are some tips to get started."
        },
        {
          "locale": "fr",
          "value": "Voici quelques conseils pour commencer."
        }
      ],
      "footer_text": [
        {
          "locale": "en",
          "value": "Best regards, The Team"
        },
        {
          "locale": "de",
          "value": "Mit freundlichen Grüßen, Das Team"
        }
      ],
      "primary_cta_button": {
        "text": [
          {
            "locale": "en",
            "value": "Get Started"
          },
          {
            "locale": "fr",
            "value": "Commencer"
          }
        ],
        "url": "https://example.com/start",
        "alt": [
          {
            "locale": "en",
            "value": "Start now"
          },
          {
            "locale": "fr",
            "value": "Commencez maintenant"
          }
        ]
      },
      "secondary_cta_button": {
        "text": [
          {
            "locale": "en",
            "value": "Contact Support"
          },
          {
            "locale": "es",
            "value": "Contactar Soporte"
          }
        ],
        "url": "https://example.com/support",
        "alt": [
          {
            "locale": "en",
            "value": "Support"
          },
          {
            "locale": "es",
            "value": "Soporte"
          }
        ]
      }
    }
  },
  "created_at": "2024-06-01T12:00:00Z",
  "updated_at": "2024-06-01T12:00:00Z"
}