---
title: "Create a new secret"
method: POST
path: "/v1/secrets"
tags: ["Secrets"]
---

# Create a new secret

`POST /v1/secrets`

## Request body

- object
  - `name` string, required
  - `value` string, required
  - `description` string, nullable
  - `category` string, nullable

## Response `201`

---

[API](https://skmtc.dev/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.dev/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/6e22489e33cb/schema)
