Messages of Different Protocols
Messages delivered to endpoints using different protocols contain different content.
- Email or HTTP/HTTPS endpoints will receive the message subject, content, and a link to unsubscribe.
- SMS endpoints receive only the message content.
- FunctionGraph (function) messages contain the message attributes, subject, content, and topic URN. Table 1 describes parameters in FunctionGraph (function) messages. The following is an example message:
{ "record": [{ "event_version": "1.0", "smn": { "message_attributes": "", "subject": "Welcome", "message_id": "e6fa59c6b3e0424c9c02cbed35b680e7", "topic_urn": "urn:smn:regionId:66e0f4622d6f4e3fb2db2e495298a61a:smn_123", "type": "notification", "message": "Hello", "timestamp": "2017-08-17T10:07:14Z" }, "event_source": "smn", "event_subscription_urn": "urn:cff:regionId:66e0f4622d6f4e3fb2db2e495298a61a:function:DEFAULT:mytest:latest" }] }Table 1 Parameters in a FunctionGraph (function) message Parameter
Type
Description
record
JSON object
Message list
event_version
String
Version
message_attributes
String
Message attributes
subject
String
Message subject
message_id
String
Message ID
topic_urn
String
Topic URN
type
String
Message type
message
String
Message content
timestamp
String
Timestamp
event_source
String
Message source
event_subscription_urn
String
Subscription URN
- DMS messages contain the message subject, content, and topic URN. Table 2 describes parameters in DMS messages. The following is an example message:
{ "message":[{ "body":"{ "event_version":"1.0", "subject":"test", "event_source":"smn", "event_subscription_urn":"urn:smn:regionId:c5acb70716ec4d489213da33e06b15f6:smn_123:47cff941a17f435ea5f6091d3579664e", "message_id":"174a38fb1ef24724bf8043954b7330c9", "topic_urn":"urn:smn:regionId:c5acb70716ec4d489213da33e06b15f6:smn_123", "type":"notification", "message":"Hello", "timestamp":"2017-10-24T09:37:02Z" }" ]} }Table 2 Parameters in a DMS message Parameter
Type
Description
message
JSON object
Message list
body
String
Message body
event_version
String
Version
subject
String
Message subject
event_source
String
Message source
event_subscription_urn
String
Subscription URN
message_id
String
Message ID
topic_urn
String
Topic URN
type
String
Message type
message
String
Message content
timestamp
String
Timestamp
Last Article: Template Message Format
Next Article: Control on Subscription Confirmation Traffic
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.