---
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

---

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