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

# Create Custom Secret

`POST /api/secrets`

## Request body

- CustomSecretModel — Custom secret model with value
  - `name` string, required
  - `description` string, nullable
  - `value` string, password, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/all-hands/apis/openhands.md) · [All operations](https://skmtc.dev/all-hands/apis/openhands/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/all-hands/openhands/revisions/4daa2bb4dbf1/schema)
