Skip to main content
Retrieves details of a specific health profile by its ID.

Endpoint

GET /salud/:id

Authentication

This endpoint requires a valid JWT token.
Authorization: Bearer YOUR_JWT_TOKEN

Path Parameters

id
number
required
The unique identifier of the health profile

Response

id
number
Unique identifier for the health profile
beneficiarioId
number
ID of the associated beneficiario
esAptoFisico
boolean
Physical fitness status
padecEnfermedad
boolean
Medical condition status
nombreEnfermedad
string
Name of medical condition
consumeSustancias
boolean
Substance consumption status
tipoSustancias
string
Type of substances
afiliadoServicioSalud
string
Health service affiliation
necesitaLentes
boolean
Glasses requirement
observacionesMedicas
string
Medical observations
fechaActualizacion
string
Last update timestamp

Example Request

curl -X GET http://localhost:3000/salud/1 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Example Response

{
  "id": 1,
  "beneficiarioId": 1,
  "esAptoFisico": true,
  "padecEnfermedad": false,
  "nombreEnfermedad": null,
  "consumeSustancias": false,
  "tipoSustancias": null,
  "afiliadoServicioSalud": "IMSS",
  "necesitaLentes": false,
  "observacionesMedicas": null,
  "fechaActualizacion": "2026-03-05T10:30:00.000Z"
}

Error Responses

Not Found

{
  "statusCode": 404,
  "message": "Health profile not found"
}

Invalid ID

{
  "statusCode": 400,
  "message": "Validation failed (numeric string is expected)",
  "error": "Bad Request"
}

Build docs developers (and LLMs) love