Delivery contract
Webhook endpoints receive CloudEvents 1.0 envelopes for the event types they subscribe to (see the event catalog at /docs/webhooks/events). Every delivery is signed with Standard Webhooks headers: webhook-id, webhook-timestamp and webhook-signature, with an HMAC-SHA256 secret by default or an Ed25519 key pair when the endpoint is created with signatureScheme ED25519. Verify the signature against the raw request body before parsing or acting on the payload (see /docs/webhooks/signatures).
Endpoints must answer 2xx within 15 seconds. A delivery gets up to 8 attempts over about 27 hours; the schedule, dead letter and replay rules are on /docs/webhooks/retries-and-replay.
- Return 2xx only after you have stored the event.
- Deduplicate by the event ID.
- Do slow work after you respond, not before.
- Check the delivery records before you replay a delivery.
Failure handling
- Expect duplicate deliveries.
- Do not log webhook secrets or sensitive payload fields.
- Replay only after your receiver is fixed and handles duplicates.
- If an endpoint is compromised, disable it and rotate its secret.
Manage endpoints through the API
Create endpoints with POST /api/v2/webhook-endpoints (url, eventFilters and idempotencyKey; scope webhooks.write). List and read them with GET /api/v2/webhook-endpoints and GET /api/v2/webhook-endpoints/{endpointId} (scope webhooks.read), change or disable them with PATCH, and remove them with DELETE. POST /api/v2/webhook-endpoints/{endpointId}/test sends a com.wellfriend.webhook.test.v2 event. GET /api/v2/webhook-deliveries lists deliveries and POST /api/v2/webhook-deliveries/{deliveryId}/replay replays one. While you build a receiver, POST /api/v2/webhooks/verify checks a signature for you.
Endpoint lifecycle
- Create an HTTPS endpoint for the event types you need.
- Store the signing secret, which is shown once, in a secret manager.
- Send a test delivery before your receiver acts on real events.
- Check delivery records for attempts and final state.
- Rotate the signing secret with the rotation operation.
- Replay a failed delivery only after your receiver is fixed and handles duplicates.
How to respond
Return 2xx once the event is stored or queued on your side, and do slow work afterwards. Return an error for a temporary failure so the delivery is retried. For a duplicate event, return 2xx.