Skip to content

Get pre-auth token by user ID

Request

Generates a short-lived pre-auth token for the specified user.

Parameters: The {id} path parameter is the user's unique identifier (UUID).

Flow: The returned token is used to establish a user session via GET /users/preauth-token/{preauthToken}.

Requirements: The user must be active.

Expiration: The token is valid for 30 seconds.

Security
directToken
Path
idstring, (uuid)required
curl -i -X GET \
  'https://efx-wgt.stitchcredit.com/api/direct/preauth-token/{id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Pre-auth token generated

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
tokenstring

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.

userIdstring, (uuid)

ID of the user this token is bound to

Response

Preauth Token

{ "token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0In0.preauth", "userId": "550e8400-e29b-41d4-a716-446655440000" }