External API
Add an internal note
Add a note for your live agents to a livechat or ticket. The customer never sees it.
Adds a note for your live agents to a livechat or ticket – for example, Refund approved in billing or the customer’s account status. The note appears in the conversation in the Inbox, as if a live agent wrote it. The customer never sees it, and it doesn’t change the conversation’s status or who it’s assigned to. Not sure how to send a request? See Make your first request.
Request
Send a POST request to:
https://v3-api.proto.cx/api/platform/v1/conversations/YOUR_TEAMSPACE_ID/YOUR_CONVERSATION_ID/send-internal-note
In the body, send the note and the live agent it’s from. In the address and the body, replace anything starting with YOUR_ with your own – YOUR_CONVERSATION_ID is the livechat’s or ticket’s id:
{
"user_id": "YOUR_USER_ID",
"content": "<p>Customer is on the Pro plan – refund approved.</p>"
}
| Field | Required | What it is |
|---|---|---|
user_id | Yes | The user ID of the live agent the note is from, from List users by status |
content | Yes | The note, as HTML or plain text. It can’t be empty. |
The live agent needs permission to manage the conversation. One of these must be true:
- it’s assigned to them
- it’s assigned to one of their teams
- they can manage all livechats or tickets
Unless it’s assigned to them, they also need permission to transfer and take over conversations.
Response
Proto replies 200 OK:
{ "success": true }
success is always true.
Errors
| You get | What it means |
|---|---|
400 | The conversation is resolved or closed, or the user isn’t found or doesn’t have permission. |
404 | content is empty, or no conversation with this ID is in your teamspace. |
For errors any request can return, see If something goes wrong.