Public Secret Incidents

Get vault information for a public secret incident

Returns detailed vault path information if the secret is stored in a vault.

This endpoint requires the NHI (Non-Human Identity) feature to be enabled and the show_vault_path_in_public_api setting to be active. If either condition is not met, an empty array is returned.

get/v1/public-incidents/secrets/{incident_id}/vaults

Request

  • Base URL
    https://api.gitguardian.com
  • URL
    https://api.gitguardian.com/v1/public-incidents/secrets/{incident_id}/vaults
  • Auth
    HTTP bearer

Path parameters

incident_idinteger required

The id of the incident to retrieve

Response

Vault information for the public secret incident

vault_typestring

The type of vault (e.g., HashiCorp Vault, AWS Secrets Manager)

vault_namestring

The name or identifier of the vault instance

pathstring

The path within the vault where the secret is stored

Example response

[
  {
    "vault_type": "HashiCorp Vault",
    "vault_name": "prod-vault-01",
    "path": "secret/data/myapp/database"
  }
]

Changes

No recorded changes to this operation across all 35 revisions of this API.