- Introdução à megaAPI
- Componente n8n megaAPI
- InstanceController
- WebhookController
- SendMessageController
- ConfigController
- ChatController
- GroupController
Deletar mensagem
POST
https://apinocode01.megaapi.com.br/rest/chat/{{instance_key}}/deleteMessage
Requisição
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Exemplo:
Authorization: Bearer ********************
Parâmetros Bodytext/plain
Exemplo
Exemplo:{
"messageData": {
"to": "551199999999@s.whatsapp.net",
"key": {}
}
}
Exemplos de Requisição
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://apinocode01.megaapi.com.br/rest/chat/sua instance_key/deleteMessage' \
--header 'Content-Type: text/plain' \
--data-raw '{
"messageData": {
"to": "551199999999@s.whatsapp.net",
"key": {}
}
}'
Respostas
🟢200Success
application/json
Body
object {0}
Exemplo
{}