---
title: "List vault keys"
method: GET
path: "/v2/directories/{directoryId}/vault/keys"
tags: ["TokenVaultKeys"]
---

# List vault keys

`GET /v2/directories/{directoryId}/vault/keys`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v2/directories/{directoryId}/vault/keys`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Returns a paginated list of the public encryption keys registered for a
vault-enabled directory.

## Path parameters

- `directoryId` string, uuid, required

## Query parameters

- `page` CursorPageParameters
  - `size` integer: The number of items included per page.
  - `after` string: Cursor param specifying the page (i.e. the next page) of data returned.
  - `before` string: Cursor param specifying the page (i.e. the previous page) of data returned.
- `sort` string: The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order. Multiple sort attributes may be provided via a comma separated list. JSONPath notation may be used to specify a sub-attribute (eg: 'foo.bar desc').

## Response `200`

List of vault keys

- ListVaultKeys
  - `meta` CursorMeta, required: Pagination metadata.
    - `page` CursorMetaPage, required
      - `first` string, path: URI to the first page
      - `last` string, path: URI to the last page
      - `next` string, path, nullable, required: URI to the next page
      - `previous` string, path, nullable, required: URI to the previous page
      - `size` number, required: Requested page size
  - `data` VaultKey[], required
    - `id` string, uuid, required: Contains a unique identifier used for this resource.
    - `directory_id` string, uuid, required: Contains a unique identifier used for this resource.
    - `name` string, required
    - `public_key` string, required: The PEM-encoded public key.
    - `kid` string, required: RFC 7638 JWK thumbprint (base64url-encoded SHA-256 digest) of the public key.
    - `algorithm` 'RSA' | 'EC', required: The asymmetric algorithm of the vault key.
    - `key_size` integer, required: Size of the key in bits (for example 2048 for RSA, 256 for EC P-256).
    - `created_at` string, date-time, required: An ISO-8601 timestamp representation of entity creation date.
    - `updated_at` string, date-time, required: An ISO-8601 timestamp representation of entity update date.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

## Changes

- **2026-11-03** `72599e2b1b09`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v2/directories/:directoryId/vault/keys/get.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-go-sdk/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4?raw)
