---
title: "POST /api/v1/secrets"
method: POST
path: "/api/v1/secrets"
tags: ["secrets"]
---

# POST /api/v1/secrets

`POST /api/v1/secrets`

## Request body

- CreateSecretDto
  - `name` string, required — Human-readable unique secret name
  - `value` string, required — Secret plaintext value
  - `description` string — Optional description for operators
  - `tags` string[] — Optional tags to help organize secrets

## Response `201`

- SecretSummaryResponse
  - `id` string, required
  - `name` string, required
  - `description` string
  - `tags` string[]
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `activeVersion` SecretVersionResponse
    - `id` string, required
    - `version` number, required
    - `createdAt` string, date-time, required
    - `createdBy` string

## Changes

> 49 revisions in range; 1 could not be searched.

- **2025-11-04** `b0518ab33431` — 1 info
  - endpoint added
- **2025-10-24** `8db531c050e5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/shipsecai/apis/shipsec-studio-api/changes/api/v1/secrets/post.md)

---

[API](https://skmtc.dev/shipsecai/apis/shipsec-studio-api.md) · [All operations](https://skmtc.dev/shipsecai/apis/shipsec-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/shipsecai/shipsec-studio-api/revisions/cc60562ad9f3/schema)
