Skip to main content

WebChat Events

webchat.lead.created

Triggered when a new lead is captured via WebChat.

{
"apiVersion": "2021-08-23",
"type": "webchat.lead.created",
"data": {
"firstName": "John",
"lastName": "Smith",
"phoneNumber": "+19995550000",
"campaignId": "29OBdh8BLaEmx5Sj8XeLfKgsuh7",
"timestamp": "2021-10-14T11:41:00.560061"
},
"customData": {
"myKey": "myValue"
}
}
FieldTypeDescription
apiVersionstringAPI version (currently 2021-08-23)
typestringThe event type
data.campaignIdstringWebChat campaign ID
data.phoneNumberstringE.164 formatted phone number
data.timestampstringISO 8601 timestamp of when the lead was acquired
data.firstNamestring?Lead's first name, if captured
data.lastNamestring?Lead's last name, if captured
customDataobject?Custom key-value pairs, if configured (see Custom Data)