---
title: "Returns number of maintenances"
method: GET
path: "/operations/v1/maintenances/$count"
tags: ["Maintenance"]
---

# Returns number of maintenances

`GET /operations/v1/maintenances/$count`

## Request

- Base URL: `https://api.apaleo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apaleo.com/operations/v1/maintenances/$count`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `maintenances.read`, `maintenances.manage`, `admin`
- TypeScript: <https://skmtc.dev/apaleo/apis/apaleo-operations-api/docs/operations/v1/maintenances/$count/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the number of maintenances matching your filter.<br>You must have at least one of these scopes: 'maintenances.read, maintenances.manage'.<br>For fine-grained clients, you must have this permission: 'core.maintenances.read'.

## Query parameters

- `propertyId` string
- `unitId` string
- `from` string, date-time
- `to` string, date-time
- `types` string[]

## Response `200`

Count of maintenances

- CountModel
  - `count` integer, required

## Other responses

- `400`: Bad request.
- `401`: You are unauthorized.
- `403`: Forbidden.
- `404`: The Request-URI could not be found.
- `422`: Validation errors in the request body or query params.
- `499`: Client closed request.
- `500`: An unexpected error occurred.
- `503`: The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-operations-api.md) - [All operations](https://skmtc.dev/apaleo/apis/apaleo-operations-api/llms.txt) - [OpenAPI document](https://skmtc.dev/apaleo/apis/apaleo-operations-api/revisions/8ed798ce62af?raw)
