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
Configurar mensagens temporárias em chat privado
Define o temporizador de mensagens temporárias (disappearing messages) de um chat privado.
Valores aceitos para a duração:
0ouoffpara desativar1d7d90d
Observações:
- este endpoint é apenas para chats privados
- se o identificador informado for de grupo, a API retorna erro orientando usar
/group/ephemeral - a resposta inclui o chat com
wa_ephemeralExpirationatualizado
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"
}Autorizações
Corpo
application/json
