---
title: "Create Config Store Secret"
method: POST
path: "/v2/control-planes/{controlPlaneId}/config-stores/{configStoreId}/secrets"
tags: ["Config Store Secrets"]
---

# Create Config Store Secret

`POST /v2/control-planes/{controlPlaneId}/config-stores/{configStoreId}/secrets`

Creates a secret for a Config Store.

## Request body

- CreateConfigStoreSecret
  - `key` string, required
  - `value` string, required

## Response `201`

Config Store Secret

- ConfigStoreSecret
  - `key` string, nullable
  - `value` string, nullable
  - `created_at` string, date-time — An ISO-8601 timestamp representation of entity creation date.
  - `updated_at` string, date-time — An ISO-8601 timestamp representation of entity update date.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `415` — Unsupported Media Type

## Changes

- **2025-10-29** `19e869275e28` — 1 warning
  - added the new `type` enum value to the `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
- **2025-09-02** `44bb2f5730c4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kong/apis/konnect-api/changes/v2/control-planes/:controlPlaneId/config-stores/:configStoreId/secrets/post.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api.md) · [All operations](https://skmtc.dev/kong/apis/konnect-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kong/konnect-api/revisions/72502a676a92/schema)
