Skip to main content

Purpose

Stores visitor email submissions from the marketing website waitlist form into a Notion database.

Architecture

Internal Services

ServicePurpose
build_notion_propertiesFormats submission data for Notion API

Code Location

src/website/waitlist/
└── routes.py    # All logic in single file

Environment Variables

VariableDescription
NOTION_API_KEYNotion integration API key
NOTION_DATABASE_IDTarget database ID for waitlist entries

Notion Database Schema

The Notion database should have these properties:
PropertyTypeDescription
EmailTitleThe submitted email address
Website URLURLOptional business URL
ReferralRich TextReferral source
UTM CampaignRich TextMarketing campaign tracking
Submitted AtDateTimestamp of submission
StatusStatusSet to β€œWaitlist”

Rate Limiting

  • 5 requests per minute per IP address