Webhooks
View the expected webhook event payloads to your custom-defined endpoints
Here you can see the data sent in notification requests to your customer-provided endpoints. The only requirement for a customer-defined endpoint is that it responds with a 200 HTTP status code.
Webhooks must first be registered, see Setting up your first webhook to learn more.
Webhooks Event Payloads
The payloads documented below describe the data sent to the endpoints you (as a Mobile Text Alerts customer) must implement to successfully receive notifications.
Versions
Our latest webhook version is V3. If you haven't specifically requested an earlier version, you will receive the V3 payloads. Previous versions (V1, V2) are also included below.
Formats Dynamic fields may also include the following format specifications:
phone_national- A phone number in the national format. (Ex:5555555555)phone_e164- A phone number in E.164 format. (Ex:[+] [country code] [subscriber number including area code], max 15 digits)enum- A field with a pre-defined list of values.date- A date string. The timezone and format are specified.
Tags
Many of the payloads below include an optional tags field. This is an object of tags provided by the customer when the message was sent.
Example:
Delivery Status
Mobile Text Alerts Delivery Status Codes
One of the fields in the delivery-status webhook is status. It returns a code associated with the following statuses:
Message Reply
Message Send
Number Opt-In
Number Opt-In Types
One of the fields in the number opt-in webhook is type. It returns one of the following values, which indicates the method used to opt in:
Last updated
Was this helpful?