• Simple Message Notification

smn
  1. Help Center
  2. Simple Message Notification
  3. User Guide
  4. Appendix
  5. Template Message Format

Template Message Format

Message templates are used to publish messages with fixed content and use variables as placeholders to represent content that you can change.

The size of template content cannot exceed 256 KB. The following is an example of how to format a template when you manually type the template message content:

"message_template_name":"confirm_message",
"tags":{
    "topic_urn":"urn:smn:regionId:xxxx:SMN_01"
     }

Parameter

Description

message_template_name

Template name, which cannot be left blank. You can query the template name in the template list. You must create a template of the default protocol so that SMN can send messages using the default template once it fails to match a specified protocol.

tags

Variables in the template, which are presented as JSON mappings. You can create templates for different protocols using the same template name and configure different variables in each template.