# Exchange pre-auth token for session

Exchanges a pre-auth `{preauthToken}` for a full user session. This is how to obtain the `userToken` used for all `/users/*` endpoints. Returns the user profile along with JWT access and refresh tokens.
**Flow:** The `{preauthToken}` path parameter is the pre-auth token obtained via `GET /direct/preauth-token/{id}`.
**Requirements:** The user must be active.
**Expiration:** The user access token is valid for **15 minutes** and the refresh token is valid for **30 minutes**.

Endpoint: GET /users/preauth-token/{preauthToken}
Version: v3

## Path parameters:

  - `preauthToken` (string, required)
    The preauth token from `POST /direct/user-reg` or `GET /direct/preauth-token/{id}`. Valid for 30 seconds.

## Response 200:

  - `200` (unknown)
    Session established

## Response 200 fields (application/json):

  - `requestId` (string)
    Correlation ID echoed from the request, useful for tracing in logs

  - `id` (string)
    Internal user ID (UUID)

  - `email` (string)
    User's email address (also used as the login)

  - `fname` (string)
    First name

  - `lname` (string)
    Last name

  - `idpass` (boolean)
    `true` once the user has passed identity verification and been enrolled with Equifax. Required to access credit data, alerts, and reports.

  - `mobile` (string)
    Mobile phone number on file (10 digits, no formatting)

  - `demo` (boolean)
    `true` for sandbox/demo users — those whose SSN starts with `666`

  - `createdAt` (string)
    When the user account was created

  - `updatedAt` (string)
    Last update timestamp

  - `smsMsg` (boolean)
    User has opted in to SMS notifications

  - `emailMsg` (boolean)
    User has opted in to email notifications

  - `pushMsg` (boolean)
    User has opted in to push notifications

  - `flags` (integer)
    Feature-flags bitmask — controls which products/features are active for this user (see Widget feature-flags reference)

  - `just_enrolled` (boolean)
    `true` if this response was returned immediately after a successful enrollment (helps the client decide whether to show a welcome state)

  - `paused` (boolean)
    `true` if credit monitoring is currently paused for this user. Paused users keep their data but stop receiving alerts and refreshes until resumed.

  - `dormant` (boolean)
    `true` if the user was created as a dormant user (enrolled without features). This is a fixed type marker set at creation and never changes — it stays `true` even after the user activates features. Use `flags` for the user's current feature state.

  - `token` (string)
    User access token (JWT). Send as `Authorization: Bearer <token>` on every `/users/*` request.

  - `expires` (integer)
    Access-token validity in seconds

  - `refresh` (string)
    Refresh token used to obtain a new access token without re-authenticating. Valid for 30 minutes.

## 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:

  - `Login Response` (unknown)
    Login Response

## Response 400 examples:

  - `Token Required` (unknown)
    Token Required

  - `Invalid Token` (unknown)
    Invalid Token

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

## Response 401 examples:

  - `Pre-auth Token Expired` (unknown)
    Pre-auth Token Expired

  - `User Disabled` (unknown)
    User Disabled

