Skip to main content

POST /contact

Sends a contact form email using the provided name, email, and message information.
This is a public endpoint and does not require authentication.

Request Body

name
string
required
The sender’s name
email
string
required
The sender’s email address
message
string
required
The message content from the contact form

Response

ok
boolean
Indicates whether the email was sent successfully
mensaje
string
A message describing the result of the operation

Example Request

cURL
curl -X POST http://localhost:3000/contact \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Jane Smith",
    "email": "[email protected]",
    "message": "I would like to inquire about your services."
  }'

Example Response

Success
{
  "ok": true,
  "mensaje": "Correo enviado correctamente."
}

Error Responses

500 Internal Server Error
{
  "ok": false,
  "mensaje": "Error al enviar el correo."
}
The email is sent using Resend service and will be delivered to the configured recipient address.

Build docs developers (and LLMs) love