Skip to content

Change the status of a chat

POST
/openapi/chat/status/{chatId}/{status}
curl --request POST \
--url https://open-api.replyco.com/openapi/chat/status/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/0%20-%20Open \
--header 'Authorization: Bearer <token>'

Updates the chat status (e.g., Open, Closed, Pending). This action is logged in the changes history.

Available statuses:

  • Open: Active chat
  • Closed: Resolved chat
  • Pending: Awaiting response
chatId
required
string format: uuid

Chat ID to update

status
required
integer format: int32
Allowed values: 0 - Open 1 - Closed

New status to set for the chat

Status was successfully changed

Invalid status value

User is not authenticated or authorized

Chat with the specified ID was not found