Assign conversation
Move a Conversation to another Inbox or Agent.
POST https://cotlet.dev/api/v1/gladly/conversations/{conversation_id}/assign
write Confirm
Uses the Conversation Assignment menu: the new Inbox or Agent replaces the previous one, and the change shows in the Conversation Timeline. Returns the new assignee. A colleague receives the customer. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| conversation_id string required | string | Conversation ID from list_my_customers, list_conversations or get_customer. |
| inbox_id string | string | Inbox ID from list_assignees. |
| agent_id string | string | Agent ID from list_assignees. |
Request
curl -X POST https://cotlet.dev/api/v1/gladly/conversations/conversation_8c41d2/assign \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("gladly", "assign_conversation", {"conversation_id":"conversation_8c41d2"}) const result = await cotlet.call('gladly', 'assign_conversation', {"conversation_id":"conversation_8c41d2"}); cotlet call gladly assign_conversation --data '{"conversation_id":"conversation_8c41d2"}' Example response
{
"conversation_id": "HXRqKC5GSV-jAlq0-sxYTA",
"assignee": {
"inbox": "Orders",
"agent": null
}
}