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

Parameters: accept_chat
NameTypeDescription
chat_id string required string Chat ID from list_chats.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/jivochat/chats/chat_8c41d2/accept \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("jivochat", "accept_chat", {"chat_id":"chat_8c41d2"})
Node.js
const result = await cotlet.call('jivochat', 'accept_chat', {"chat_id":"chat_8c41d2"});
CLI
cotlet call jivochat accept_chat --data '{"chat_id":"chat_8c41d2"}'

Example response

JSON

{
  "chat_id": "6f1a2b3c",
  "status": "accepted",
  "tab": "my_dialogs"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.