Skip to main content
GET
/
api
/
v1
/
patients
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Get All Patients

Get basic information and medical history for all users including personal details, chronic conditions, and family history.

Headers

ParameterTypeRequiredDescription
authorizationstringYesAPI authorization token (Bearer token)

Query Parameters

ParameterTypeRequiredDescription
limitintegerNoMaximum number of users to return (default: 50, max: 100)
offsetintegerNoNumber of users to skip for pagination (default: 0)

Responses

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

Sample Request

curl -X GET "https://api.covita.com/api/v1/patients?limit=10&offset=0" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Sample Response

{
  "patients": [
    {
      "user_id": "User1",
      "personal_details": {
        "name": "John Doe",
        "age": 35,
        "gender": "Male",
        "height": 175,
        "weight": 75,
        "bmi": 24.5
      },
      "medical_history": {
        "chronic_conditions": ["Hypertension"],
        "family_history": ["Diabetes", "Heart Disease"],
        "allergies": []
      }
    },
    {
      "user_id": "User2",
      "personal_details": {
        "name": "Jane Smith",
        "age": 28,
        "gender": "Female",
        "height": 165,
        "weight": 60,
        "bmi": 22.0
      },
      "medical_history": {
        "chronic_conditions": [],
        "family_history": ["Asthma"],
        "allergies": ["Peanuts"]
      }
    }
  ],
  "total_count": 100,
  "limit": 10,
  "offset": 0
}

Authorizations

Authorization
string
header
required

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

Query Parameters

limit
integer
default:50
offset
integer
default:0

Response

Successful Response