---
title: "Create account"
method: POST
path: "/admin/accounts"
tags: ["Admin"]
---

# Create account

`POST /admin/accounts`

Create a new user account (admin only)

## Request body

- object
  - `email` string
  - `password` string
  - `user_name` string

## Response `200`

OK

- SchemaUser
  - `atime` integer
  - `avatar_url` string
  - `credential` string
  - `ctime` integer
  - `email` string
  - `id` integer
  - `locked` boolean
  - `mfa_switch` integer
  - `mobile` string
  - `name` string
  - `nick_name` string
  - `role_id` integer
  - `utime` integer
  - `wx_unionid` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.net/lxpio/apis/omnigram-api.md) · [All operations](https://skmtc.net/lxpio/apis/omnigram-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lxpio/omnigram-api/revisions/58911ffb3093/schema)
