Transactional Messaging Message Disposition
You can improve the functionality of your client applications by understanding the status of each request within the Marketing Cloud Engagement platform. Marketing Cloud Engagement provides webhooks through the Event Notification Service. ENS provides your applications with real-time notifications of significant status events, such as sends, bounces, opens, and clicks. For more information about the events that ENS supports, see Supported Notification Events.
To receive events from ENS, your client application must establish a subscription and define the event types to receive. ENS directs the specified event types to a callback URL. A callback URL is a URL exposed from a listener service maintained by or accessible to the client application. If necessary, you can configure ENS to only emit events from that are associated with specific send definitions. A basic workflow for using ENS to monitor transactional messaging resembles this flow.
- Create an Installed Package, message content, and other necessary assets.
- Set up a third-party webhook listener service.
- Download Postman, and then install the Marketing Cloud Engagement Postman collection.
- In Postman, build requests to configure the transactional message.
- Create a new transactional messaging send definition in the email channel.
- Send an email message using the send definition.
- Create a callback for the listener URL by sending an HTTP POST request to ENS. Note the
callbackIdvalue from the response.
- The listener process receives the verification event from ENS. Examine the verification event in the listener and note the
verificationKeyvalue from the event.
- Send an HTTP POST request to verify the callback using the
verificationKey. If you receive a 200 response, the callback is ready to use.
- Send an HTTP POST request using the
callbackIdvalue to create a subscription for Sent, NotSent, Bounce, and Open events. If you receive a 200 response, the subscription is configured.
- Create a new send definition by sending an HTTP POST request to the transactional messaging API.
- Send an email by sending an HTTP POST request to the transactional messaging API. Specify the same value for
definitionKeythat you used when you created the send definition. Note the
messageKeyvalue used in the request and the
subscriberIdfrom the event.
- The listener receives a Sent event from ENS. Review the Sent event response and confirm that the
messageKeyvalue matches the value that you used in the send request.
- Open the email in your email client. Validate that images appear as expected and that links resolve correctly.
- The listener receives an Open event from ENS. Review the Open event notification and confirm that the values for
subscriberIdmatch the values found in the Sent event notification.