---
title: "Demo Collect Email"
method: POST
path: "/demo/collect-email"
tags: ["Demo Demo"]
---

# Demo Collect Email

`POST /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.

## Request body

- DemoEmailRequest
  - `email` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc.dev/excellence-ai/apis/excellence-learning/revisions/2a0c1636fd3b?raw)
