Skip to main content
GET
/
api
/
contacto
/
:id
Get Contact Message
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": {}
}
This endpoint retrieves a single contact message by its ID, including full client information.

Authentication

No authentication required based on the source code.

Path Parameters

id
number
required
The ID of the contact message to retrieve

Response

id
number
Message ID
cliente_id
number
ID of the public client who sent the message
asunto
string
Message subject or title
mensaje
string
Message content
created_at
string
Message creation timestamp
cliente
object
Complete client information
cliente.id
number
Client ID
cliente.nombres
string
Client’s first name(s)
cliente.apellidos
string
Client’s last name(s)
cliente.telefono
string
Client’s phone number
cliente.email
string
Client’s email address

Error Responses

400 Bad Request
object
Returned when the ID parameter is invalid
{
  "message": "ID inválido"
}
404 Not Found
object
Returned when the message is not found
{
  "message": "Mensaje no encontrado"
}
500 Internal Server Error
object
Returned when a server error occurs
{
  "message": "Error al obtener mensaje"
}

Example Request

curl -X GET https://api.example.com/api/contacto/78 \
  -H "Content-Type: application/json"

Example Response

{
  "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"
  }
}

Notes

  • The ID must be a valid integer
  • Returns complete client details for context

Build docs developers (and LLMs) love