curl --request POST \
--url https://api.wppfy.com/group/ephemeral \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"groupjid": "120363339858396166@g.us",
"duration": "1d"
}
'{
"response": "Ephemeral timer updated successfully",
"chat": {
"wa_chatid": "120363339858396166@g.us",
"wa_ephemeralExpiration": 86400,
"wa_isGroup": true
},
"ephemeral": {
"enabled": true,
"seconds": 86400,
"label": "1d"
},
"group": {
"JID": "120363339858396166@g.us",
"IsEphemeral": true,
"DisappearingTimer": 86400
},
"needs_refresh": false
}{
"error": "invalid duration. Allowed values: 0, off, 1d, 7d, 90d"
}{
"error": "user is not an admin of this group"
}{
"error": "Error updating chat ephemeral timer: connection closed"
}Grupos e Comunidades
Configurar mensagens temporárias em grupo
Define o temporizador de mensagens temporárias (disappearing messages) de um grupo.
Valores aceitos para a duração:
0ouoffpara desativar1d7d90d
Observações:
- este endpoint é apenas para grupos
- requer privilégios de administrador do grupo
- se o identificador informado não for de grupo, a API retorna erro orientando usar
/chat/ephemeral - após sucesso, a resposta devolve o chat e os dados atualizados do grupo
POST
/
group
/
ephemeral
curl --request POST \
--url https://api.wppfy.com/group/ephemeral \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"groupjid": "120363339858396166@g.us",
"duration": "1d"
}
'{
"response": "Ephemeral timer updated successfully",
"chat": {
"wa_chatid": "120363339858396166@g.us",
"wa_ephemeralExpiration": 86400,
"wa_isGroup": true
},
"ephemeral": {
"enabled": true,
"seconds": 86400,
"label": "1d"
},
"group": {
"JID": "120363339858396166@g.us",
"IsEphemeral": true,
"DisappearingTimer": 86400
},
"needs_refresh": false
}{
"error": "invalid duration. Allowed values: 0, off, 1d, 7d, 90d"
}{
"error": "user is not an admin of this group"
}{
"error": "Error updating chat ephemeral timer: connection closed"
}Autorizações
Corpo
application/json
JID do grupo no formato xxxxx@g.us
Exemplo:
"120363339858396166@g.us"
Duração desejada para mensagens temporárias
Exemplo:
"1d"
Resposta
Temporizador atualizado com sucesso
Exemplo:
"Ephemeral timer updated successfully"
Representa uma conversa/chamado no sistema
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Representa um grupo/conversa coletiva
Show child attributes
Show child attributes
Indica se os detalhes do grupo precisam ser consultados novamente
Exemplo:
false
