Pass or Release Conversation Control
POST
/v1/conversations/{id}/control
const url = 'https://example.com/v1/conversations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/control';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"handoff_message":"example","integration_id":"example","metadata":"example","reason":"example","team_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","to":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/conversations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/control \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "handoff_message": "example", "integration_id": "example", "metadata": "example", "reason": "example", "team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "to": "example" }'Transitions conversation control between built-in automations (‘bot’), human inbox agents (‘agents’), and external bot integrations (‘external’).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Conversation UUID
Request Body required
Section titled “Request Body required ” Media type application/json
object
handoff_message
Optional system message sent to the visitor on handoff to agents.
string | null
integration_id
Integration identifier when to == "external".
string | null
metadata
Optional structured context metadata.
reason
Reason for passing or releasing control.
string | null
team_id
Optional target team UUID when to == "agents".
string | null format: uuid
to
required
Target responder: "bot", "agents", or "external".
string
Example generated
{ "handoff_message": "example", "integration_id": "example", "metadata": "example", "reason": "example", "team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "to": "example"}Responses
Section titled “ Responses ”Control updated
Media type application/json
object
conversation_id
required
string format: uuid
from
required
string
reason
required
string
to
required
string
Example generated
{ "conversation_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "from": "example", "reason": "example", "to": "example"}Bad Request - Invalid responder target
Unauthorized - Invalid API Key
Not Found - Conversation not found in tenant