Reply to a chat

Send a text message to the client in a chat you accepted.

POST https://cotlet.dev/api/v1/jivochat/chats/{chat_id}/replies

write Confirm

reply_to_chat sends one message under your agent name in a chat in My dialogs. The client sees it at once. It sends text only: no files or photos. A chat in the Inbox must be accepted first with accept_chat. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: reply_to_chat
NameTypeDescription
chat_id string required string Chat ID from list_chats.
text string required string Message text, plain text.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/jivochat/chats/6f1a2b3c/replies \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Yes, it is in stock and ships within one business day."}'
Python
result = client.call("jivochat", "reply_to_chat", {"chat_id":"6f1a2b3c","text":"Yes, it is in stock and ships within one business day."})
Node.js
const result = await cotlet.call('jivochat', 'reply_to_chat', {"chat_id":"6f1a2b3c","text":"Yes, it is in stock and ships within one business day."});
CLI
cotlet call jivochat reply_to_chat --data '{"chat_id":"6f1a2b3c","text":"Yes, it is in stock and ships within one business day."}'

Example response

JSON

{
  "chat_id": "6f1a2b3c",
  "message_id": "m_5d21",
  "status": "sent",
  "sent_at": "2026-10-19T09:44:10Z"
}

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.