---
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

---

[API](https://skmtc.net/ngrok/apis/ngrok-openapi.md) · [All operations](https://skmtc.net/ngrok/apis/ngrok-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ngrok/ngrok-openapi/versions/1994bbb04714/schema)
