Public endpoint for the marketing website waitlist form. Adds the email to a Notion database for waitlist management.
This is a public endpoint - no authentication required. Used on the
searchcompany.ai landing page.
Request Body
Email address to add to waitlist
Referral source (e.g., the referring website)
UTM campaign parameter for tracking
Response
true if added successfully
curl -X POST https://searchcompany-main.up.railway.app/api/store-email-in-notion \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"websiteUrl": "https://example.com",
"referral": "google.com",
"utm_campaign": "summer_launch"
}'
{
"success": true,
"message": "Added to waitlist"
}
Notion Integration
When submitted, a new page is created in the Notion waitlist database with:
| Property | Value |
|---|
Email | Submitted email (title) |
Website URL | Userβs website URL |
Referral | Referral source |
UTM Campaign | UTM campaign parameter |
Submitted At | Timestamp of submission |
Status | Set to βWaitlistβ |
When you move a card to βSend Emailβ in Notion, the /webhooks/send-onboarding-email webhook automatically sends the onboarding email via Loops.