curl --request POST \
--url https://api.l2msg.com/whatsapp/webhook/set/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"webhook": {
"enabled": true,
"url": "<string>",
"webhookByEvents": true,
"webhookBase64": true,
"events": []
}
}
'