---
title: "GetSecretsByVault"
method: GET
path: "/vaults/{id}/secrets"
tags: ["Vaults"]
---

# GetSecretsByVault

`GET /vaults/{id}/secrets`

Get Secrets by Vault ID

## Path parameters

- `id` string, required

## Query parameters

- `before_id` string
- `limit` string

## Headers

- `ngrok-version` integer, required

## Response `200`

Get Secrets by Vault ID

- SecretList
  - `secrets` Secret[] — The list of Secrets for this account
    - `id` string — identifier for Secret
    - `uri` string — URI of this Secret API resource
    - `created_at` string — Timestamp when the Secret was created (RFC 3339 format)
    - `updated_at` string — Timestamp when the Secret was last updated (RFC 3339 format)
    - `name` string — Name of secret
    - `description` string — description of Secret
    - `metadata` string — Arbitrary user-defined metadata for this Secret
    - `created_by` Ref
      - `id` string — a resource identifier
      - `uri` string — a uri for locating a resource
    - `last_updated_by` Ref
      - `id` string — a resource identifier
      - `uri` string — a uri for locating a resource
    - `vault` Ref
      - `id` string — a resource identifier
      - `uri` string — a uri for locating a resource
    - `vault_name` string — Name of the vault the secret is stored in
  - `uri` string — n/a
  - `next_page_uri` string — URI of the next page of results, or null if there is no next page

## Other responses

- `4XX` — An error. The body carries a machine-readable error_code and a human-readable msg; every code is documented at https://ngrok.com/docs/errors. A 429 with error code ERR_NGROK_226 means the account exceeded the documented request-rate limit.
- `5XX` — An error. The body carries a machine-readable error_code and a human-readable msg; every code is documented at https://ngrok.com/docs/errors. A 429 with error code ERR_NGROK_226 means the account exceeded the documented request-rate limit.

## Changes

- **2025-12-16** `602cd080d3a7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ngrok/apis/ngrok-openapi/changes/vaults/:id/secrets/get.md)

---

[API](https://skmtc.dev/ngrok/apis/ngrok-openapi.md) · [All operations](https://skmtc.dev/ngrok/apis/ngrok-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ngrok/ngrok-openapi/revisions/c697539ac350/schema)
