curl --request GET \
--url https://api.example.com/api/contacto/:id{
"id": 123,
"cliente_id": 123,
"asunto": "<string>",
"mensaje": "<string>",
"created_at": "<string>",
"cliente": {
"cliente.id": 123,
"cliente.nombres": "<string>",
"cliente.apellidos": "<string>",
"cliente.telefono": "<string>",
"cliente.email": "<string>"
},
"400 Bad Request": {},
"404 Not Found": {},
"500 Internal Server Error": {}
}Retrieve a specific contact message by ID
curl --request GET \
--url https://api.example.com/api/contacto/:id{
"id": 123,
"cliente_id": 123,
"asunto": "<string>",
"mensaje": "<string>",
"created_at": "<string>",
"cliente": {
"cliente.id": 123,
"cliente.nombres": "<string>",
"cliente.apellidos": "<string>",
"cliente.telefono": "<string>",
"cliente.email": "<string>"
},
"400 Bad Request": {},
"404 Not Found": {},
"500 Internal Server Error": {}
}{
"message": "ID inválido"
}
{
"message": "Mensaje no encontrado"
}
{
"message": "Error al obtener mensaje"
}
curl -X GET https://api.example.com/api/contacto/78 \
-H "Content-Type: application/json"
{
"id": 78,
"cliente_id": 45,
"asunto": "Consulta sobre horarios de atención",
"mensaje": "Buenos días, quisiera saber si atienden los días sábados y cuál es el horario. Gracias.",
"created_at": "2026-03-05T14:45:00.000Z",
"cliente": {
"id": 45,
"nombres": "Juan",
"apellidos": "Pérez",
"telefono": "+502 5555-1234",
"email": "[email protected]",
"created_at": "2026-03-01T08:00:00.000Z"
}
}