curl --request POST \
--url https://api.wppfy.com/newsletter/messages/delete \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"jid": "120363123456789012@newsletter",
"messageid": "3EB0B4302B3A8A52F7A1"
}
'{
"response": {
"jid": "120363123456789012@newsletter",
"targetmessageid": "3EB0B4302B3A8A52F7A1",
"targetserverid": 12345,
"messageid": "3EB01234567890ABCDEF",
"serverid": 12346
}
}{
"error": "messageid or serverid is required"
}{
"error": "client not found"
}{
"error": "newsletter message not found in recent history"
}{
"error": "connection closed"
}Newsletters and Channels
Delete recent channel message
Deletes a recent newsletter post directly on WhatsApp.
This route:
- does not depend on locally stored messages
- revokes the post directly in the WhatsApp channel
- accepts locating the post by
messageidorserverid
Notes:
- use
jidto identify the channel - send at least one of
messageidandserverid countandmaxpagescontrol the search window in the channel
POST
/
newsletter
/
messages
/
delete
curl --request POST \
--url https://api.wppfy.com/newsletter/messages/delete \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"jid": "120363123456789012@newsletter",
"messageid": "3EB0B4302B3A8A52F7A1"
}
'{
"response": {
"jid": "120363123456789012@newsletter",
"targetmessageid": "3EB0B4302B3A8A52F7A1",
"targetserverid": 12345,
"messageid": "3EB01234567890ABCDEF",
"serverid": 12346
}
}{
"error": "messageid or serverid is required"
}{
"error": "client not found"
}{
"error": "newsletter message not found in recent history"
}{
"error": "connection closed"
}Authorizations
Body
application/json
Channel JID. Accepts the full format 120363123456789012@newsletter or just the numeric identifier.
Example:
"120363123456789012@newsletter"
Logical ID of the message in the channel.
Example:
"3EB0B4302B3A8A52F7A1"
Sequential identifier of the post in the channel.
Required range:
x >= 1Example:
12345
Number of messages fetched per page when locating the post.
Required range:
x >= 1Example:
100
Maximum number of pages fetched when locating the post.
Required range:
x >= 1Example:
5
Response
Channel message deleted successfully
Show child attributes
Show child attributes
