---
title: "Get a vault credential"
method: GET
path: "/v2/directories/{directoryId}/principals/{principalId}/vault-credentials/{vaultCredentialId}"
tags: ["TokenVaultCredentials"]
---

# Get a vault credential

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

## Request

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

Retrieves detailed information about the credentials the principal has obtained from a single provider.

## Path parameters

- `directoryId` string, uuid, required
- `principalId` string, uuid, required
- `vaultCredentialId` string, uuid, required

## Response `200`

A credential held by a principal

- VaultCredential: A token-vault provider a principal has authorized via the OAuth 2.0 authorization_code flow.
  - `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/:vaultCredentialId/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)
