Skip to main content
POST
/
webhook
/
set
/
{instance}
Set Webhook
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": [
      "APPLICATION_STARTUP"
    ]
  }
}
'
{
  "webhook": {
    "instanceName": "teste-docs",
    "webhook": {
      "url": "https://example.com",
      "events": [
        "APPLICATION_STARTUP"
      ],
      "enabled": true
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.l2msg.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

apikey
string
header
required

Your authorization key header

Path Parameters

instance
string
required

Name of the instance

Body

application/json
webhook
object
required

Webhook

Response

201 - application/json

Created

webhook
object