---
title: "Add a new console user."
method: POST
path: "/v2/console/user"
tags: ["Console"]
---

# Add a new console user.

`POST /v2/console/user`

## Request

- Base URL: `http://127.0.0.1:7351`
- URL: `http://127.0.0.1:7351/v2/console/user`
- Auth: API key in header `Authorization`

## Request body

- AddUserRequest
  - `username` string: The username of the user.
  - `email` string: Email address of the user.
  - `acl` object: ACL.
  - `mfa_required` boolean
  - `newsletter_subscription` boolean

## Response `200`

A successful response.

- AddUserResponse: Response to create/invite a new user.
  - `user` ConsoleUser
    - `id` string: User identifier.
    - `username` string
    - `email` string
    - `acl` object: ACL.
    - `mfa_required` boolean: Whether the user is required to setup MFA.
    - `mfa_enabled` boolean: Whether the user has MFA enabled.
    - `create_time` string, date-time
    - `update_time` string, date-time
  - `token` string

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/heroiclabs/apis/nakama-console-api-v2.md) - [All operations](https://skmtc.dev/heroiclabs/apis/nakama-console-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/heroiclabs/apis/nakama-console-api-v2/revisions/fbde2e3c5ead?raw)
