Skip to main content
POST
https://searchcompany-main.up.railway.app
/
api
/
store-email-in-notion
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"
}
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
string
required
Email address to add to waitlist
websiteUrl
string
The user’s website URL
referral
string
Referral source (e.g., the referring website)
utm_campaign
string
UTM campaign parameter for tracking

Response

success
boolean
true if added successfully
message
string
Status message
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:
PropertyValue
EmailSubmitted email (title)
Website URLUser’s website URL
ReferralReferral source
UTM CampaignUTM campaign parameter
Submitted AtTimestamp of submission
StatusSet 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.