Webhooks
Webhooks allow you to receive real-time notifications about incoming messages and events.
Configuring Webhooks
- Navigate to Webhooks in the sidebar.
- Click Add Webhook.
- Name: Give your webhook a descriptive name.
- URL: The endpoint where WhatsSpot will send POST requests.
- Secret (Optional): A string used to sign the payload for security.
- Message Types: Select specific types (Text, Image, etc.) or leave empty for all.
- Device: Assign to a specific device or "All Devices".
- Click Create.
Verifying Webhooks
Check Logs
You can view the delivery logs for any webhook directly in the dashboard:
- Click the Activity Icon (Graph) next to a webhook.
- See the list of recent attempts, status codes (200, 404, etc.), and response times.
- Click Refresh to see new events.
Security
If you provided a Secret, WhatsSpot includes a signature header X-Webhook-Signature in every request. You should verify this signature to ensure the request came from us.