Skip to content

User - Initialization & Authentication

Bootstrap a client-side session by exchanging a server-issued preauth token for a user access token.

Authentication. GET /users/preauth-token/{preauthToken} accepts a preauth token (no user token yet); the response returns a user access token used for all other /users/* endpoints.

Preauth token lifetime. Single-use, 30-second lifetime. Issued by GET /direct/preauth-token/{id} from your backend and exchanged here immediately.

Exchange pre-auth token for session

Request

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.

Path
preauthTokenstringrequired

The preauth token from POST /direct/user-reg or GET /direct/preauth-token/{id}. Valid for 30 seconds.

curl -i -X GET \
  'https://efx-wgt.stitchcredit.com/api/users/preauth-token/{preauthToken}'

Responses

Session established

Headers
X-Request-Idstring, (uuid)

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.

Bodyapplication/json
requestIdstring

Correlation ID echoed from the request, useful for tracing in logs

idstring, (uuid)

Internal user ID (UUID)

emailstring

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

fnamestring

First name

lnamestring

Last name

idpassboolean

true once the user has passed identity verification and been enrolled with Equifax. Required to access credit data, alerts, and reports.

mobilestring

Mobile phone number on file (10 digits, no formatting)

demoboolean

true for sandbox/demo users — those whose SSN starts with 666

createdAtstring, (date-time)

When the user account was created

updatedAtstring, (date-time)

Last update timestamp

smsMsgboolean

User has opted in to SMS notifications

emailMsgboolean

User has opted in to email notifications

pushMsgboolean

User has opted in to push notifications

flagsinteger, (int32)

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

just_enrolledboolean

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

pausedboolean

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

dormantboolean

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.

tokenstring

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

expiresinteger, (int64)

Access-token validity in seconds

refreshstring

Refresh token used to obtain a new access token without re-authenticating. Valid for 30 minutes.

Response

Login Response

{ "id": "550e8400-e29b-41d4-a716-446655440000", "email": "john.doe@example.com", "fname": "John", "lname": "Doe", "mobile": "3035551234", "idpass": true, "demo": false, "smsMsg": false, "emailMsg": true, "pushMsg": false, "flags": 31, "paused": false, "just_enrolled": false, "token": "eyJhbGciOiJIUzI1NiJ9.user.abc", "expires": 900, "refresh": "eyJhbGciOiJIUzI1NiJ9.ref.xyz" }