POST /webhooks/send-onboarding-email
Handles Notion database automation webhooks to send onboarding emails via Loops.Purpose
This webhook is triggered by Notion automations when a CRM cardβs status changes to βSend Emailβ. It:- Receives the webhook payload from Notion
- Extracts the email address
- Sends an onboarding email via Loops transactional API
Architecture
Notion Payload Structure
The webhook expects a Notion automation payload with this structure:Environment Variables
| Variable | Description |
|---|---|
LOOPS_API_KEY | Loops API authentication key |
LOOPS_TRANSACTIONAL_ID | ID of the transactional email template |
Loops Integration
The endpoint sends a transactional email via Loops:- Uses the configured transactional template
- Automatically adds recipient to audience
- Timeout: 10 seconds