contact.deleted
Sent when a contact is deleted. Use it to remove them from your own records. data holds only the contact’s ID and number, and for a merge the contact that was kept. On a merge, re-point your records to merged_into_id instead of deleting them. The kept contact also gets contact.updated when its details changed. A deleted contact with a chat keeps the chat in the inbox: chat_kept is true, and messages to and from them still carry its contact_id.
Called Contact deleted in the app. Part of the plan feature webhooks.contacts. To subscribe over the API, the key needs contacts:read.
What’s in data. Every event wraps it in the same envelope.
contact_id string · uuid
phone string · nullable
The number the contact had, or null if it had none.
merged_into_id string · uuid · nullable
The contact this one was merged into, which now has its chats and details. null if it was deleted, not merged.
chat_kept boolean
true when the contact had a chat, which stays in the inbox until it’s added again as a contact. false for a contact without a chat, and for a merge.
Handling it
Section titled “Handling it”- Answer with any
2xxwithin 10 seconds. Do the work after. - Check the signature first. Verify webhooks has the code.
- Subscribe with
POST /v1/webhooks,events: ["contact.deleted"].