POST /admin/users
Create a new user account and return user information
Account Management `bearerAuth` application/json
Request Body
Schema: dto.HTTPUserCreateRequest
| Field | Type | Required | Example | Constraints | Description |
password |
string |
Yes |
|
length: 8–? |
Password |
email |
string |
No |
|
|
Email |
force_password_change |
boolean |
No |
|
|
Force user to change password on first login |
metadata |
object |
No |
|
extra keys: `string` |
Metadata |
phone |
string |
No |
|
|
Phone |
username |
string |
No |
|
|
Username |
Referenced Schemas
dto.AuthUserResponse
Authenticated user info
| Field | Type | Required | Example | Constraints | Description |
age_group |
string |
No |
|
|
Age group |
birth_date |
string |
No |
|
|
Date of birth (RFC3339) |
created_at |
string |
No |
2026-01-01T00:00:00Z |
|
Created at |
email |
string |
No |
john@example.com |
|
Email |
email_verified_at |
string |
No |
2026-01-10T08:00:00Z |
|
Email verified at |
id |
string |
No |
usr_abc123 |
|
User ID |
is_minor |
boolean |
No |
|
|
Is minor |
last_login_at |
string |
No |
2026-04-14T10:30:00Z |
|
Last login |
last_login_ip |
string |
No |
192.168.1.1 |
|
Last login IP |
locked_until |
string |
No |
2026-04-15T12:00:00Z |
|
Lockout end |
login_fail_count |
integer |
No |
0 |
|
Failure count |
metadata |
object |
No |
|
|
Extended metadata |
mfa_enabled |
boolean |
No |
False |
|
MFA enabled |
mfa_type |
string |
No |
totp |
|
MFA type |
must_change_password |
boolean |
No |
False |
|
Force password change |
password_changed_at |
string |
No |
|
|
Password last changed at |
pending_parental_consent |
boolean |
No |
|
|
Awaiting parental consent |
phone |
string |
No |
13800138000 |
|
Phone number |
phone_verified_at |
string |
No |
2026-01-10T08:00:00Z |
|
Phone verified at |
status |
string |
No |
active |
|
Status |
tenant_id |
string |
No |
tnt_xyz789 |
|
Tenant ID |
updated_at |
string |
No |
2026-04-10T14:20:00Z |
|
Updated at |
username |
string |
No |
john_doe |
|
Username |
dto.CreateUserResponse
dto.IdentityResponse
User credential info
| Field | Type | Required | Example | Constraints | Description |
created_at |
string |
No |
2026-01-01T00:00:00Z |
|
Created at |
id |
string |
No |
id_abc123 |
|
Credential ID |
identifier |
string |
No |
j***@example.com |
|
Identifier (masked) |
is_primary |
boolean |
No |
True |
|
Is primary credential |
is_verified |
boolean |
No |
True |
|
Is verified |
type |
string |
No |
email |
|
Type |
user_id |
string |
No |
usr_abc123 |
|
User ID |
verified_at |
string |
No |
2026-01-10T08:00:00Z |
|
Verified at |
dto.UserWithIdentitiesResponse