# Store user identity

Stores a user's PII — use it to add details for a user who has none stored, or to update what is already there.
**Parameters:** The `{userId}` path parameter is the user's unique identifier (UUID).

Endpoint: POST /direct/users/{userId}/identity
Version: v3
Security: directToken

## Security:

  - `directToken` (unknown)
    http bearer JWT

## Path parameters:

  - `userId` (string, required)

## Request fields (application/json):

  - `dob` (string, required)
    Date of birth in yyyy-MM-dd format, must be 18+
    Example: 1990-01-15

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

  - `ssn` (string, required)
    9-digit Social Security Number, digits only
    Example: 123456789

  - `street1` (string, required)
    Street address line 1 — letters, numbers, spaces, and - . # ' , / allowed (max 60 characters)
    Example: 123 Main St

  - `street2` (string)
    Street address line 2 — same character rules as street1 (max 60 characters)
    Example: Apt 4B

  - `city` (string, required)
    City name — letters and spaces only (max 25 characters)
    Example: New York

  - `state` (string, required)
    2-letter US state code
    Example: NY

  - `zip` (string, required)
    ZIP code, 5–10 digits
    Example: 10001

  - `country` (string)
    Country code
    Example: US

  - `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

  - `mname` (string)
    Middle name — letters, spaces, hyphens, apostrophes, and periods only (max 25 characters)

  - `suffix` (string)
    Name suffix (max 10 characters)
    Example: Jr

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

  - `diSessionToken` (string)
    Digital Identity session token for onboarding verification

## Response 204:

  - `204` (unknown)
    Identity stored

## Response 204 headers:

  - `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 204 examples:

  - `No Content` (unknown)
    No Content

## Response 400 examples:

  - `User Not Found` (unknown)
    User Not Found

  - `Unauthorized Access` (unknown)
    Unauthorized Access

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

## Response 401 examples:

  - `Host Disabled` (unknown)
    Host Disabled

  - `Customer Disabled` (unknown)
    Customer Disabled

