Skip to content

CreateClerkUserInput

Defined in: users/users.ts:148

The fields accepted when creating a Clerk user.

optional backup_codes?: string[]

Defined in: users/users.ts:176

Backup codes to set for the user.


optional created_at?: string

Defined in: users/users.ts:184

The creation date to record for the user, as an ISO 8601 string.


optional email_address?: string[]

Defined in: users/users.ts:156

Email addresses to attach to the user.


optional external_id?: string

Defined in: users/users.ts:150

The identifier the user has in your own system.


optional first_name?: string

Defined in: users/users.ts:152

The user’s first name.


optional last_name?: string

Defined in: users/users.ts:154

The user’s last name.


optional password?: string

Defined in: users/users.ts:164

The user’s password in plain text.


optional password_digest?: string

Defined in: users/users.ts:166

A password hash to import, used together with password_hasher.


optional password_hasher?: string

Defined in: users/users.ts:168

The algorithm that produced password_digest.


optional phone_number?: string[]

Defined in: users/users.ts:158

Phone numbers to attach to the user.


optional private_metadata?: Record<string, unknown>

Defined in: users/users.ts:180

Metadata readable and writable only from the backend.


optional public_metadata?: Record<string, unknown>

Defined in: users/users.ts:178

Metadata readable from the frontend and backend, writable only from the backend.


optional skip_password_checks?: boolean

Defined in: users/users.ts:170

Whether to skip Clerk’s password strength checks.


optional skip_password_requirement?: boolean

Defined in: users/users.ts:172

Whether to allow creating the user without a password.


optional totp_secret?: string

Defined in: users/users.ts:174

A TOTP secret to enroll the user in authenticator-app two-factor.


optional unsafe_metadata?: Record<string, unknown>

Defined in: users/users.ts:182

Metadata that the frontend can also read and write.


optional username?: string

Defined in: users/users.ts:162

The user’s username.


optional web3_wallet?: string[]

Defined in: users/users.ts:160

Web3 wallets to attach to the user.