Manage contact form submissions from users.
Creates a new contact message from the contact form.
Request Body
Name of the person submitting the message
Email address for replies
Page URL where the contact form was submitted
Message status. Values: NEW, READ, ARCHIVED. Default: NEW
Timestamp when message was created (ISO 8601 format)
Response
Unique identifier for the contact message
Message status: NEW, READ, or ARCHIVED
Example Request
curl -X POST http://localhost:8080/api/contact_messages \
-H "Content-Type: application/json" \
-d '{
"name": "Carlos Hernández",
"email": "carlos@example.com",
"subject": "Partnership inquiry",
"message": "I am interested in partnering with Kin Conecta to offer tours in Guadalajara. Could you provide more information about your guide program?",
"sourcePage": "https://kinconecta.com/contact",
"status": "NEW"
}'
Example Response
{
"contactMessageId": 2341,
"name": "Carlos Hernández",
"email": "carlos@example.com",
"subject": "Partnership inquiry",
"message": "I am interested in partnering with Kin Conecta to offer tours in Guadalajara. Could you provide more information about your guide program?",
"sourcePage": "https://kinconecta.com/contact",
"status": "NEW",
"createdAt": "2026-03-11T14:22:35"
}
Retrieves all contact messages.
Example Request
curl http://localhost:8080/api/contact_messages
Example Response
[
{
"contactMessageId": 2341,
"name": "Carlos Hernández",
"email": "carlos@example.com",
"subject": "Partnership inquiry",
"message": "I am interested in partnering with Kin Conecta.",
"sourcePage": "https://kinconecta.com/contact",
"status": "NEW",
"createdAt": "2026-03-11T14:22:35"
},
{
"contactMessageId": 2340,
"name": "Ana Martínez",
"email": "ana@example.com",
"subject": "General question",
"message": "What areas do your guides cover?",
"sourcePage": "https://kinconecta.com/faq",
"status": "READ",
"createdAt": "2026-03-11T09:15:22"
}
]
/api/contact_messages/{id}
Retrieves a specific contact message by ID.
Path Parameters
Example Request
curl http://localhost:8080/api/contact_messages/2341
Example Response
{
"contactMessageId": 2341,
"name": "Carlos Hernández",
"email": "carlos@example.com",
"subject": "Partnership inquiry",
"message": "I am interested in partnering with Kin Conecta to offer tours in Guadalajara. Could you provide more information about your guide program?",
"sourcePage": "https://kinconecta.com/contact",
"status": "NEW",
"createdAt": "2026-03-11T14:22:35"
}
/api/contact_messages/{id}
Updates a contact message (typically to change its status).
Path Parameters
Request Body
Same fields as Create Contact Message.
Example Request
curl -X PUT http://localhost:8080/api/contact_messages/2341 \
-H "Content-Type: application/json" \
-d '{
"name": "Carlos Hernández",
"email": "carlos@example.com",
"subject": "Partnership inquiry",
"message": "I am interested in partnering with Kin Conecta to offer tours in Guadalajara.",
"sourcePage": "https://kinconecta.com/contact",
"status": "READ"
}'
Example Response
{
"contactMessageId": 2341,
"name": "Carlos Hernández",
"email": "carlos@example.com",
"subject": "Partnership inquiry",
"message": "I am interested in partnering with Kin Conecta to offer tours in Guadalajara.",
"sourcePage": "https://kinconecta.com/contact",
"status": "READ",
"createdAt": "2026-03-11T14:22:35"
}
/api/contact_messages/{id}
Deletes a contact message.
Path Parameters
Example Request
curl -X DELETE http://localhost:8080/api/contact_messages/2341