Actions63
- Instancia Actions
- Mensagem Actions
- Grupo Actions
- Chat Actions
- Perfil Actions
- Evento Actions
- Integração Actions
Evento → Webhook
AI-generatedSummary
Define or check a webhook for the Baileys API Evento resource.
Inputs
- instanceName (required) — Digite o nome da instância que vai enviar a mensagem
- resourceForWebhook (required) — Escolha entre definir um novo webhook ou verificar o webhook
- enabled — Whether to enable or disable integration with Webhook
- webhookUrl — Digite a URL que vai receber os eventos do Webhook
- webhookByEvents — Whether to create a route for each event by appending the event name to the end of the URL
- webhookBase64 — Whether to send media data in base64 format in the webhook
- webhookEvents — Events to subscribe to for the webhook
Output shape
JSON array
The execute method in bundle.js dispatches to n.resourceOperationsFunctions[resource][operation] and returns [this.helpers.returnJsonArray(s)], so the result is output as a JSON array on the main output.
Examples
Example 1: Set up a webhook for event subscription
resource: Evento, operation: Webhook, resourceForWebhook: setWebhook, instanceName: myInstance, enabled: true, webhookUrl: https://example.com/webhook, webhookByEvents: true, webhookEvents: [SEND_MESSAGE, RECEIVE_MESSAGE]