Skip to main content
GET
/
api
/
medical-info
/
latest
curl -X GET "https://api.mediguide.com/api/medical-info/latest?userId=123" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
{
  "id": 456,
  "user_id": 123,
  "glucose": 95,
  "oxygen_blood": 98,
  "blood_pressure_systolic": 120,
  "blood_pressure_diastolic": 80,
  "temperature": 36.6,
  "age": 35,
  "height": 175,
  "weight": 70,
  "respiratory_rate": 16,
  "blood_type": "O+",
  "heart_rate": 72,
  "created_at": "2026-03-06T10:30:00.000Z"
}

Authentication

This endpoint requires authentication via JWT Bearer token. Users can only retrieve their own medical records.

Query Parameters

userId
number
required
The ID of the user whose medical record you want to retrieve. Must match the authenticated user’s ID.

Response

id
number
The unique ID of the medical record.
user_id
number
The ID of the user this record belongs to.
glucose
number
Blood glucose level (mg/dL).
oxygen_blood
number
Blood oxygen saturation level (%).
blood_pressure_systolic
number
Systolic blood pressure (mmHg).
blood_pressure_diastolic
number
Diastolic blood pressure (mmHg).
temperature
number
Body temperature (°C or °F).
age
number
Age of the user in years.
height
number
Height (cm or inches).
weight
number
Weight (kg or lbs).
respiratory_rate
number
Respiratory rate (breaths per minute).
blood_type
string
Blood type (e.g., A+, O-, AB+, etc.).
heart_rate
number
Heart rate (beats per minute).
created_at
string
Timestamp when the record was created (ISO 8601 format).
curl -X GET "https://api.mediguide.com/api/medical-info/latest?userId=123" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
{
  "id": 456,
  "user_id": 123,
  "glucose": 95,
  "oxygen_blood": 98,
  "blood_pressure_systolic": 120,
  "blood_pressure_diastolic": 80,
  "temperature": 36.6,
  "age": 35,
  "height": 175,
  "weight": 70,
  "respiratory_rate": 16,
  "blood_type": "O+",
  "heart_rate": 72,
  "created_at": "2026-03-06T10:30:00.000Z"
}

Authorization

The authenticated user can only retrieve medical records for their own userId. Attempting to access records for a different user will result in a 403 Forbidden error.

Notes

  • This endpoint returns only the most recent medical record based on the created_at timestamp.
  • If no medical records exist for the user, a 404 error is returned.
  • All field names in the response use snake_case (database column naming convention).

Build docs developers (and LLMs) love