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
| Name | Type | Description |
|---|---|---|
| chat_id string required | string | Chat ID from list_chats or list_archived_chats. |
| body string required | string | Note text. |
Request
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"}' result = client.call("livechat", "send_private_note", {"chat_id":"chat_8c41d2","body":"body"}) const result = await cotlet.call('livechat', 'send_private_note', {"chat_id":"chat_8c41d2","body":"body"}); cotlet call livechat send_private_note --data '{"chat_id":"chat_8c41d2","body":"body"}' Example response
{
"chat_id": "PJ0MRSHTDG",
"event_id": "ev_5531",
"status": "sent",
"visibility": "agents"
}