XS2A.api.users

Refresh an accesstoken

post/api/users/{user-id}/accesstokens/{token-id}/refresh

Path parameters

user-idstring required

The user-id for the user to refresh a specific accesstoken for.

token-idstring required

The token-id for the token to refresh.

Request body

valid_untilstring

The accesstoken is valid until the given date (Format: YYYY-MM-DD hh:mm:ss).

Example request

{
  "valid_until": "2018-03-22 12:14:58"
}

Response

Request successfully processed

idstring

access Token ID

tokenstring

The Access Token

valid_untilstring

The date-time this token expires. Note that the access token is valid for one hour. After one hour you have to refresh the token, to be valid another hour.

created_atstring

Date of creation

objectstring

The value bank_user_access_token

Example response

{
  "id": "uat_MEYAT0R7Gm2vkZtU",
  "token": "4K9JaNOhnCknZJyAXHKkrS6g0Ik7V0CX",
  "valid_until": "2018-03-22 12:14:58",
  "created_at": "2018-03-16 11:14:58",
  "object": "bank_user_access_token"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.