TokenVaultCredentials

Get a vault credential

Changed on

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

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

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

directoryId, string uuid required

ID of the directory

principalId, string uuid required

Unique identifier of the principal (UUID format)

vaultCredentialId, string uuid required

Unique identifier of the principal's vault credential (UUID format)

Response

A credential held by a principal

VaultCredential required

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.

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.

Example response

{
  "template_name": "github",
  "status": "active",
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes