---
title: "Create Secret"
method: POST
path: "/secrets"
---

# Create Secret

`POST /secrets`

## Request

- Base URL: `https://api.axolotl.ai/v1`
- URL: `https://api.axolotl.ai/v1/secrets`
- Auth: HTTP bearer

## Request body

- Secrets
  - `key` string, required
  - `value` string, required
  - `is_secret` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/axolotl/apis/axolotl-api.md) - [All operations](https://skmtc.dev/axolotl/apis/axolotl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/axolotl/apis/axolotl-api/revisions/4935f751df24?raw)
