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"
}Groups and Communities
Configure disappearing messages in a group
Sets the disappearing messages timer of a group.
Accepted duration values:
0oroffto disable1d7d90d
Notes:
- this endpoint is for groups only
- requires group administrator privileges
- if the given identifier is not a group, the API returns an error instructing to use
/chat/ephemeral - on success, the response returns the chat and the updated group data
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"
}Authorizations
Body
application/json
Group JID in xxxxx@g.us format
Example:
"120363339858396166@g.us"
Desired duration for disappearing messages
Example:
"1d"
Response
Timer updated successfully
Example:
"Ephemeral timer updated successfully"
Represents a conversation/ticket in the system
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Represents a group/collective conversation
Show child attributes
Show child attributes
Indicates whether the group details need to be fetched again
Example:
false
