---
title: "List secrets"
method: GET
path: "/secrets"
tags: ["Secrets"]
---

# List secrets

`GET /secrets`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/secrets`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-2/docs/secrets/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a list of secrets from the secrets bucket. By default, only key names are returned unless reveal=true is specified.

## Query parameters

- `limit` integer
- `reveal` boolean

## Response `200`

List of secrets retrieved successfully

- SecretList
  - `results` SecretListItem[]
    - `key` string, required: The unique identifier for the secret
    - `value` string: The secret value (only included when reveal=true)
  - `results_total` integer
  - `truncated` boolean: More results exist than the limit returned
  - `next_cursor` string: Cursor for the next page

## Other responses

- `400`: Bad request

## Changes

- **2026-11-12** `4b1f083f4026`: 1 breaking, 4 info
  - the response's body type changed from `array` to `object` for status `200`
  - added the optional property `next_cursor` to the response with the `200` status
  - added the optional property `results` to the response with the `200` status
  - added the optional property `results_total` to the response with the `200` status
  - …1 more

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-2/changes/secrets/get.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-2.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-2/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-2/revisions/4b1f083f4026?raw)
