> For the complete documentation index, see [llms.txt](https://docs.360dialog.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.360dialog.com/docs/mba/api-ref/operate/transfer-thread-control.md).

# 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.

```json
{"openapi":"3.1.0","info":{"title":"Business Agent API","version":"1.51.5"},"tags":[{"name":"Operate","description":"Endpoints for evaluating and operating the agent (eval jobs, events, and tests)"}],"servers":[{"description":"Production server","url":"https://waba-v2.360dialog.io"}],"security":[{"D360-API-KEY":[]}],"components":{"securitySchemes":{"D360-API-KEY":{"description":"API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.","in":"header","name":"D360-API-KEY","type":"apiKey"}},"schemas":{"operate.ThreadControlRequest":{"description":"Thread control action to perform","properties":{"action":{"description":"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.","enum":["pass","release","take"],"type":"string"},"control_pass":{"$ref":"#/components/schemas/operate.ThreadControlPassRequest"},"messaging_product":{"description":"Messaging service used for the request. Must be \"whatsapp\".","enum":["whatsapp"],"type":"string"},"metadata":{"description":"Optional free-form string forwarded verbatim to the receiving app in the resulting messaging_handovers webhook.","type":"string"},"recipient":{"description":"Business-scoped user ID of the consumer whose thread control is being transferred. Accepted but not yet wired; provide \"to\" instead.","type":"string"},"to":{"description":"Consumer identifier (phone number or WhatsApp ID) whose thread control is being transferred.","type":"string"}},"required":["action","messaging_product"],"type":"object"},"operate.ThreadControlPassRequest":{"description":"Optional configuration for a pass action. When omitted, pass uses the configured escalation partner.","properties":{"target_role":{"description":"Role receiving thread control. \"ai_agent\" selects Meta Business Agent.","enum":["ai_agent"],"type":"string"}},"required":["target_role"],"type":"object"},"operate.ThreadControlResponse":{"description":"Thread control action result with messaging product identifier","properties":{"messaging_product":{"description":"Messaging service used for the response. Always \"whatsapp\".","enum":["whatsapp"],"type":"string"}},"required":["messaging_product"],"type":"object"},"operate.StandardError":{"description":"Standard error response for Meta Business Agent endpoints","properties":{"detail":{"description":"Human-readable explanation of the error","type":"string"},"status":{"description":"HTTP status code","type":"integer"},"title":{"description":"Short, human-readable summary of the problem","type":"string"},"type":{"description":"A URI reference identifying the problem type","type":"string"}},"type":"object"}}},"paths":{"/agent_thread_control":{"post":{"description":"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.","operationId":"post-agent-thread-control","parameters":[{"description":"Meta Business Agent API version","in":"header","name":"X-API-Version","schema":{"enum":["1.0.0"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/operate.ThreadControlRequest","summary":"requestBody","description":"Thread control action to perform"}}},"description":"Thread control action to perform","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/operate.ThreadControlResponse"}}},"description":"Thread control action result with messaging product identifier"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/operate.StandardError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/operate.StandardError"}}},"description":"Unauthorized"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/operate.StandardError"}}},"description":"Too many requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/operate.StandardError"}}},"description":"Server error"}},"summary":"Transfer thread control","tags":["Operate"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.360dialog.com/docs/mba/api-ref/operate/transfer-thread-control.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
