Transfer thread control
Transfer thread control for a consumer conversation: release it back to Meta Business Agent as the automatic responder, pass it to Meta Business Agent or the configured escalation partner, or take it from the current owner.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Meta Business Agent API version
Thread control action to perform
The thread control action to perform. "release" relinquishes thread control and hands the conversation back to Meta Business Agent as the automatic responder; you must currently hold thread control. "take" acquires thread control from the current owner and is restricted to the configured escalation partner. "pass" transfers thread control to Meta Business Agent when control_pass.target_role is "ai_agent", or to the configured escalation partner when control_pass is omitted; you must currently hold thread control.
Messaging service used for the request. Must be "whatsapp".
Optional free-form string forwarded verbatim to the receiving app in the resulting messaging_handovers webhook.
Business-scoped user ID of the consumer whose thread control is being transferred. Accepted but not yet wired; provide "to" instead.
Consumer identifier (phone number or WhatsApp ID) whose thread control is being transferred.
Thread control action result with messaging product identifier
Thread control action result with messaging product identifier
Messaging service used for the response. Always "whatsapp".
Bad request
Unauthorized
Too many requests
Server error
POST /agent_thread_control HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 139
{
"action": "pass",
"control_pass": {
"target_role": "ai_agent"
},
"messaging_product": "whatsapp",
"metadata": "text",
"recipient": "text",
"to": "text"
}{
"messaging_product": "whatsapp"
}Last updated
Was this helpful?