Demo Demo

Demo Collect Email

Stores the user's email in a 'demo_emails' collection, skipping user creation. Avoids duplicates by checking first.

  • If new email => insert + posthog.capture("demo email collected")
  • If existing email => no insert, but still posthog.identify(...) and sentry set_user.
post/demo/collect-email

Request body

emailstring required

Response

Successful Response

{"stackTrail":"paths:/demo/collect-email:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes