---
title: "Create an AI Gateway Config Store Secret"
method: POST
path: "/v1/ai-gateways/{gatewayId}/config-stores/{configStoreIdOrName}/secrets"
tags: ["AI Gateway Config Stores"]
---

# Create an AI Gateway Config Store Secret

`POST /v1/ai-gateways/{gatewayId}/config-stores/{configStoreIdOrName}/secrets`

**Pre-release Endpoint**
This endpoint is currently in beta and is subject to change.

Creates a secret for an AI Gateway Config Store.

## Request body

- CreateAIGatewayConfigStoreSecretRequest — **Pre-release Feature** This feature is currently in beta and is subject to change.
  - `key` string, required — **Pre-release Feature** This feature is currently in beta and is subject to change. The unique key identifying the secret within the Config Store.
  - `value` string, required — **Pre-release Feature** This feature is currently in beta and is subject to change. The secret value. Once stored, this value cannot be retrieved.

## Response `201`

AI Gateway Config Store Secret created successfully.

- AIGatewayConfigStoreSecret — **Pre-release Feature** This feature is currently in beta and is subject to change.
  - `key` string, required — **Pre-release Feature** This feature is currently in beta and is subject to change. The unique key identifying the secret within the Config Store.
  - `created_at` string, date-time, required — An ISO-8601 timestamp representation of entity creation date.
  - `updated_at` string, date-time, required — An ISO-8601 timestamp representation of entity update date.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `429` — Too Many Requests

---

[API](https://skmtc.net/kong/apis/konnect-api-beta.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-beta/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-beta/revisions/658ffb748f95/schema)
