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

# Get Secret

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

Retrieves a secret by name. Note that the `value` field is not returned in the response for security reasons. Only the `name` and `key_name` fields are included.

## Path parameters

- `account_id` string, required
- `secret_id` string, required

## Query parameters

- `readMask` string

## Response `200`

A successful response.

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

## 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/:secret_id/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)
