Save an internal comment on a contact
Requires a signed-in session (Authorization Bearer) and current membership of the workspace in X-Workspace-Id. Any member may comment on any contact in that workspace. The server builds the row: only body, contact, msg_type (comment or note), user_name and a client UUID are taken from the request; direction, internal flag and time are set by the server, and the verified author is stored in metadata.author_user_id (user_id stays empty so reports do not count comments as agent messages). A client id is used once: re-sending it within 24 hours by the same author for the same contact returns the first row; any other reuse, in any workspace, is 409. Mentioned users who are not current members are dropped.
https://api.channelautomation.com/api/livechat2/save-commentAuthorization
Header parameters
Request body JSON required
Returns
200
{ data: [row], mentionsRecorded } — mentionsRecorded is false only when mentions could not be recorded, so no mention emails will send. Re-sending the same id returns the first row, and records its mentions if none were recorded yet.
