---
title: "Get vault information for a public secret incident"
method: GET
path: "/v1/public-incidents/secrets/{incident_id}/vaults"
tags: ["Public Secret Incidents"]
---

# Get vault information for a public secret incident

`GET /v1/public-incidents/secrets/{incident_id}/vaults`

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.

## Path parameters

- `incident_id` integer, required

## Response `200`

Vault information for the public secret incident

- object[]
  - `vault_type` string — The type of vault (e.g., HashiCorp Vault, AWS Secrets Manager)
  - `vault_name` string — The name or identifier of the vault instance
  - `path` string — The path within the vault where the secret is stored

## Other responses

- `401` — Invalid API key
- `403` — Forbidden
- `404` — Resource not found
- `503` — API under maintenance

---

[API](https://skmtc.net/gitguardian/apis/gitguardian-api.md) · [All operations](https://skmtc.net/gitguardian/apis/gitguardian-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitguardian/gitguardian-api/revisions/511b067cdcb1/schema)
