cURL
curl --request POST \ --url https://api.l2msg.com/whatsapp/group/toggleEphemeral/{instance} \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data ' { "expiration": 123 } '
This response has no body data.
Toggle temporary messages on group
Your authorization key header
Name of the instance
Group remote JID
Time to expire message (in seconds)