Contact Form
Bellamy Book provides a public contact form (e.g. on the landing or contact page) so visitors can send a message to administrators. The API accepts the submission and typically delivers it to all admin users (e.g. as email or internal notification).
Overview
- Frontend: Public page (e.g. Contact under plain routes —
/contact). Form fields depend on the app (e.g. name, email, subject, message). - API:
POST /api/Contact— Submit contact message. Usually no auth required. May use Turnstile (or similar) for bot protection (TurnstileValidation("contact")). - Backend: Command
SendContactMessageCommand; handler sends the message to admins (implementation may use email or in-app notification).
API
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/Contact | Send contact message (body: command with name, email, subject, message, etc. as defined by DTO). Returns success or error. |
Related
- Admin Panel — Admins receive contact messages
- Getting Started — Running the frontend (contact page)