Skip to main content
Create Webhook

Description

Create a webhook to receive real-time notifications of Sendly events.

Parameters

url
string
required
HTTPS URL where to receive notifications. Example: https://yourdomain.com/webhooks/sendly
events
string[]
required
Array of events to receive.Available events:
  • email.sent: Email was sent
  • email.delivered: Email was delivered
  • email.bounced: Email bounced
  • email.failed: Send failed
  • email.opened: Email was opened
  • email.clicked: Link was clicked

Response

webhook
object
Created webhook object with id, url, active, created_at
signing_key
string
Secret key for validating webhooks. Save this securely!

Examples

Validate Webhook Signature

Webhook Events

email.delivered

email.opened

email.clicked

Retries

If your webhook returns non-2xx status, Sendly will retry:
  • 1st: 5 minutes later
  • 2nd: 30 minutes later
  • 3rd: 2 hours later
  • 4th: 24 hours later

Best Practices

Always validate the x-sendly-signature header ✅ Respond quickly (< 30 seconds) ✅ Use HTTPS required ✅ Store key securely in environment variables ✅ Log events for audit trail ✅ Handle idempotence - process each event once
Need help? Contact support@usesendly.app