---
title: "Create or update a secret"
method: PUT
path: "/secrets"
tags: ["Secrets"]
---

# Create or update a secret

`PUT /secrets`

Stores a new secret or updates an existing one in the secrets bucket

## Request body

- SecretCreate
  - `key` string, required — The unique identifier for the secret
  - `value` string, required — The secret value to store

## Response `200`

Secret created/updated successfully

- object
  - `message` string

## Other responses

- `400` — Bad request

---

[API](https://skmtc.net/quivaworks/apis/quiva-ai-gateway-2.md) · [All operations](https://skmtc.net/quivaworks/apis/quiva-ai-gateway-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quivaworks/quiva-ai-gateway-2/revisions/701ae7378fcd/schema)
