Skip to main content

Contact Events

Webhook 

Online sends a contact event to your webhook when a contact is created, changed or deleted.

SubscriptionSent when
contact_createdA contact was created.
contact_updatedA contact changed. Includes changed_attributes.
contact_deletedA contact was deleted.

The payload is the contact. Contact events are account-wide: they are sent for every inbox, whatever the webhook's inbox_ids.

Settings:

SettingValue
URLYour webhook URL — create the webhook with Add Webhook and choose its events in subscriptions
MethodJSON via POST

Example — contact_updated:

{
"event": "contact_updated",
"type": "contact",
"id": 801,
"name": "Dana Cohen",
"email": "dana.cohen@example.com",
"phone_number": "+972501234567",
"identifier": "crm-801",
"additional_attributes": {
"company_name": "Example Ltd",
"city": "Tel Aviv"
},
"custom_attributes": {
"customer_tier": "gold"
},
"avatar": "",
"thumbnail": "",
"account": {
"id": 12,
"name": "Example Account"
},
"changed_attributes": [
{
"name": {
"previous_value": "Dana",
"current_value": "Dana Cohen"
}
}
],
"allow_unverified_ssl": false
}

Payload explained​

ParameterDescription / Example
eventWhat happened. See the values below.
typeAlways contact.
idThe contact ID.
nameThe name.
emailThe email.
phone_numberThe phone number in E.164 format.
identifierYour own external ID for the contact.
additional_attributesStandard extra fields, such as company_name and city.
custom_attributesThe contact's custom attributes.
avatarThe avatar URL, or an empty string.
thumbnailThe avatar thumbnail URL, or an empty string.
accountThe account.
changed_attributescontact_updated only. What changed: one object per attribute, keyed by its name, with its previous_value and current_value.
allow_unverified_sslAdded by Online to every payload.

event​

ValueExplanation
contact_createdA contact was created.
contact_updatedA contact changed.
contact_deletedA contact was deleted.

Webhook payload

​

Your response​

Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again.