# Register a new user

Registers a new user under the authenticated host and returns the user data.
**Requirements:** Email must be unique within the host.
**Dormant users.** If dormant enrollment is enabled for your account, set `"dormant": true` to create the user without activating any monitoring features. The user still completes identity verification normally; features are turned on later via `POST /users/activate-features`.

Endpoint: POST /direct/user-reg
Version: v3
Security: directToken

## Security:

  - `directToken` (unknown)
    http bearer JWT

## Request fields (application/json):

  - `email` (string, required)
    Valid email address
    Example: user@example.com

  - `mobile` (string, required)
    10-digit US phone number, digits only
    Example: 5551234567

  - `fname` (string, required)
    First name — letters, spaces, hyphens, apostrophes, and periods only (max 25 characters)
    Example: John

  - `lname` (string, required)
    Last name — letters, spaces, hyphens, apostrophes, and periods only (max 25 characters)
    Example: Doe

  - `smsMsg` (boolean)
    Opt-in for SMS notifications

  - `emailMsg` (boolean)
    Opt-in for email notifications

  - `pushMsg` (boolean)
    Opt-in for push notifications

  - `dormant` (boolean)
    Enroll the user as dormant — created without any features until they are explicitly activated. Honored only for dormant-enabled customers.

## Request examples:

  - `Registration Request` (unknown)
    Registration Request

## Response 200:

  - `200` (unknown)
    User registered successfully

## Response 200 fields (application/json):

  - `token` (string)
    Pre-auth token (JWT). Hand to the widget or to your client app, then exchange via `GET /users/preauth-token/{preauthToken}`. **Valid for 30 seconds** — generate it on demand.

  - `userId` (string)
    ID of the user this token is bound to

## Response 200 headers (application/json):

  - `X-Request-Id` (string)
    Correlation id for this request. Quote it when reporting a problem - it identifies the call, and every bureau call it triggered, in the API log. Send your own X-Request-Id to correlate with your systems; a malformed value is replaced.

## Response 400:

  - `400` (unknown)
    Bad request

## Response 400 fields (application/json):

  - `timestamp` (string)

  - `codes` (array)

  - `messages` (array)

  - `details` (array)

## Response 400 headers (application/json):

  - `X-Request-Id` (string)
    Correlation id for this request. Quote it when reporting a problem - it identifies the call, and every bureau call it triggered, in the API log. Send your own X-Request-Id to correlate with your systems; a malformed value is replaced.

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `timestamp` (string)

  - `codes` (array)

  - `messages` (array)

  - `details` (array)

## Response 401 headers (application/json):

  - `X-Request-Id` (string)
    Correlation id for this request. Quote it when reporting a problem - it identifies the call, and every bureau call it triggered, in the API log. Send your own X-Request-Id to correlate with your systems; a malformed value is replaced.

## Response 200 examples:

  - `Registration Response` (unknown)
    Registration Response

## Response 400 examples:

  - `User Already Registered` (unknown)
    User Already Registered

  - `Invalid Request` (unknown)
    Invalid Request

  - `Customer Not Found` (unknown)
    Customer Not Found

  - `Dormant Not Enabled for Account` (unknown)
    Dormant Not Enabled for Account

## Response 401 examples:

  - `Host Disabled` (unknown)
    Host Disabled

  - `Customer Disabled` (unknown)
    Customer Disabled

