Retrieves details of a specific health profile by its ID.
Endpoint
Authentication
This endpoint requires a valid JWT token.
Authorization: Bearer YOUR_JWT_TOKEN
Path Parameters
The unique identifier of the health profile
Response
Unique identifier for the health profile
ID of the associated beneficiario
Name of medical condition
Substance consumption status
Health service affiliation
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"
}