> ## 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.

# API Reference

> Complete reference for all Nevatal API endpoints

# API Reference

The Nevatal API provides programmatic access to clinic management features. All endpoints are RESTful and return JSON.

## Base URL

```
https://api.nevatal.com/api/v1
```

## Authentication

All endpoints require a Bearer token in the `Authorization` header. See [Authentication](/authentication) for setup instructions.

## Available modules

<CardGroup cols={2}>
  <Card title="Patients" icon="users" href="/api-reference/patients/list-patients">
    Manage patient records, demographics, and contact information.
  </Card>

  <Card title="Appointments" icon="calendar" href="/api-reference/appointments/list-appointments">
    Schedule, update, and cancel patient appointments.
  </Card>

  <Card title="Billing" icon="file-invoice" href="/api-reference/billing/list-invoices">
    Create invoices, process payments, and handle credit notes.
  </Card>

  <Card title="Clinical Procedures" icon="stethoscope" href="/api-reference/clinical-procedures/list-procedures">
    Manage the clinic's procedure catalog.
  </Card>

  <Card title="EMR" icon="notes-medical" href="/api-reference/emr/create-medical-record">
    Electronic medical records, prescriptions, and clinical notes.
  </Card>

  <Card title="Locations" icon="location-dot" href="/api-reference/locations/list-locations">
    Query clinic branches and their details.
  </Card>
</CardGroup>

## Common patterns

* **Pagination**: All list endpoints support `page` and `limit` query parameters
* **Filtering**: Most list endpoints support field-specific query filters
* **Sorting**: Use `sortBy` and `sortOrder` parameters where supported
* **Timestamps**: All dates are in ISO 8601 format with timezone
