Accept a chat
Accept a waiting chat from the Inbox so it moves to My dialogs.
POST https://cotlet.dev/api/v1/jivochat/chats/{chat_id}/accept
write Confirm
accept_chat takes a chat no agent has accepted yet and makes you its agent, so the client sees that someone is there. A chat that another agent accepted first fails with a clear error and nothing changes. After it, reply_to_chat can write in the chat. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| chat_id string required | string | Chat ID from list_chats. |
Request
curl -X POST https://cotlet.dev/api/v1/jivochat/chats/chat_8c41d2/accept \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("jivochat", "accept_chat", {"chat_id":"chat_8c41d2"}) const result = await cotlet.call('jivochat', 'accept_chat', {"chat_id":"chat_8c41d2"}); cotlet call jivochat accept_chat --data '{"chat_id":"chat_8c41d2"}' Example response
{
"chat_id": "6f1a2b3c",
"status": "accepted",
"tab": "my_dialogs"
}