Skip to content

Refresh JWT token

Request

Exchanges a valid refresh token for a new access token and refresh token pair.

Parameters: Pass the refresh token as the token query parameter.

Requirements: The host must be active.

Expiration: The refresh token becomes usable 30 seconds before the access token expires and is valid for 2 hours from the original login.

Authorization: None. Don't send the expired Direct token as a Bearer header: it is rejected with 401 SC401 before the refresh runs.

Query
tokenstring
curl -i -X GET \
  'https://efx-wgt.stitchcredit.com/api/direct/refresh-token?token=string'

Responses

Token refreshed successfully

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

Access token (JWT). Send as Authorization: Bearer <token> on subsequent calls.

expiresinteger, (int64)

Access-token validity in seconds

refreshstring

Refresh token used to obtain a new access token without re-authenticating

Response

Refresh Response

{ "token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1NTBlODQwMCJ9.abc", "expires": 3600, "refresh": "eyJhbGciOiJIUzI1NiJ9.ref.xyz" }