> For the complete documentation index, see [llms.txt](https://support.whapi.cloud/help-desk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.whapi.cloud/help-desk/receiving/webhooks/incoming-webhooks-format/contacts.md).

# Contacts

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

{% hint style="warning" %}
**Technical note:**\
At the moment, if you change the name of an existing contact, the system will trigger the same event as if it were a new contact. Please keep this in mind.\
We’ll update this page if we’re able to distinguish between new contacts and updates to existing ones in the future.
{% endhint %}

### 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"
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://support.whapi.cloud/help-desk/receiving/webhooks/incoming-webhooks-format/contacts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
