messaging_handovers Webhook Event Reference
Updated: Oct 28, 2026
Copy for LLM
The
messaging_handovers webhook event is used to notify your webhook when certain actions are taken using the Messenger Platform’s handover protocol, including pass thread control, take thread control, and role change events.For more information on the handover protocol, see Handover Protocol.
Contents
pass_thread_control
This callback will occur when thread ownership for a user has been passed to your application.
If the previous thread owner is Meta Business Agent, this callback indicates that control has passed to your app. Start responding when you receive this callback, not when you receive events on the
standby channel.For details on implementing pass thread control, see Conversation Routing.
{
"sender":{
"id":"<PSID>"
},
"recipient":{
"id":"<PAGE_ID>"
},
"timestamp":1458692752478,
"pass_thread_control":{
"previous_owner_app_id":"<previous_app_id or null (idle_mode)>",
"new_owner_app_id":"123456789",
"metadata":"Additional content that the caller wants to set"
}
}
Meta Business Agent handoff metadata
For a Meta Business Agent handoff,
pass_thread_control can contain a thread_control_metadata object with business-facing text and an optional handoff_reason string. This object is separate from the custom metadata string specified in an API request.When enabled,
thread_control_metadata.handoff_reason accompanies text and uses the same values as message.handoff_reason: purchase_intent, payment_received, human_requested, and other. Use the structured reason instead of parsing the localized text. Handle handoffs without this field, and allow for additional values in the future.The following example illustrates the metadata on a purchase-intent handoff:
{ "sender": { "id": "<PSID>" }, "recipient": { "id": "<PAGE_ID>" }, "timestamp": 1458692752478, "pass_thread_control": { "thread_control_metadata": { "text": "<BUSINESS_ADMIN_TEXT>", "handoff_reason": "purchase_intent" } } }
Properties
sender
sender Field
| Description |
|---|---|
id string | The Page-scoped ID for the person who sent a message to your business |
recipient
recipient Field
| Description |
|---|---|
id string | The ID for your Facebook Page |
pass_thread_control
| Property | Type | Description |
|---|---|---|
new_owner_app_id | String | App ID that thread control is passed to. |
previous_owner_app_id | String | App ID that thread control is passed from. |
metadata | String | Custom string specified in the API request. |
thread_control_metadata | Object | Metadata for a Meta Business Agent handoff. Can contain business-facing text and, when enabled, handoff_reason. Separate from the custom metadata string. See Meta Business Agent handoff metadata. |
thread_control_metadata.handoff_reason | String | Optional structured handoff reason, included alongside thread_control_metadata.text when enabled. Values: purchase_intent, payment_received, human_requested, and other. See Handoff reasons. |
take_thread_control
This callback will occur when thread ownership for a user has been taken away from your application.
For details on implementing take thread control, see Take Thread Control.
{
"sender":{
"id":"<PSID>"
},
"recipient":{
"id":"<PAGE_ID>"
},
"timestamp":1458692752478,
"take_thread_control":{
"previous_owner_app_id":"123456789", //could be null if thread was in idle mode
"new_owner_app_id": <new_app_id>,
"metadata":"additional content that the caller wants to set"
}
}
Properties
sender
sender Field
| Description |
|---|---|
id string | The Page-scoped ID for the person who sent a message to your business |
recipient
recipient Field
| Description |
|---|---|
id string | The ID for your Facebook Page |
take_thread_control
| Property | Type | Description |
|---|---|---|
previous_owner_app_id | String | App ID that thread control was taken from. |
new_owner_app_id | String | App ID that thread control was given to. |
metadata | String | Custom string specified in the API request. |
request_thread_control
This callback will be sent to the Primary Receiver app when a Secondary Receiver app calls the Request Thread Control API. The Primary Receiver may then choose to honor the request and pass thread control, or ignore the request.
For details on implementing take thread control, see Take Thread Control.
{
"sender":{
"id":"<USER_ID>"
},
"recipient":{
"id":"<PSID>"
},
"timestamp":1458692752478,
"request_thread_control":{
"requested_owner_app_id":123456789,
"metadata":"additional content that the caller wants to set"
}
}
Properties
sender
sender Field
| Description |
|---|---|
id string | The Page-scoped ID for the person who sent a message to your business |
recipient
recipient Field
| Description |
|---|---|
id string | The ID for your Facebook Page |
request_thread_control
| Property | Type | Description |
|---|---|---|
requested_owner_app_id | String | App ID of the Secondary Receiver that is requesting thread control. |
metadata | String | Custom string specified in the API request. |
app_roles
This callback will occur when a page admin changes the role of your application. An app can be assigned the roles of
primary_receiver or secondary_receiver.For information on assigning app roles, see Assign App Roles.
{
"recipient":{
"id":"<PSID>"
},
"timestamp":1458692752478,
"app_roles":{
"123456789":["primary_receiver"]
}
}
Properties
sender
sender Field
| Description |
|---|---|
id string | The Page-scoped ID for the person who sent a message to your business |
recipient
recipient Field
| Description |
|---|---|
id string | The ID for your Facebook Page |
app_roles
| Property | Type | Description |
|---|---|---|
id | String | Your Page ID. |