v46

latestOpenAPI 3.0.3raw.githubusercontent.com2025-05-151340367.2 KB
Webhook Controller

Set Webhook

Set Webhook for instance

post/webhook/set/{instance}

Path parameters

instancestring required

Name of the instance

Request body

enabledboolean required

enable webhook to instance

urlstring required

Webhook URL

webhookByEventsboolean required

Enables Webhook by events

webhookBase64boolean required

Sends files in base64 when available

eventsstring[] required

Events to be sent to the Webhook

Response

Created

Example response

{
  "webhook": {
    "instanceName": "teste-docs",
    "webhook": {
      "url": "https://example.com",
      "events": [
        "APPLICATION_STARTUP"
      ],
      "enabled": true
    }
  }
}