POST /api/contact
Submit a contact form message. This endpoint sends an email notification to the configured recipient with the user’s contact details and message.Request Body
The name of the person submitting the contact form
The email address of the person submitting the form
The message content from the user
Response
HTTP status code (200 for success, 500 for error)
Response message indicating the result of the operation
Example Request
cURL
JavaScript
Success Response
Error Response
Email Notification
When a contact form is submitted, an email is sent to the configured recipient (EMAIL_RECIPIENT or EMAIL_USER) containing:
- Subject: “New Contact Form Message from [firstName]”
- Name: The submitted firstName
- Email: The submitted email address
- Message: The full message content
Notes
- Contact form submissions are not stored in the database
- Only email notifications are sent
- All three fields (firstName, email, message) are required for submission