---
title: "Get key sets by inventoryId"
method: GET
path: "/inventory/{inventoryId}/keysets"
tags: ["Inventory"]
---

# Get key sets by inventoryId

`GET /inventory/{inventoryId}/keysets`

## Request

- Base URL: `https://api.alto.zoopladev.co.uk`
- URL: `https://api.alto.zoopladev.co.uk/inventory/{inventoryId}/keysets`
- Auth: `appAuth` (a scheme the document does not define)

## Path parameters

- `inventoryId` string, required

## Headers

- `AgencyRef` string, required

## Response `200`

Returns the key sets

- AltoInventoryApiDomainAltoKeySet[]
  - `id` integer
  - `propertyId` integer
  - `referenceCode` string, nullable
  - `description` string, nullable
  - `keyCount` integer
  - `status` 'Unspecified' | 'In' | 'Out' | 'Lost' | 'Returned'
  - `notes` string, nullable
  - `dateOut` string, date-time, nullable
  - `expectedDateIn` string, date-time, nullable
  - `holderType` 'Contact' | 'User', nullable
  - `holderId` integer, nullable
  - `holderName` string, nullable

## Other responses

- `400`: When the request does not contain the expected information
- `401`: When access has not been granted
- `404`: The inventory was not found

---

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