Get notified when a message is sent to a lead
message.sent
webhook event is triggered whenever your Apten assistant sends a message to a lead via SMS or email. This can be used to track outgoing communication and monitor follow-up sequences.
Property | Type | Description |
---|---|---|
event | string | The webhook event type (message.sent ). |
data.leadId | string | The unique identifier for the lead. |
data.phone | string | The phone number of the lead. |
data.channel | string | The communication channel. Can be sms or email . |
data.profile | string | The customer profile assigned to the lead. |
data.isFollowUp | boolean | Indicates if this message is part of a follow-up sequence. |
data.followUpStep | number | null | The current step in the follow-up sequence. Will be null if isFollowUp is false. May also be null for older follow-ups that were scheduled before this feature was implemented. |
data.content.subject | string | The subject line of the email. Only included for email messages, not SMS. |
data.content.text | string | The content of the message sent to the lead. |
timestamp | string | The ISO 8601 timestamp when the message was sent. |