chat
clear chat messages
Clears all messages from a specific chat
post/instances/{id}/client/action/clear-chat-messages
Request
- Base URL: https://waapi.app/api/v1
- URL: https://waapi.app/api/v1/instances/{id}/client/action/clear-chat-messages
- Auth: HTTP bearer
Path parameters
idinteger required
Instance ID
Request body
Example request
{
"chatId": "50664083362@c.us"
}Response
Request reached the instance. data.status reports whether the action was carried out; on error data carries message and explanation. Payload: Successfully cleared chat messages.
Example response
{
"data": {
"status": "success",
"data": {
"messagesCleared": true
}
},
"links": {
"self": "https://waapi.app/api/v1/instances/1/client/action/clear-chat-messages"
},
"status": "success"
}Changes
No recorded changes to this operation across all 1 revision of this API.