---
title: "Gets a Paged Result of printer maintenance entries"
method: GET
path: "/api/PrinterMaintenance"
tags: ["PrinterMaintenance"]
---

# Gets a Paged Result of printer maintenance entries

`GET /api/PrinterMaintenance`

## Request

- Base URL: `https://api.3dprintlog.com`
- URL: `https://api.3dprintlog.com/api/PrinterMaintenance`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://3dprintlog.auth0.com/authorize`, token URL `https://3dprintlog.auth0.com/oauth/token`)
  - API key in header `X-Api-Key`
  - API key in query parameter `api_key`

## Query parameters

- `PageNumber` integer
- `PageSize` integer
- `SortDirection` 1 | 2: Sent as an integer: `1` = Asc, `2` = Desc.
- `SortColumn` 1 | 2: Sent as an integer: `1` = Date, `2` = Category.
- `searchText` string
- `filterByPrinterIds` integer[]
- `includeDone` boolean
- `includeNotDone` boolean

## Response `200`

Returns the paged list of printer maintenance entries.

- PrintLogApiModelsPagedListOfPrintLogApiModelsDTOsPrinterMaintenancePrinterMaintenanceDto: `[ImmutableObject(true)]` is here for HybridCache and nothing else. It is inert at runtime; the attribute is how HybridCache is told it may hand the same instance to every caller instead of storing a serialized copy in L1 and deserializing it on each hit. Without it a cache <i>hit</i> would pay a full JSON deserialize. That is the cost #66 declined to spend on the serialize side, and it would land on the endpoints whose expensive part — the SQL aggregation — the cache already skips. <b>Be clear about what it does and does not claim.</b> This type is mutable — both properties have setters and `Items` is a mutable `List<T>` — so the attribute is a statement of convention, not a property the compiler enforces: nothing mutates a `PagedList` it read out of the cache, and nothing may start. What it is not is a new risk. A cached `PagedList` was already shared by reference across concurrent requests under plain `IMemoryCache`; the attribute keeps that exact behaviour rather than introducing it. The only alternative is letting HybridCache serialize and re-deserialize per hit, which is a real cost paid on every request to buy protection against a mutation that does not happen. Treat anything returned from a cache lookup as read-only, and if a caller ever genuinely needs to mutate one, copy it first.
  - `paging` PrintLogApiModelsPageInfo
    - `currentPage` integer
    - `totalPages` integer
    - `pageSize` integer
    - `totalCount` integer
  - `items` PrintLogApiModelsDTOsPrinterMaintenancePrinterMaintenanceDto[], nullable
    - `id` string, uuid
    - `printerId` integer
    - `printer` PrintLogApiModelsDTOsPrinterPrinterSummary
      - `id` integer
      - `name` string, nullable
      - `make` string, nullable
      - `model` string, nullable
      - `isActive` boolean
      - `wattageW` number, double, nullable
      - `printTimeInSeconds` integer, nullable
      - `category` PrintLogApiModelsDTOsPrinterCategoryPrinterCategoryDto: The class/category/type of 3D printing technology, such as FDM, SLA, etc
        - `nickname` string, nullable: The nickname of the category
        - `name` string, nullable: The long form name of the category
        - `description` string, nullable: A description of that category
        - `materialCategory` PrintLogApiModelsDTOsMaterialCategoryMaterialCategoryDto: The category of materials, such as filament, resin, powder, etc.
          - `nickname` string, nullable: The nickname of the material category
          - `name` string, nullable: The long form name of the category
          - `description` string, nullable: A description of that category
          - `hasDiameter` boolean: Whether this material has a diameter
          - `showNozzleTemperature` boolean
          - `showBedTemperature` boolean
          - `showMeltingTemperature` boolean
          - `showRecommendedInitialLayerTimeInSeconds` boolean
          - `showRecommendedLayerTimeInSeconds` boolean
          - `showMaterialRefreshRatio` boolean: The percentage of new powder when mixing with old powder
          - `showInertGas` boolean
        - `showNozzleDiameter` boolean
        - `showFilamentDiameter` boolean
        - `showBeamDiameter` boolean
        - `showBedSize` boolean
        - `showScreenResolution` boolean
        - `showHasHeatedBed` boolean
        - `showHasHeatedChamber` boolean
    - `done` boolean
    - `date` string, date-time
    - `category` string, nullable
    - `description` string, nullable
    - `notes` string, nullable: Additional Notes about the maintenance entry
    - `priceValue` string, nullable: The value of the purchase price

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/3dprintlog/apis/3d-print-log-api.md) · [All operations](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/llms.txt) · [OpenAPI document](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/revisions/dfc3a4df4e38?raw)
