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

---

[API](https://skmtc.net/fw-ai-external/apis/gateway-rest-api.md) · [All operations](https://skmtc.net/fw-ai-external/apis/gateway-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fw-ai-external/gateway-rest-api/revisions/29a1e4db152c/schema)
