Try it free

Get a credential entry

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026
  • Early Access

Get the metadata of a credential entry in Dynatrace with the Credential Vault API by its ID; the username, certificate, or password is never returned.

GETSaaShttps://{your-environment-id}.apps.dynatrace.com/v1/entries/{entry-id}

Overview

You use the entry-id path parameter to read the metadata of one credential entry. The response doesn't include the credential itself, such as the username, certificate, or password. To read an entry owned by another user, you need the credential-vault:entries:admin permission.

Authentication

To execute this request, you need a platform token or OAuth access token with credential-vault:entries:read scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
entry-idstring

The ID of the required credential entry.

pathRequired

Response

Response codes

CodeTypeDescription
200CredentialsResponseElement

Success. The response contains the metadata of the credential entry.

4XXErrorResponseEnvelope

Client side error.

5XXErrorResponseEnvelope

Server side error.

Response body objects

The CredentialsResponseElement object

Metadata of the credentials set.

ElementTypeDescription
allowContextlessRequestsboolean

Allow access without app context, for example, from ad hoc functions in Workflows (requires the APP_ENGINE scope).

allowedEntitiesCredentialAccessData[]

The set of entities allowed to use the credential.

credentialUsageSummaryCredentialUsageHandler[]

The list contains summary data related to the use of credentials.

descriptionstring

A short description of the credentials set.

externalVaultExternalVaultConfig

Configuration for external vault synchronization for username and password credentials.

idstring

The ID of the credentials set.

namestring

The name of the credentials set.

ownerstring

The owner of the credential (user for which used API token was created).

ownerAccessOnlyboolean

Flag indicating that this credential is visible only to the owner.

scopestring

The scope of the credentials set.

The element can hold these values
  • APP_ENGINE
  • EXTENSION
  • EXTENSION_AUTHENTICATION
  • SYNTHETIC
scopesstring[]

The set of scopes of the credentials set.

The element can hold these values
  • APP_ENGINE
  • EXTENSION
  • EXTENSION_AUTHENTICATION
  • SYNTHETIC
typestring

The type of the credentials set.

The element can hold these values
  • AWS_MONITORING_KEY_BASED
  • AWS_MONITORING_ROLE_BASED
  • CERTIFICATE
  • PUBLIC_CERTIFICATE
  • SNMPV3
  • TOKEN
  • UNKNOWN
  • USERNAME_PASSWORD

The CredentialAccessData object

The set of entities allowed to use the credential.

ElementTypeDescription
idstring-
typestring-
The element can hold these values
  • APPLICATION
  • UNKNOWN
  • USER

The CredentialUsageHandler object

Keeps information about credential's usage.

ElementTypeDescription
countinteger

The number of uses.

typestring

Type of usage.

The ExternalVaultConfig object

Configuration for external vault synchronization for username and password credentials.

ElementTypeDescription
credentialsUsedForExternalSynchronizationstring[]-
passwordSecretNamestring-
sourceAuthMethodstring

Defines the actual set of fields depending on the value. See one of the following objects:

  • HASHICORP_VAULT_APPROLE -> HashicorpApproleConfig
  • HASHICORP_VAULT_CERTIFICATE -> HashicorpCertificateConfig
  • AZURE_KEY_VAULT_CLIENT_SECRET -> AzureClientSecretConfig
  • CYBERARK_VAULT_USERNAME_PASSWORD -> CyberArkUsernamePasswordConfig
  • CYBERARK_VAULT_ALLOWED_LOCATION -> CyberArkAllowedLocationConfig
The element can hold these values
  • AZURE_KEY_VAULT_CLIENT_SECRET
  • CYBERARK_VAULT_ALLOWED_LOCATION
  • CYBERARK_VAULT_USERNAME_PASSWORD
  • HASHICORP_VAULT_APPROLE
  • HASHICORP_VAULT_CERTIFICATE
tokenSecretNamestring-
typestring-
The element can hold these values
  • AZURE_CERTIFICATE_MODEL
  • AZURE_CLIENT_SECRET_MODEL
  • CYBERARK_VAULT_ALLOWED_LOCATION_MODEL
  • CYBERARK_VAULT_USERNAME_PASSWORD_MODEL
  • HASHICORP_APPROLE_MODEL
  • HASHICORP_CERTIFICATE_MODEL
usernameSecretNamestring-
vaultUrlstring-

The ErrorResponseEnvelope object

Encloses the encountered error.

ElementTypeDescription
errorErrorResponse

Basic information of the encountered error.

The ErrorResponse object

Basic information of the encountered error.

ElementTypeDescription
codeinteger

The returned HTTP status code.

detailsErrorResponseDetails

Detailed information of the error.

messagestring

Description of the encountered error.

The ErrorResponseDetails object

Detailed information of the error.

ElementTypeDescription
typestring

Defines the actual set of fields depending on the value. See one of the following objects:

  • constraintViolation -> ConstraintViolationDetails
The element can hold these values
  • constraintViolation

Response body JSON models

{
"allowContextlessRequests": "false",
"credentialUsageSummary": [
{
"BROWSER_MONITOR": 2,
"HTTP_MONITOR": 3
}
],
"description": "Sample credentials for demo purposes.",
"externalVault": {
"passwordSecretName": "password",
"pathToCredentials": "kv/credentials",
"roleId": "00e4858c-ec33-bc99-4e7e-34de6967de6c",
"secretId": "CREDENTIALS_VAULT-XXXXXXXXXXXXXXXX",
"sourceAuthMethod": "HASHICORP_VAULT_APPROLE",
"usernameSecretName": "username",
"vaultNamespace": "admin",
"vaultUrl": "https://vault-cluster.vault.fb17d2fc-be92-4230-afa2-91dbfda3cbad.aws.hashicorp.cloud:8200"
},
"id": "CREDENTIALS_VAULT-C43F2C2E6395AD23",
"name": "Sample username-password credentials",
"owner": "user@domain.com",
"ownerAccessOnly": true,
"scope": "SYNTHETIC",
"type": "USERNAME_PASSWORD"
}
{
"error": {
"code": 1,
"details": {
"type": "constraintViolation"
},
"message": "string"
}
}
Related tags
Platform APIDynatrace Platform