Skip to content

Users

users_users_create

Create an end user of this product with at least one identifier (email).

Tool

users_users_create

Create an end user of this product with at least one identifier (email).

Create an end user of this product with at least one identifier (email). Optionally store a password HASH — this toolkit never accepts a plaintext password, and nothing verifies the credential until auth flows land in Phase 2. Only one VERIFIED copy of an email may exist per product; unverified duplicates are allowed.

Behavior

HTTP
POST /users/users

Arguments

NameTypeRequiredDescription
namestringThe user's display name.
imageUrlstringURL of the user's avatar image.
passwordobjectOptional credential to store for this user. Hashes only — this toolkit never accepts a plaintext password. Nothing verifies it until Phase 2.
testUserbooleanCreate this user as a TEST FIXTURE: excluded from metering (it never counts toward retained-users), hidden from the default users_users_list view, never really emailed, and — when the deployment configures one — able to sign in with the fixed magic OTP. REFUSED unless this product has test mode enabled, which a production deployment cannot do. There is no way to set or clear this later. Default false.
waitlistedbooleanCreate the user as a waitlist signup: no way in until promoted. Default false.
identifiersarrayThe email addresses that reach this user. At least one is required.
requiresResetbooleanForce a password reset before the user can sign in (use for unverifiable imported hashes). Default false.
publicMetadataobjectMetadata the end user may READ and that may flow into the JWT. Management-plane write only.
unsafeMetadataobjectMetadata the end user may WRITE in a later phase. Never trust it for authorization.
privateMetadataobjectMetadata visible to the management plane only. Never exposed to the end user.

Response

FieldTypeAlwaysDescription
idstring
namestring
bannedAtstring
erasedAtstring
imageUrlstring
testUserboolean
createdAtstring
deletedAtstring
productIdstring
updatedAtstring
waitlistedboolean
identifiersarray
lockedUntilstring
lastSignInAtstring
requiresResetboolean
publicMetadataobject
unsafeMetadataobject
privateMetadataobject
emailChangeLockedUntilstring

Try it

Create an end user of this product with at least one identifier (email).

When to use

Create an end user of this product with at least one identifier (email). Optionally store a password HASH — this toolkit never accepts a plaintext password, and nothing verifies the credential until auth flows land in Phase 2. Only one VERIFIED copy of an email may exist per product; unverified duplicates are allowed.

Example

Ask your agent something like this:

Create an end user of this product with at least one identifier (email).

The agent will invoke users_users_create with these arguments:

{
  "identifiers": "<identifiers>"
}

Esc

Start typing to search the docs.

navigateselect