History synchronization
When you activate Coexistence, you can import the message history from your WhatsApp Business number to Positus. The import is asynchronous and messages arrive at your webhook in the same format as normally received messages.How to trigger synchronization
Make aPOST request to the endpoint below. No request body is required.
{NUMBER_ID}— ID of the WhatsApp number already activated with Coexistence.
The import can be triggered only once per onboarding, within the 24-hour window after Coexistence activation. The server only confirms receipt of the request; messages are delivered later, across multiple webhooks.
What you receive
Each message from history is delivered to your webhook in the same format as a normally received message in Positus — the envelope{ "contacts": [...], "messages": [...] }. You receive one webhook per message from history; your existing webhook handler already processes these messages without modification.
This is the same format described in Webhook. The difference is that history messages include the additional field
history_context, indicating the state that the message had in the app. Internal progress metadata of the import (phase, batch order) are not passed to your webhook.Message fields
Values of history_context.status
History coverage window
Meta makes history available in three phases, defining how far back messages are imported:
Messages older than 180 days are not imported. You don’t need to handle these phases: they only determine the scope of the import — messages arrive at your webhook one by one, as described above.
Two-stage media
Older media messages (more than ~14 days old) arrive in two stages:- First, a message with
type: "media_placeholder"— without media content. - Then, a new webhook delivers the same message with the actual media content.
History rejected by business
If history sharing is disabled in the WhatsApp Business app, Meta rejects the import (error2593109 — “History sync is turned off by the business”).
Next steps
- Introduction to CoEx — concept and eligibility.
- Contact Synchronization — import the contact list.
- Webhook — complete message envelope format.