curl --request POST \
--url https://api.wppfy.com/chat/ephemeral \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"number": "5511999999999@s.whatsapp.net",
"duration": "7d"
}
'{
"response": "Ephemeral timer updated successfully",
"chat": {
"wa_chatid": "5511999999999@s.whatsapp.net",
"wa_ephemeralExpiration": 604800,
"wa_isGroup": false
},
"ephemeral": {
"enabled": true,
"seconds": 604800,
"label": "7d"
}
}{
"error": "invalid duration. Allowed values: 0, off, 1d, 7d, 90d"
}{
"error": "Error updating chat ephemeral timer: connection closed"
}Chats
Configure disappearing messages in a private chat
Sets the disappearing messages timer of a private chat.
Accepted duration values:
0oroffto disable1d7d90d
Notes:
- this endpoint is for private chats only
- if the given identifier belongs to a group, the API returns an error instructing to use
/group/ephemeral - the response includes the chat with the updated
wa_ephemeralExpiration
POST
/
chat
/
ephemeral
curl --request POST \
--url https://api.wppfy.com/chat/ephemeral \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"number": "5511999999999@s.whatsapp.net",
"duration": "7d"
}
'{
"response": "Ephemeral timer updated successfully",
"chat": {
"wa_chatid": "5511999999999@s.whatsapp.net",
"wa_ephemeralExpiration": 604800,
"wa_isGroup": false
},
"ephemeral": {
"enabled": true,
"seconds": 604800,
"label": "7d"
}
}{
"error": "invalid duration. Allowed values: 0, off, 1d, 7d, 90d"
}{
"error": "Error updating chat ephemeral timer: connection closed"
}Authorizations
Body
application/json
