{
"workspace_id": "my-workspace",
"event_type": "whatsapp_account:disconnected",
"partner_id": "partner_12345",
"triggered_at": "2024-01-01T12:00:00.000Z",
"whatsapp_account_id": 67890,
"phone_number_e164": "+123456789",
"user_id": 98765,
"disconnected_at": "2024-01-01T12:00:00.000Z",
"reason": "(logged out)"
}Account Connected
Triggered when a WhatsApp account is successfully connected for a workspace user.
{
"workspace_id": "my-workspace",
"event_type": "whatsapp_account:disconnected",
"partner_id": "partner_12345",
"triggered_at": "2024-01-01T12:00:00.000Z",
"whatsapp_account_id": 67890,
"phone_number_e164": "+123456789",
"user_id": 98765,
"disconnected_at": "2024-01-01T12:00:00.000Z",
"reason": "(logged out)"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The unique identifier for the partner.
a JSON Web Token (JWT) token that contains the partner_id, nbf (not before), and exp (expiration) fields. using the partner''s shared secret and can be used to verify authenticity and integrity.
Body
Webhook payload sent when a WhatsApp account is successfully connected / disconnected for a user in a partner-managed workspace. No event is emitted for idempotent no-op operations (for example when the account is already connected / disconnected).
Identifier of the workspace where the WhatsApp account was connected / disconnected.
"my-workspace"
Partner webhook event name.
whatsapp_account:connected, whatsapp_account:disconnected "whatsapp_account:disconnected"
Unique identifier of the partner that owns the workspace.
"partner_12345"
Timestamp when the event was triggered.
"2024-01-01T12:00:00.000Z"
Internal WhatsApp account identifier.
67890
Phone number associated with the WhatsApp account in E.164
"+123456789"
Identifier of the user in the workspace who owns the WhatsApp
98765
"2024-01-01T12:00:00.000Z"
"(logged out)"
Response
Receiver accepted the event

