Resend (Programs magic link email)
POST /api/subs/new sends the magic link using Resend.
- Fails the request if email sending fails.
- Sender and API key are configured via
RESEND_FROM and RESEND_API_KEY.
Cloudflare Turnstile
- Client fetches
/api/turnstile-site-key to render the widget.
- Server verifies the token when
TURNSTILE_SECRET is set.
- If Turnstile is disabled, submit button is enabled by default.
Mixpanel
- Server-side events use a
distinct_id derived from a peppered hash of email.
trackMixpanelSafe never blocks user flow.
MIXPANEL_API_HOST defaults to EU endpoint when unset.
- See mixpanel for event taxonomy and diagrams.
n8n
- Internal calendar flows proxy to n8n at
N8N_BASE.
POST /api/subs/new?calendar_id=internal → /webhook/subs/new.
GET /cal/internal.ics → /webhook/rc-cal.