WhatsApp Business Platform

messaging_handovers webhook reference

Updated: Sep 22, 2026
Copy for LLM
This reference describes trigger events and payload contents for the Messaging account messaging_handovers webhook.
The messaging_handovers field notifies your app when ownership of a thread changes under Conversation Routing. Each notification names the role that held the thread before the change and the role that holds it now, so you can update your local ownership state.

Triggers

NotificationDelivered toTrigger
control_passed
The new owner
The current thread owner calls pass on the Thread control API.
control_taken
The previous owner
The designated escalation partner takes the thread, either explicitly through the Thread control API or implicitly by sending a Service message.
Note: A release action names no new owner, so it does not produce a messaging_handovers notification. Which responder answers next is decided by entry-point routing when the WhatsApp user sends their next message. See Thread lifecycle.

Subscribing

  1. Go to your app in the App Dashboard.
  2. Navigate to WhatsApp > Configuration > Webhook fields.
  3. Subscribe to the messaging_handovers field.
Subscribe before routing applies to the accounts you serve. See Prepare for Conversation Routing.

Syntax

Every messaging_handovers notification uses this envelope. The type value names which of the two notification objects — control_passed or control_taken — is present alongside it.
{
  "object": "whatsapp_business_account",
  "entry": [
    {
      "id": "<WHATSAPP_BUSINESS_ACCOUNT_ID>",
      "changes": [
        {
          "field": "messaging_handovers",
          "value": {
            "messaging_product": "whatsapp",
            "sender": {
              "phone_number": "<WHATSAPP_USER_PHONE_NUMBER>"
            },
            "recipient": {
              "phone_number_id": "<PHONE_NUMBER_ID>",
              "display_phone_number": "<PHONE_NUMBER>"
            },
            "type": "<NOTIFICATION_TYPE>",
            "timestamp": "<TIMESTAMP>"
          }
        }
      ]
    }
  ]
}

Parameters

NameTypeDescription
object
string
Always whatsapp_business_account.
entry
array
Array of entry objects.
entry[].id
string
Your Messaging account ID.
entry[].changes
array
Array of change objects.
entry[].changes[].field
string
Always messaging_handovers for handover notifications.
value.messaging_product
string
Always whatsapp.
value.sender.phone_number
string
The WhatsApp user’s phone number. Omitted where the number is unavailable, so treat it as optional.
value.recipient.phone_number_id
string
ID of the business phone number the thread belongs to.
value.recipient.display_phone_number
string
The business phone number in international format.
value.type
string
The notification type: control_passed or control_taken.
value.timestamp
string
Unix epoch timestamp in seconds of the ownership change.
value.control_passed
object
(Optional) Present when type is control_passed.
value.control_taken
object
(Optional) Present when type is control_taken.
For the role identifiers that appear in the owner role fields below — customer_service, marketing, utility, ctwa, ai_agent, and escalation — see Role identifiers.
Both notification objects also carry app identifiers — previous_owner_app_id and new_owner_app_id, and on control_passed the enumerated previous_owner_app_role.
Deprecated:previous_owner_app_id and previous_owner_app_role are present in current payloads but are deprecated and will be removed. Do not build a dependency on either one. Use previous_owner_role and new_owner_role instead: they identify the responder on each side of the handover without exposing an app identity, and they are populated for every kind of responder rather than only for app-identified ones.
Key your ownership state on the role fields.

control_passed

Dispatched to the app that receives thread control when a pass action succeeds. Receiving it means you are now the thread owner and are expected to reply to the WhatsApp user.

Example payload

{
  "object": "whatsapp_business_account",
  "entry": [
    {
      "id": "<WHATSAPP_BUSINESS_ACCOUNT_ID>",
      "changes": [
        {
          "field": "messaging_handovers",
          "value": {
            "messaging_product": "whatsapp",
            "sender": {
              "phone_number": "<WHATSAPP_USER_PHONE_NUMBER>"
            },
            "recipient": {
              "phone_number_id": "<PHONE_NUMBER_ID>",
              "display_phone_number": "<PHONE_NUMBER>"
            },
            "type": "control_passed",
            "timestamp": "<TIMESTAMP>",
            "control_passed": {
              "previous_owner_app_id": "<APP_ID>",
              "previous_owner_app_role": "meta_business_agent",
              "previous_owner_role": "ai_agent",
              "new_owner_role": "escalation",
              "metadata": "WhatsApp user requested human agent",
              "conversation_context": {
                "type": "summary",
                "summary": {
                  "text": "AI-generated summary string"
                }
              }
            }
          }
        }
      ]
    }
  ]
}

Parameters

NameTypeDescription
control_passed.previous_owner_app_id
string
(Optional, deprecated) ID of the app that passed control. Delivered only where the previous owner is identified by app rather than by business. Present in current payloads, but deprecated and slated for removal — do not depend on it. Use previous_owner_role instead.
control_passed.previous_owner_app_role
string
(Optional, deprecated) App role of the previous owner. The only value is meta_business_agent. Delivered only where the previous owner is identified by app. Present in current payloads, but deprecated and slated for removal — do not depend on it. Use previous_owner_role instead.
control_passed.previous_owner_role
string
(Optional) Role identifier of the responder that passed control.
control_passed.new_owner_app_id
string
(Optional) ID of the app that received control. Delivered only where the new owner is identified by app rather than by business.
control_passed.new_owner_role
string
(Optional) Role identifier of the responder that received control.
control_passed.metadata
string
(Optional) The free-form string the caller supplied on the pass request, forwarded verbatim. Maximum 2,000 characters.
control_passed.conversation_context
object
(Optional) An AI-generated summary of the conversation so far. Included only under the conditions in Conversation context.

control_taken

Dispatched to the app that loses thread control when the designated escalation partner takes the thread. Both explicit takes and implicit takes — where the escalation partner sends a Service message without calling the API — produce this notification. Receiving it means you no longer own the thread and must stop replying to the WhatsApp user.

Example payload

{
  "object": "whatsapp_business_account",
  "entry": [
    {
      "id": "<WHATSAPP_BUSINESS_ACCOUNT_ID>",
      "changes": [
        {
          "field": "messaging_handovers",
          "value": {
            "messaging_product": "whatsapp",
            "sender": {
              "phone_number": "<WHATSAPP_USER_PHONE_NUMBER>"
            },
            "recipient": {
              "phone_number_id": "<PHONE_NUMBER_ID>",
              "display_phone_number": "<PHONE_NUMBER>"
            },
            "type": "control_taken",
            "timestamp": "<TIMESTAMP>",
            "control_taken": {
              "previous_owner_app_id": "<APP_ID>",
              "previous_owner_role": "ai_agent",
              "new_owner_role": "escalation",
              "metadata": "Human agent stepping in"
            }
          }
        }
      ]
    }
  ]
}
The previous owner here is an app-identified responder, so the payload carries the deprecated previous_owner_app_id. Where the previous owner is a partner instead, that field is absent, because a partner is identified by business rather than by app — another reason to read previous_owner_role rather than the app identifier. control_taken carries no previous_owner_app_role.

Parameters

NameTypeDescription
control_taken.previous_owner_app_id
string
(Optional, deprecated) ID of the app that lost control. Delivered only where the previous owner is identified by app rather than by business, so it is absent when a partner loses the thread. Present in current payloads, but deprecated and slated for removal — do not depend on it. Use previous_owner_role instead.
control_taken.previous_owner_role
string
(Optional) Role identifier of the responder that lost control.
control_taken.new_owner_app_id
string
(Optional) ID of the app that took control. Delivered only where the escalation partner is identified by app rather than by business.
control_taken.new_owner_role
string
(Optional) Role identifier of the responder that took control. Always escalation, because only the designated escalation partner can take a thread.
control_taken.metadata
string
(Optional) For an explicit take, the free-form string the caller supplied on the take request, forwarded verbatim with a maximum of 2,000 characters. For an implicit take, the platform supplies Control taken via service message.

Best practices

  • Treat every field inside the notification object as optional. The envelope is fixed — object, entry[].id, field, messaging_product, recipient.phone_number_id, recipient.display_phone_number, type, and timestamp are always present — but sender.phone_number and everything inside control_passed or control_taken, including the owner roles and app identifiers, metadata, and conversation_context, is conditional. Do not fail a notification because one is absent.
  • Update ownership state from these notifications rather than querying it. There is no endpoint that reports the current thread owner. See Tracking ownership.
  • Reconcile after 24 hours of WhatsApp user inactivity. A thread returns to idle on its own, with no notification. See Thread lifecycle.
  • Handle duplicates. Deduplicate on the combination of recipient.phone_number_id, value.type, timestamp, and the WhatsApp user the notification is about. The first three are always present, but they are not unique on their own: timestamp is in whole seconds, so two handovers of the same type on the same business phone number within the same second — for two different WhatsApp users — share all three, and keying on that tuple alone would discard a real ownership change. Identify the user from sender.phone_number when it is present, and otherwise from the WhatsApp user identifier you already track for the thread — a phone number and a BSUID reconcile to the same WhatsApp user, so treat them as one person rather than two. Where you cannot identify the user at all, apply the ownership update idempotently — set the owner the notification describes, rather than dropping the notification because the three always-present fields match one you have already seen.

See also