Send private note

Add a message to a chat that only agents see.

POST https://cotlet.dev/api/v1/livechat/chats/{chat_id}/private-notes

write Confirm

Adds a private message to a chat. Other agents on the chat see it and the customer does not. Private notes belong to the Business and Enterprise plans. A sent note stays in the chat. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: send_private_note
NameTypeDescription
chat_id string required string Chat ID from list_chats or list_archived_chats.
body string required string Note text.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/livechat/chats/chat_8c41d2/private-notes \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"body":"body"}'
Python
result = client.call("livechat", "send_private_note", {"chat_id":"chat_8c41d2","body":"body"})
Node.js
const result = await cotlet.call('livechat', 'send_private_note', {"chat_id":"chat_8c41d2","body":"body"});
CLI
cotlet call livechat send_private_note --data '{"chat_id":"chat_8c41d2","body":"body"}'

Example response

JSON

{
  "chat_id": "PJ0MRSHTDG",
  "event_id": "ev_5531",
  "status": "sent",
  "visibility": "agents"
}

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.