> ## Documentation Index
> Fetch the complete documentation index at: https://docs.robbu.global/llms.txt
> Use this file to discover all available pages before exploring further.

# CoEx Webhooks

> Learn which Coexistence events arrive at your webhook and how to process them.

# CoEx Webhooks

During Coexistence, your webhook receives notifications of two types of events. Both use the **same standard Positus format** for messages: the envelope `{ "contacts": [...], "messages": [...] }`. Your existing webhook handler already processes these events without modification.

## CoEx Events

| Event                   | Arrives at webhook? | Format                   | Documentation                                            |
| ----------------------- | ------------------- | ------------------------ | -------------------------------------------------------- |
| Message history         | Yes                 | `{ contacts, messages }` | [History Synchronization](/en/positus/coex/history-sync) |
| Mirrored messages       | Yes                 | `{ contacts, messages }` | [Mirrored Messages](/en/positus/coex/mirrored-messages)  |
| Contact synchronization | No                  | (appears in account)     | [Contact Synchronization](/en/positus/coex/contact-sync) |

## Processing

<Info>
  All events above use the same envelope `{ "contacts": [...], "messages": [...] }` described in [Webhook](/en/positus/integration/webhook). You can use your existing handler to process history, mirrored messages, and normally received messages — without additional logic.
</Info>

## Next steps

* [Introduction to CoEx](/en/positus/coex/introduction) — concept and eligibility.
* [History Synchronization](/en/positus/coex/history-sync) — import old messages.
* [Mirrored Messages](/en/positus/coex/mirrored-messages) — receive messages from the WhatsApp Business app.
* [Contact Synchronization](/en/positus/coex/contact-sync) — import contact list.
* [Webhook](/en/positus/integration/webhook) — complete message envelope format.
