Skip to main content
POST
/
instances
/
{id}
/
chats
/
{phone}
/
clear
Clear chat
curl --request POST \
  --url https://api.vzaps.com/instances/{id}/chats/{phone}/clear \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "delete_media": false
}
'
{
  "status": "ok"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Identificador publico da instancia no formato gerado pela plataforma: prefixo VZ seguido de caracteres alfanumericos.

Example:

"VZ9K2M4N8P1Q3R5S7T0WABCD01EF"

phone
string
required

Contact number (e.g. 5511999999999), group id, or full JID.

Example:

"5511999999999"

Body

application/json
delete_media
boolean
default:false

Response

Action completed

status
string
required
Example:

"ok"