Autional Autional
API Reference GitHub autional.com →

POST /admin/users

Create a new user account and return user information

Account Management `bearerAuth` application/json

Request Body

Schema: dto.HTTPUserCreateRequest

FieldTypeRequiredExampleConstraintsDescription
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

Responses

StatusDescriptionSchema
201Created successfullydto.CreateUserResponse

Referenced Schemas

dto.AuthUserResponse

Authenticated user info

FieldTypeRequiredExampleConstraintsDescription
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

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.UserWithIdentitiesResponse No
message string No
timestamp string No

dto.IdentityResponse

User credential info

FieldTypeRequiredExampleConstraintsDescription
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

FieldTypeRequiredExampleConstraintsDescription
identities array of

See dto.IdentityResponse

No
user dto.AuthUserResponse No