---
title: "List credential metadata for a provider"
method: GET
path: "/v2/directories/{directoryId}/vault/providers/{providerId}/credentials"
tags: ["TokenVaultProviders"]
---

# List credential metadata for a provider

`GET /v2/directories/{directoryId}/vault/providers/{providerId}/credentials`

## Request

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

Returns a paginated list of credential metadata for a provider. Each
item's shape depends on its credential_type. shared items are the
provider's shared credential: the admin-configured secret. Never include
enrollment_url (fetch by id to mint one; shared authorization_code
credentials only). user items
are each principal's individual authorization, embedding principal id
and display_name. Credential values are never returned.

## Path parameters

- `directoryId` string, uuid, required
- `providerId` 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 shared credential metadata for a provider

- ListVaultProviderCredentials
  - `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` VaultProviderCredential[], required
    - union: A provider's shared secret, or one principal's authorization of the provider, indicated by credential_type. Credential values are never returned.
      - VaultProviderCredentialShared: The provider's shared secret: a static value, or a shared OAuth enrollment (pending or active).
        - [`VaultProviderCredentialBase`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FVaultProviderCredentialBase)
        - object
          - `credential_type` 'shared', required
          - `selector` string, nullable: CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
          - `priority` integer, nullable: Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
          - `status` 'pending' | 'active', required: "pending" until admin enrollment completes; "active" once the secret exists.
          - `enrollment_url` string: URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
      - VaultProviderCredentialUser: One principal's individual authorization of this provider.
        - [`VaultProviderCredentialBase`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FVaultProviderCredentialBase)
        - object
          - `credential_type` 'user', required
          - `principal` object, required
            - `id` string, uuid, required: The principal's ID.
            - `display_name` string, required: The principal's display name.
          - `status` 'active', required: A user credential exists only once authorization has completed, so this is always "active".
          - `expires_at` string, date-time, nullable: Expiry of the current access token, if any.

## Other responses

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

## Changes

- **2026-11-16** `a209c8bfa7b7`: 4 info
  - the `credential_type` response property const value `shared` was added for the status `200`
  - the `credential_type` response property const value `user` was added for the status `200`
  - removed the `shared` enum value from the `data/items/oneOf[#/components/schemas/VaultProviderCredentialShared]/allOf[subschema #2]/credential_type` response property for the response status `200`
  - removed the `user` enum value from the `data/items/oneOf[#/components/schemas/VaultProviderCredentialUser]/allOf[subschema #2]/credential_type` response property for the response status `200`
- **2026-11-12** `d8bd04cfbaf7`: 2 breaking, 2 warning
  - the `credential_type` response property const value `shared` was removed for the status `200`
  - the `credential_type` response property const value `user` was removed for the status `200`
  - added the new `shared` enum value to the `data/items/oneOf[#/components/schemas/VaultProviderCredentialShared]/allOf[subschema #2]/credential_type` response property for the response status `200`
  - added the new `user` enum value to the `data/items/oneOf[#/components/schemas/VaultProviderCredentialUser]/allOf[subschema #2]/credential_type` response property for the response status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v2/directories/:directoryId/vault/providers/:providerId/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)
