Event Types
Creating Subscriptions
The
secret is optional but recommended for signature verification.DLR Payload
Delivery reports notify of status changes:Status Values
submitted— Sent to carrierdelivered— Confirmed deliveryfailed— Delivery failedexpired— Validity period exceeded
Error Codes
MO Payload
Inbound messages from users:HMAC Signature Verification
Verify webhook authenticity using theX-Webhook-Signature header:
Retry Policy
Failed webhook deliveries are retried with exponential backoff:
After 3 failed attempts, the webhook is marked as failed and logged.
Testing Webhooks
Use the test endpoint to send sample events:Best Practices
- Respond quickly — Acknowledge with 200 status before processing
- Process async — Queue webhook data for background processing
- Verify signatures — Always validate
X-Webhook-Signature - Handle duplicates — Use
message_idfor idempotency - Monitor failures — Check failed webhook logs regularly