Contacts

Receiving New Contacts via Webhook

To receive a webhook when a new contact is created in WhatsApp, enable the contacts.post event in your webhook settings.

This event is triggered when a new contact appears in your WhatsApp account — for example, when you add someone to your address book or create a new contact directly in the app.

A new contact has been created

Below is an example of the webhook payload for contacts.post:

{
  "contacts": [
    {
      "id": "60123673737",
      "name": "Customer 458"
    }
  ],
  "event": {
    "type": "contacts",
    "event": "post"
  },
  "channel_id": "MANTIS-PF213"
}

This allows you to automatically capture and store new contact information as soon as it's available.

Changed contact name

Changed contact's profile picture

Use the contacts.patch setting to get this webhook.

{
  "contacts_updates": [
    {
      "before_update": {
        "id": "60123673737"
      },
      "after_update": {
        "id": "60123673737",
        "profile_pic": "https://pps.whatsapp.net/v/t62.24694-24/491874028_701402635774024_1386890881408043_n.jpg?stp=dst-jpg_s96x96_tt6&ccb=11-4&oh=01_Q5Aa1gHHm2qcN7lQuAWH0IyRnLnjLHz0c3q7-llDBb_ORjfFFQ&oe=68384A17&_nc_sid=5e03e0&_nc_cat=102",
        "profile_pic_full": "https://pps.whatsapp.net/v/t62.24694-24/491874028_701402635774024_1386890881408043_n.jpg?ccb=11-4&oh=01_Q5Aa1gFUVTN6BytTcJIQWY3ayR_ZfAOdK567ZSFtYcIXwqCv-g&oe=68384A17&_nc_sid=5e03e0&_nc_cat=102"
      },
      "changes": [
        "profile_pic",
        "profile_pic_full"
      ]
    }
  ],
  "event": {
    "type": "contacts",
    "event": "patch"
  },
  "channel_id": "MANTIS-PF213"
}

Last updated

Was this helpful?