A hosted webhook backend foundation with encrypted destinations and signing keys, durable event/delivery records, bounded retries and manual replay. The background delivery worker is explicitly separate from HTTP event intake.
Create a destination
Create a Code Deb project first and open Webhooks. Give the endpoint a label, HTTPS destination URL, and a list of exact event types. Only HTTPS on standard port 443 is accepted. Local, private, IP-literal and internal host destinations are rejected. The entire URL and signing secret are AES-256-GCM sealed at rest; UI listings reveal only the hostname.
The signing secret is shown once with the whsec_ convention. Store it in the receiver's server-side secret vault, not in frontend code.
Queue an event
Use an events:publish API key:
curl -X POST https://api.codedeb.com/api/developer/v1/events \
-H "Authorization: Bearer $CODEDEB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"orders.created","idempotencyKey":"order-2026-001","data":{"orderId":"order-001"}}'
The database enforces uniqueness for each project and idempotency key. A duplicate request reports its duplicate state rather than queuing another event. The API returns the queued event and delivery count, not a claim that the HTTP webhook reached the destination.
Verify signatures
Headers sent to the receiver:
webhook-id— immutable event message ID.webhook-timestamp— Unix seconds.webhook-signature—v1,followed by base64 HMAC-SHA256 overid.timestamp.rawBody.
Use the raw bytes exactly as received. Enforce a bounded timestamp tolerance and reject replayed IDs. The Webhook Kit SDK provides reusable signature verification helpers.
Delivery workers and retries
A service-side scheduled worker calls POST /api/developer/v1/jobs/deliver with a separate CODEDEB_DEVELOPER_JOB_TOKEN bearer secret. The database claims due attempts with FOR UPDATE SKIP LOCKED; only one worker owns a delivery lease. Each HTTP connection pins the validated public IPv4 destination for TLS and disables redirects to defend against DNS rebinding and SSRF. Timeouts are bounded. Non-2xx responses are retried with capped exponential delay, up to eight attempts.
Operational gate: the worker must be scheduled and its authorization secret configured before describing delivery as active. The current API implementation does not silently run a worker from an unrelated page load or a browser.
Authorized project owners can also disable a webhook destination without deleting its historical delivery logs or signing metadata. Disabled endpoints do not receive new fan-out events; retained delivery events remain visible for audit and replay policies.
Logs and replay
The project workspace lists last status, attempts, HTTP status, delivery and update time without returning destination URLs, payloads, encryption envelopes or tokens. An owner may replay a terminal failed delivery; replays reset the attempt budget. External receiver idempotency is still required because network delivery is at-least-once.
Endpoint monitoring and notifications
The durable delivery history supports failure monitoring. Automated email/Slack delivery alerts and scheduled heartbeat checks are not shipped until configured against a worker and channel approved by the account owner. Silence from an unscheduled worker must not be reported as healthy delivery.
Security checks
Test malicious URL input, DNS rebinding, replay attempts, wrong signatures, timing attacks, unauthorized endpoint reads, retry exhaustion, worker takeover and service outages. Apply database RLS with no browser grants and keep encryption keys independent from job tokens.
API Hub · Webhook Kit SDK · Observability
Free-tier scheduler
The secure worker source is tracked at infra/cloudflare/developer-jobs/worker.mjs. A Cloudflare Cron Trigger can run the worker every five minutes, requesting pending delivery jobs through a dedicated bearer token. The schedule is not considered active unless the Cloudflare secret binding and trigger are both confirmed. It has no public management route and returns 404 to ordinary HTTP requests. The complete token must be installed in Cloudflare as a secret binding, not committed to Git. Only mark delivery scheduling active after the Worker deployment and Cron Trigger are confirmed.