Skip to main content
POST
/
message
/
delete
Apagar mensagem
curl --request POST \
  --url https://apizap.loce.io/v1/message/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sessionId": "<string>",
  "messageId": "<string>",
  "phone": "<string>"
}
'
{
  "success": true,
  "message": "<string>"
}
POST /message/delete
await zap.deleteMessage('my-session-id', {
  messageId: '65b3...',
});

Authorizations

Authorization
string
header
required

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

Body

application/json
sessionId
string
required
messageId
string
required
phone
string
required

Response

200 - application/json

Mensagem apagada ou marcada para remoção.

success
boolean
message
string