For the complete documentation index, see llms.txt. This page is also available as Markdown.

Inbox Message Status Webhook Events

Overview

Welkin automations can now trigger webhook actions when the delivery status of an outbound SMS or email message is updated by the carrier or email provider. This lets you notify external systems — billing platforms, CRMs, or monitoring tools — in real time when a message is delivered, failed, or encounters an error.

Trigger Event Subtypes

Two new event subtypes are available when configuring an automation with an Inbox Message entity:

Event subtype
Description

INBOX_SMS_STATUS_MESSAGE_UPDATED

Fires when the delivery status of an outbound SMS message changes (e.g., delivered, failed)

INBOX_EMAIL_STATUS_MESSAGE_UPDATED

Fires when the delivery status of an outbound email message changes

To use these, create or edit an automation in Designer:

  1. Set Trigger Type to Event

  2. Set Event Entity to Inbox Message

  3. Set Event Subtype to INBOX_SMS_STATUS_MESSAGE_UPDATED or INBOX_EMAIL_STATUS_MESSAGE_UPDATED

  4. Add a Webhook action and select your configured webhook

Webhook Payload Fields

When a webhook action fires in response to one of these events, the outbound payload automatically includes three additional predefined fields alongside the standard fields (patientId, tenantName, instanceName, eventEntity, eventSubtype, etc.):

Field
Type
Description

messageId

UUID

The unique identifier of the inbox message whose status changed

messageStatus

string

The delivery status reported by the carrier or email provider (e.g., DELIVERED, FAILED)

errorCode

string

The error code returned by the provider when delivery failed (e.g., 30007). Omitted when delivery succeeded

Example payload (SMS failure)

Example payload (email delivery)

Custom Field Name Conflicts

If your webhook payload configuration includes a custom field whose name matches one of the predefined field names above (for example, a custom field named messageStatus), the custom value takes precedence. The predefined value is used only when no custom field with the same name is present.

Last updated

Was this helpful?