Skip to content
Docs

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" }
FieldRequiredWhat it is
statusYesopen, pending, overdue, resolved or closed

What each status does

statusShown in Proto asWhat happens
openOpenOnly the status changes.
pendingPendingOnly the status changes.
overdueOverdueOnly the status changes.
resolvedResolvedFor a livechat, the live agent and team are unassigned, and your AI agent takes over the chat again. You can reopen it later.
closedClosedLivechats 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 getWhat it means
400Mandatory tagging is on, and the conversation has too few tags. detail is the number it needs, such as "2".
403You tried to close a ticket, or the conversation is already closed.
404No conversation with this ID is in your teamspace.
422status is missing or isn’t one of the five.

For errors any request can return, see If something goes wrong.

Stuck? Ask Advisor in the Proto dashboard, or contact us.

© Proto