External API
Change a conversation's status
Change a livechat's or ticket's status from your own system – open, resolve or close it.
Changes a livechat’s or ticket’s status from your own system – for example, to resolve a ticket when the refund goes through in your billing system. Live agents see the change in the Inbox straight away. 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/update-status
In the body, send the new status. In the address, replace anything starting with YOUR_ with your own – YOUR_CONVERSATION_ID is the livechat’s or ticket’s id:
{ "status": "resolved" }
| Field | Required | What it is |
|---|---|---|
status | Yes | open, pending, overdue, resolved or closed |
What each status does
status | Shown in Proto as | What happens |
|---|---|---|
open | Open | Only the status changes. |
pending | Pending | Only the status changes. |
overdue | Overdue | Only the status changes. |
resolved | Resolved | For a livechat, the live agent and team are unassigned, and your AI agent takes over the chat again. You can reopen it later. |
closed | Closed | Livechats only – this request can’t close a ticket. The customer’s chat window shows the chat as closed. Assignments stay. You can’t change a closed conversation again. |
Important: if your teamspace has Mandatory tagging turned on, a conversation needs enough tags before you can resolve or close it.
Response
Proto replies 200 OK:
{ "success": true }
success is always true. If the conversation already has this status, Proto changes nothing.
Errors
| You get | What it means |
|---|---|
400 | Mandatory tagging is on, and the conversation has too few tags. detail is the number it needs, such as "2". |
403 | You tried to close a ticket, or the conversation is already closed. |
404 | No conversation with this ID is in your teamspace. |
422 | status is missing or isn’t one of the five. |
For errors any request can return, see If something goes wrong.