Webhooks
Receive signed notifications when mail and domains change.
Webhooks push events to your HTTPS endpoint so you do not have to poll.
Create
curl -X POST https://api.postbound.app/webhooks \
-H "Authorization: Bearer pb_…" \
-H "Content-Type: application/json" \
-d '{
"endpoint": "https://example.com/hooks/postbound",
"events": ["email.delivered", "email.bounced", "email.complained"]
}'| Field | Description |
|---|---|
endpoint | HTTPS URL (HTTP webhooks) or Discord/Teams URL depending on type |
events | Array of event type strings |
type | Optional: http (default), discord, or teams |
For http webhooks, the create response includes a one-time signing_secret (whsec_…). Store it securely.
Manage
GET /webhooks
GET /webhooks/:id
PATCH /webhooks/:id
DELETE /webhooks/:id
POST /webhooks/:id/testPOST …/test sends a webhook.test event so you can validate connectivity and signature handling.
Delivery
HTTP deliveries include Standard Webhooks headers:
Webhook-IdWebhook-TimestampWebhook-Signature(v1,…)- User-Agent
Postbound-Webhooks/1.0
Failed deliveries are retried. Discord and Teams use their native message formats instead of the signed HTTP envelope.
Plan limits
Each plan caps how many webhook endpoints you can create. See Plans.