Skip to main content
GET
/
api
/
v1
/
patient_info
/
{user_id}
Get Patient Info
curl --request GET \
  --url https://api.example.com/api/v1/patient_info/{user_id} \
  --header 'Authorization: Bearer <token>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.nivara.io/llms.txt

Use this file to discover all available pages before exploring further.

Get Patient Info

Get comprehensive patient information including personal details, medical history, current medications, and recent health metrics.

Headers

ParameterTypeRequiredDescription
authorizationstringYesAPI authorization token (Bearer token)

Path Parameters

ParameterTypeRequiredDescription
user_idstringYesThe ID of the patient

Query Parameters

ParameterTypeRequiredDescription
daysintegerNoNumber of past days to fetch data for (default: 7)

Responses

StatusDescriptionContent Type
200Successful Responseapplication/json
422Validation Errorapplication/json

Sample Request

curl -X GET "https://api.covita.com/api/v1/patient_info/User1?days=7" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Sample Response

{
  "user_id": "User1",
  "personal_details": {
    "name": "John Doe",
    "age": 35,
    "gender": "Male",
    "height": 175,
    "weight": 75
  },
  "medical_history": {
    "chronic_conditions": ["Hypertension"],
    "medications": ["Lisinopril"],
    "allergies": []
  },
  "recent_metrics": {
    "average_heart_rate": 72,
    "sleep_hours": 7.5,
    "steps": 8500
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

Query Parameters

days
integer
default:7

Response

Successful Response