Receiving Messaging Events
You can choose to be notified about events on your SMS-capable long code or toll-free phone number by configuring webhooks.
Opentact supports notifications for the following event types:
Delivery status updates
New inbound messages for both SMS and MMS
For this mechanism to work, you’ll need a publicly accessible HTTP server that can receive our webhook requests at one or more specified URLs. We highly recommend using HTTPS (instead of HTTP). This tutorial walks through setting up a basic application for receiving webhooks.
Hierarchy of URLs
If webhooks are provided in the request body, we will use those, otherwise if the profile has webhooks, we’ll use those. If neither has webhooks, we won’t attempt a webhook delivery.
The Opentact Messaging Services will attempt to notify you about each status update based on the hierarchy of URLs above.
Delivery Status Payload
Here is an example of a webhook event where a delivery receipt is returned to the sender after sending a message through a Opentact long code to a T-Mobile long code:
Last updated