CTRLK

Shared components

Event format assignment

|

View as Markdown

Event format assignment defines how inbound messages are structured and delivered to your webhook.

Each subscription automatically receives a default format, which is channel-specific to ensure consistent processing. If the default format does not meet your requirements, you can select another supported format for available channels. This allows you to control the payload structure that is sent to your webhook.


Default formats by channel

Each subscription automatically assigns a default format for handling inbound messages. These formats are channel-specific to ensure consistent processing of inbound messages.

Supported channels use the following predefined JSON-based formats to structure and process inbound messages:

ChannelFormatFormat payload
Apple Messages for BusinessMO_OTT_CONTACTReceive incoming AMB messages
Facebook MessengerMO_OTT_MSISDNReceive incoming Messenger messages
LINEMO_OTT_MSISDNNot available
MMSMO_MMS_2Receive inbound MMS messages
RCSMO_OTT_MSISDNReceive incoming RCS messages
SMSMO_JSON_2Receive inbound SMS messages
TikTokMO_OTT_MSISDNReceive TikTok inbound message
Viber Business MessagesMO_OTT_MSISDNReceive inbound Viber messages
WhatsAppMO_OTT_CONTACTReceive inbound WhatsApp messages
ZaloMO_OTT_MSISDNReceive incoming Zalo messages


Selectable event formats

Early access

Use event formats to choose the payload in which you want to receive events to your webhook.

Event formats are currently available for selection for Apple Messages for Business, Facebook Messenger, MMS, SMS, Open Channel, Blocklist, and Mobile Identity events. If you need to change the format for other channels or events, contact Support.

You can choose between two options:

  • Static formats: Fixed payload schema that corresponds to a specific API version (for example, SMS API v3 or MMS API v1). All events of that type are delivered in the selected schema, regardless of how the original message was sent.
  • Adaptive subscription format: Dynamic schema where the system delivers the payload that matches the API you used to send the original message.

Select the categories below to see which formats are available for selection.



Apple Messages for Business
EventFormat nameFormat payload
Deliveryadaptive.subscription.formatPayload is picked based on the API used in your submission
delivery.apple-messages-for-business.v3.jsonAMB API: Receive AMB delivery reports
delivery.apple-messages-for-business.v4.jsonMessages API: Receive delivery reports
Inbound messageinbound-message.apple-messages-for-business.v1.jsonAMB API: Receive incoming AMB messages
inbound-message.apple-messages-for-business.v2.jsonMessages API: Receive inbound messages
Facebook Messenger
EventFormat nameFormat payload
Deliveryadaptive.subscription.formatPayload is picked based on the API used in your submission
delivery.facebook.v5.jsonMessages API: Receive delivery reports
delivery.facebook.v4.jsonMessenger API: Receive Messenger delivery reports
Inbound messageinbound-message.facebook.v1.jsonMessenger API: Receive incoming Messenger messages
inbound-message.facebook.v2.jsonMessages API: Receive inbound messages
Marketing opt-inmarketing.facebook.v1.jsonMessenger API: Receive Messenger opt-in marketing event
Marketing opt-outmarketing.facebook.v1.jsonMessenger API: Receive Messenger opt-out marketing event
SMS
EventFormat nameFormat payload
Clicktracking.sms.v1.jsonSMS API: Receive SMS tracking notifications
Deliveryadaptive.subscription.formatPayload is picked based on the API used in your submission
delivery.sms.v2.jsonOmni-failover API: Receive delivery status report
delivery.sms.v3.jsonSMS API v2: Receive outbound SMS message report
delivery.sms.v4.jsonSMS API v3: Receive outbound SMS message reports
delivery.sms.v5.jsonMessages API: Receive delivery reports
Inbound messageinbound-message.sms.v1.jsonSMS API: Receive inbound SMS messages
inbound-message.sms.v2.jsonMessages API: Receive inbound messages
MMS
EventFormat nameFormat payload
Clicktracking.mms.v1.jsonMMS API: Receive MMS tracking notifications
Deliveryadaptive.subscription.formatPayload is picked based on the API used in your submission
delivery.mms.v1.jsonMMS API v1: Receive outbound MMS message report
delivery.mms.v3.jsonMessages API: Receive delivery reports
delivery.mms.v4.jsonMMS API v2: Receive MMS delivery reports
Inbound messageinbound-message.mms.v1.jsonMMS API: Receive inbound MMS messages
inbound-message.mms.v2.jsonMessages API: Receive inbound messages
Open Channel
EventFormat nameFormat payload
Deliveryevent.open-channel.v1.jsonOpen Channel API: Receive Open Channel outbound message

How to select a different format

You can select a different format when creating or editing a subscription.

Web interface

  1. Log in and go to Developer Tools > Subscriptions Management.
  2. Find your SMS or MMS subscription in the list.
  3. Open the three-dot menu next to the subscription name and select Edit.
  4. On the Select events screen, choose your preferred event format from the dropdown. Subscriptions - Select event format
  5. Save your subscription to apply the new settings.

API

You can configure event formats when creating or updating a subscription by including the format field in the events object.


Example without a format (default will be applied):

json
1"events": [
2 "DELIVERY"
3]

Example with a selected format:

json
1"events": [
2 {
3 "event": "DELIVERY",
4 "format": "delivery.sms.v3.json"
5 }
6]

IMPORTANT

If the format field is not provided, the system automatically assigns the default format for that event and channel.