---
title: "List Encryption Keys"
method: GET
path: "/account-service/api/data-protect/keys"
tags: ["Encryption Keys", "Encryption Keys"]
---

# List Encryption Keys

`GET /account-service/api/data-protect/keys`

List all AI encryption keys.

## Query parameters

- `page` integer — The page number to retrieve
- `size` integer — The number of items per page
- `sort` string[] — The sort options
- `id` integer, nullable
- `status` integer, nullable
- `createTimeFrom` string, date-time, nullable
- `createTimeTo` string, date-time, nullable
- `updateTimeFrom` string, date-time, nullable
- `updateTimeTo` string, date-time, nullable
- `exactMatch` boolean, nullable
- `excludeMatch` boolean, nullable
- `excludeList` string, nullable
- `key_status` string, nullable
- `key_type` 'MSG_PROTECT_SHIELD' | 'MSG_PROTECT_PLUGIN'

## Response `200`

Successful Response

- Pageable — Model representing a pageable response. Attributes: content (List): The list of content in the current page. totalPages (int): Total number of pages. totalElements (int): Total number of elements across all pages. last (bool): Indicates if this is the last page. size (int): Size of each page. number (int): Current page number. sort (List[str]): Sorting criteria. numberOfElements (int): Number of elements in the current page. first (bool): Indicates if this is the first page. empty (bool): Indicates if the current page is empty. Example usage: ``` content = ["item1", "item2"] total_elements = 10 page_number = 0 page_size = 2 sort_criteria = ["field1", "-field2"] pageable_response = create_pageable_response(content, total_elements, page_number, page_size, sort_criteria) ```
  - `content` unknown[], required — The list of content
    - unknown
  - `totalPages` integer, required — Total number of pages
  - `totalElements` integer, required — Total number of elements
  - `last` boolean, required — Indicates if this is the last page
  - `size` integer, required — Size of the page
  - `number` integer, required — Current page number
  - `sort` string[] — Sorting criteria
  - `numberOfElements` integer, required — Number of elements in the current page
  - `first` boolean, required — Indicates if this is the first page
  - `empty` boolean, required — Indicates if the current page is empty

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/privacera/apis/paig-server.md) · [All operations](https://skmtc.net/privacera/apis/paig-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/privacera/paig-server/versions/e3d2c30ceace/schema)
