Register a webhook
Send aPOST request to /webhooks with the URL you want to receive events at and the list of event types you want to subscribe to.
POST /webhooks
string
required
The HTTPS URL Waply will send event payloads to. Must use
https://. Plain http:// URLs are rejected.string[]
required
Array of event type strings to subscribe to. See Event types for the full list.
secret field. Store this secret securely — you will use it to verify that incoming webhook requests genuinely come from Waply.
List webhooks
GET /webhooks
Returns all webhooks registered on your account.Event types
Subscribe to any combination of the following event types when registering a webhook:Webhook payload
Every event Waply sends to your endpoint has the same envelope structure:data object varies by event type and matches the corresponding API object (Message, Conversation, Contact, or Broadcast).
Verify the webhook signature
Waply signs every webhook request with an HMAC-SHA256 signature so you can confirm it came from Waply and not a third party. The signature is sent in theX-Waply-Signature header as a hex string.
To verify the signature, compute the HMAC-SHA256 of the raw request body using your webhook secret and compare it to the value in the header.
Always use your raw request body (before JSON parsing) when computing the signature. Parsing and re-serialising the JSON may change whitespace or key ordering, which will cause the comparison to fail.
Delete a webhook
DELETE /webhooks/
Unregisters a webhook. Waply immediately stops sending events to the associated URL.string
required
The ID of the webhook to delete.