---
title: "POST /v1/accounts/{account_id}/secrets"
method: POST
path: "/v1/accounts/{account_id}/secrets"
tags: ["Gateway"]
---

# POST /v1/accounts/{account_id}/secrets

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

## Path parameters

- `account_id` string, required

## Request body

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

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

---

[API](https://skmtc.net/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api.md) · [All operations](https://skmtc.net/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fireworks/fireworks-ai-anthropic-compatible-messages-api/revisions/954d6bc5d922/schema)
