Create webhook
Creates a webhook subscribed to ONE WhatsApp number. The number comes from the key scope (number key), the x-whatsapp-number-id header or the whatsappNumberId body field — if the body contradicts the key scope → 400 NUMBER_MISMATCH; no resolvable number → 400 NUMBER_REQUIRED; another tenant’s number → 404 NUMBER_NOT_FOUND. events picks what gets delivered: an empty/omitted list dispatches NOTHING (there is no implicit “subscribe to all”; use ”*” for all) and events the number’s provider cannot emit are silently dropped. The signing secret is NEVER returned.
Authorizations
Your ps_ API key
Headers
Scopes to a single number (required for per-number OAuth grants).
Body
HTTPS endpoint that will receive the events.
"https://hooks.acme.com/whatsapp"
Display name (default: the URL hostname).
"n8n"
Events to subscribe to (e.g. ["message.received"]); "*" = all. Empty/omitted = dispatches nothing.
"[\"message.received\", \"message.delivered\"]"
Target number — only needed with a tenant key and no number header; with a number key it must match the scope (400 NUMBER_MISMATCH).
"num_01HZX..."
Response
Create webhook