---
title: "Add new user to the database"
method: POST
path: "/user"
tags: ["user"]
---

# Add new user to the database

`POST /user`

Add a new user

## Request body

- UserCreateRequest
  - `password` string
  - `username` string

## Response `200`

{"code":0,"message":"OK","data":{"username":"kong"}}

- UserCreateResponse
  - `username` string

---

[API](https://skmtc.dev/golearnku/apis/tapi-blog-example-api.md) · [All operations](https://skmtc.dev/golearnku/apis/tapi-blog-example-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/golearnku/tapi-blog-example-api/revisions/a44ba956919c/schema)
