---
title: "CRM: count patient appointments (filtered)"
method: GET
path: "/api/appointments/crm/patient-appointments-count"
tags: ["appointments"]
---

# CRM: count patient appointments (filtered)

`GET /api/appointments/crm/patient-appointments-count`

Count appointments for a patient across all operators, with optional `appointment_type` and `status` filters (comma-separated statuses). Allowed: admin or the patient's assigned psychologist/nutritionist.

## Query parameters

- `patient_id` string, uuid, required — Patient UUID
- `appointment_type` string, nullable — Optional appointment type code (e.g. INCONTRO_PSICOLOGO, INCONTRO_NUTRIZIONISTA)
- `status` string, nullable — Optional comma-separated appointment statuses (e.g. FATTO)

## Response `200`

Successful Response

- PatientAppointmentsCrmCountResponse — CRM: count of appointments for a patient with optional type/status filters (no operator filter).
  - `count` integer, required — Number of matching appointments

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/corabea/apis/corabea-api.md) · [All operations](https://skmtc.dev/corabea/apis/corabea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corabea/corabea-api/revisions/13c1bce1bdc4/schema)
