---
title: "List Secrets"
method: GET
path: "/v1/accounts/{account_id}/secrets"
tags: ["gateway.openapi_Gateway"]
---

# List Secrets

`GET /v1/accounts/{account_id}/secrets`

Lists all secrets for an account. Note that the `value` field is not returned in the response for security reasons. Only the `name` and `key_name` fields are included for each secret.

## Path parameters

- `account_id` string, required

## Query parameters

- `pageSize` integer
- `pageToken` string
- `filter` string
- `orderBy` string
- `readMask` string

## Response `200`

A successful response.

- GatewayListSecretsResponse
  - `secrets` GatewaySecret[]
    - `name` string, required
    - `keyName` string, required
    - `value` string — The secret value. This field is INPUT_ONLY and will not be returned in GET or LIST responses for security reasons. The value is only accepted when creating or updating secrets.
  - `nextPageToken` string
  - `totalSize` integer — The total number of secrets.

## Changes

- **2025-11-06** `311efdb2fa57` — 3 info
  - the endpoint scheme security `BearerAuth` was added to the API
  - api tag `gateway.openapi_Gateway` added
  - api tag `Gateway` removed

[Change history](https://skmtc.dev/fw-ai-external/apis/gateway-rest-api/changes/v1/accounts/:account_id/secrets/get.md)

---

[API](https://skmtc.dev/fw-ai-external/apis/gateway-rest-api.md) · [All operations](https://skmtc.dev/fw-ai-external/apis/gateway-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fw-ai-external/apis/gateway-rest-api/revisions/29a1e4db152c?raw)
