---
title: "List vault credentials for a principal"
method: GET
path: "/v2/directories/{directoryId}/principals/{principalId}/vault-credentials"
tags: ["TokenVaultCredentials"]
---

# List vault credentials for a principal

`GET /v2/directories/{directoryId}/principals/{principalId}/vault-credentials`

## Request

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

Returns a paginated list of token-vault credentials that the principal has obtained by
authorizing providers.

## Path parameters

- `directoryId` string, uuid, required
- `principalId` 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 credentials held by a principal

- ListVaultCredentials
  - `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` VaultCredential[], required
    - `id` string, uuid, required: The ID of the vault credential record.
    - `provider` object, required: The authorized vault provider.
      - `id` string, uuid, required: The ID of the authorized vault provider.
      - `name` string, required: The name of the authorized vault provider.
    - `template_name` string, required: The provider template this vault provider is based on.
    - `status` string, required: The status of the authorized credential.
    - `expires_at` string, date-time, nullable: Expiry of the current access token, if any.
    - `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

- `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/principals/:principalId/vault-credentials/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)
