> ## 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 All Patients

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

# Get All Patients

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

## Headers

| Parameter     | Type   | Required | Description                            |
| ------------- | ------ | -------- | -------------------------------------- |
| authorization | string | Yes      | API authorization token (Bearer token) |

## Query Parameters

| Parameter | Type    | Required | Description                                               |
| --------- | ------- | -------- | --------------------------------------------------------- |
| limit     | integer | No       | Maximum number of users to return (default: 50, max: 100) |
| offset    | integer | No       | Number of users to skip for pagination (default: 0)       |

## Responses

| Status | Description         | Content Type     |
| ------ | ------------------- | ---------------- |
| 200    | Successful Response | application/json |
| 422    | Validation Error    | application/json |

## Sample Request

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

## Sample Response

```json theme={null}
{
  "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
}
```


## OpenAPI

````yaml GET /api/v1/patients
openapi: 3.1.0
info:
  title: Covita API
  description: API for Covita health monitoring system
  version: 1.0.0
servers: []
security: []
tags:
  - name: AI Assistant
    description: >-
      Endpoints for interacting with the AI assistant, including sending
      messages and managing conversation history
  - name: Patient Data
    description: >-
      Endpoints for accessing and managing patient health data, including
      medical history, vitals, and demographic information
paths:
  /api/v1/patients:
    get:
      tags:
        - Patient Data
      summary: Get All Users Info
      description: >-
        Get basic information and medical history for all users including
        personal details,

        chronic conditions, and family history.
      operationId: get_all_users_info_api_v1_patients_get
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            default: 0
            title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````