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

# POST /v1/secrets

`POST /v1/secrets`

CreateSecret

## Request body

- UsercenterV1CreateSecretRequest
  - `name` string
  - `expires` string
  - `description` string

## Response `200`

OK

- UsercenterV1SecretReply
  - `userID` string
  - `name` string
  - `secretID` string
  - `secretKey` string
  - `expires` string
  - `status` integer
  - `description` string
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Changes

- **2024-04-03** `ae599f31f558` — 1 info
  - endpoint added

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

---

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