wakit
Webhooks

Overview

Get notified in real-time when events occur in wakit.

wakit can notify your server when messages and conversations change. Configure webhooks per organization through the UI (Settings > Webhooks) or via the REST API.

Configuration

FieldTypeDescription
urlstringThe endpoint URL to receive webhook events
tokenstring (optional)Sent as Authorization: Bearer {token} header
table_nameenummessages or conversations
operationsarray["insert"], ["update"], or ["insert", "update"]

How it works

  1. An event occurs (e.g., new incoming message)
  2. A database trigger fires and checks for matching webhook subscriptions
  3. For each match, wakit sends a POST request to your URL with the event data
  4. Up to 3 webhooks per organization per event are supported

Headers

POST /your-webhook-endpoint HTTP/1.1
Content-Type: application/json
Authorization: Bearer {token}

The Authorization header is only included if a token is configured.

Delivery

  • Webhooks are sent asynchronously via pg_net
  • Delivery is best-effort with no automatic retries
  • Failed deliveries are not retried — monitor your endpoint for errors
  • Webhook events are sent within seconds of the original event

On this page