Lewati ke konten

Pass or Release Conversation Control

POST
/v1/conversations/{id}/control
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’).

id
required
string format: uuid

Conversation UUID

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"
}

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