---
title: "POST /v1/users"
method: POST
path: "/v1/users"
tags: ["MiniBlog"]
---

# POST /v1/users

`POST /v1/users`

CreateUser 创建用户

## Request body

- V1CreateUserRequest — CreateUserRequest 表示创建用户请求
  - `username` string — username 表示用户名称
  - `password` string — password 表示用户密码
  - `nickname` string — nickname 表示用户昵称
  - `email` string — email 表示用户电子邮箱
  - `phone` string — phone 表示用户手机号

## Response `200`

OK

- V1CreateUserResponse — CreateUserResponse 表示创建用户响应
  - `userID` string — userID 表示新创建的用户 ID

## Changes

- **2024-12-10** `2cd7efbd4c2e` — 8 warning, 3 info
  - removed the optional property `createdAt` from the response with the `200` status
  - removed the optional property `email` from the response with the `200` status
  - removed the optional property `nickname` from the response with the `200` status
  - removed the optional property `password` from the response with the `200` status
  - …7 more
- **2024-04-03** `ae599f31f558` — 11 info
  - api operation id `MiniBlog_CreateUser` removed and replaced with `UserCenter_CreateUser`
  - api tag `UserCenter` added
  - api tag `MiniBlog` removed
  - added the optional property `createdAt` to the response with the `200` status
  - …7 more

[Change history](https://skmtc.dev/onexstack/apis/miniblog-api/changes/v1/users/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/260806329592/schema)
