> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nevatal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Patients

> Retrieve a paginated list of patients in your clinic

## Query Parameters

<ParamField query="page" type="integer" default="1">
  Page number (1-indexed)
</ParamField>

<ParamField query="limit" type="integer" default="20">
  Number of results per page (max: 100)
</ParamField>

<ParamField query="search" type="string">
  Search by name, email, phone, or document number
</ParamField>

<ParamField query="status" type="string">
  Filter by patient status: `active`, `inactive`
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.nevatal.com/api/v1/patients?page=1&limit=20" \
    -H "Authorization: Bearer nvtl_your_api_key"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.nevatal.com/api/v1/patients?page=1&limit=20', {
    headers: { 'Authorization': 'Bearer nvtl_your_api_key' }
  });
  const data = await response.json();
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data": [
      {
        "id": "pat_abc123",
        "firstName": "María",
        "lastName": "García",
        "email": "maria@example.com",
        "phone": "+573001234567",
        "documentType": "CC",
        "documentNumber": "1234567890",
        "dateOfBirth": "1990-05-15",
        "gender": "female",
        "status": "active",
        "createdAt": "2025-03-15T10:30:00Z",
        "updatedAt": "2025-03-15T10:30:00Z"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 20,
      "total": 142,
      "totalPages": 8
    }
  }
  ```
</ResponseExample>
