XS2A.api.users

Create an accesstoken for a xs2a.api bank user

The generated access token is valid for one hour before it expires by default. It is possible to set a specific expiration-date using the valid_until parameter.

put/api/users/{user-id}/accesstokens

Path parameters

user-idstring required

The user-id for the user to create an accesstoken for.

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.