daypress
admin route/d-admin/webhooks · /d-admin/plugins
doc versionv1.0.4
reading time5 min read
section group23 · Growth & Marketing
Docs/Growth & Marketing
/d-admin/webhooks · /d-admin/plugins5 min readv1.0.4

Branded Shortlinks, HMAC Webhooks, Modules & GDPR Privacy

Connect Daypress to external automation pipelines and meet EU privacy requirements natively with /go/* shortlinks, HMAC-signed outbound webhooks (/d-admin/webhooks), toggleable native modules (/d-admin/plugins), and built-in GDPR data tools.

Create clean vanity links like https://yourdomain.com/go/keynote with 301, 302, or 307 status codes via /d-admin/webhooks or daypress_manage_shortlinks. Every redirect logs cookieless click counts, referrers, and UTM parameters in SQLite.

http://localhost:8090/d-admin/webhooks — Shortlinks & Signed Webhooks
Daypress Shortlinks and Webhooks screen showing /go/launch-deck shortlink counter and HMAC-signed outbound webhook configuration
Tools -> Shortlinks & Webhooks (/d-admin/webhooks) manages /go/* campaign links and signed event deliveries with 1-click replay.

Outbound HMAC-SHA256 webhooks & signature verification

Subscribe HTTPS endpoints (generic JSON, Slack, or Discord) to CMS lifecycle events (post.published, post.updated, form.submitted, subscriber.confirmed, comment.created, deploy.completed). Outbound requests block private/loopback IPs (SSRF protection) and attach an X-Daypress-Signature-256 header:

typescript
// Node.js / TypeScript: Verifying X-Daypress-Signature-256
import crypto from "node:crypto";

export function verifyDaypressWebhook(rawBody: Buffer, headerSig: string, secret: string): boolean {
  const expected = "sha256=" + crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
  return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(headerSig));
}

Native modules (/d-admin/plugins) & GDPR privacy tools

  • Built-in Native Modules (/d-admin/plugins): Enable or disable compiled-in Rust modules per site—daypress-forms, daypress-newsletters, daypress-webhooks, daypress-ab-testing, Header & Footer Code Snippets (code-snippets), and floating WhatsApp Chat (whatsapp-chat).
  • <2 KB GDPR Cookie & Script Banner (/d-admin/options-privacy): Categorize optional third-party scripts (Necessary, Analytics, Marketing) so non-essential tags only execute after explicit visitor opt-in.
  • Personal Data Export & Erasure: Fulfill GDPR Right of Access and Right to Erasure requests in two clicks at Tools → Export Personal Data (/d-admin/export-personal-data) and Tools → Erase Personal Data (/d-admin/erase-personal-data).