---
title: "Create a new user"
method: POST
path: "/admin/users"
tags: ["Administration"]
---

# Create a new user

`POST /admin/users`

Requires the authenticated user to be a site administrator.

## Request body

- object
  - `source_id` integer
  - `login_name` string
  - `username` string, required
  - `full_name` string
  - `email` string, email, required
  - `password` string
  - `send_notify` boolean

## Response `201`

Created

- User
  - `id` integer
  - `username` string
  - `login` string — Alias of username for GitHub API compatibility
  - `full_name` string
  - `email` string, email
  - `avatar_url` string

## Other responses

- `422` — Validation error.

---

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