v1

latestOpenAPI 3.1.02026-07-1413113265.9 KB
chat

clear chat messages

Clears all messages from a specific chat

post/instances/{id}/client/action/clear-chat-messages

Path parameters

idinteger required

Instance ID

Request body

chatIdstring required

Chat ID <countrycode_short><usernumber>@c.us or @g.us for groups

Example request

{
  "chatId": "50664083362@c.us"
}

Response

Successfully cleared chat messages

status'success' | 'error'

Example response

{
  "data": {
    "messagesCleared": true
  },
  "links": {
    "self": "https://waapi.app/api/v1/instances/1/client/action/clear-chat-messages"
  },
  "status": "success"
}