Refresh an authentication token

Refresh valid authentication tokens without the need to collect user credentials.

Prerequisites

  • The token you are refreshing.
  • REST client or access to Automation Anywhere Swagger files for your Control Room.
  • URL: http://<your_control_room_url>/v1/authentication/token
  • Method: POST

Procedure

  1. Enter the following parameters in the request body.
    Request body:
    {
        "token": "eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIxIiwiY2xpZW50VHlwZSI6IldFQiIsImxpY2Vuc2VzIjpbXSwiYW5hbHl0aWNzTGljZW5zZXNQdXJjaGFzZWQiOnsiQW5hbHl0aWNzQ2xpZW50Ijp0cnVlLCJBbmFseXRpY3NBUEkiOnRydWV9LCJpYXQiOjE1NzMxMDgwNjEsImV4cCI6MTU3MzEwOTI2MSwiaXNzIjoiQXV0b21hdGlvbkFueXdoZXJlIiwibmFub1RpbWUiOjM2NTc3NTA4OTY5NzUxMDAsImNzcmZUb2tlbiI6ImJiNjgzMGJhMDY5MWYwYjZiM2M3MDE4NGY0OGM0MWY1In0.f3kPRspfm0sei9DGHd9NoyLK-iCO-vs--8b_pLG9XSUR0186uvXFopB75eVAaG-1l_AZhR78UE6Voi7_UggzHkLRrEpQ-szR7cmFDpLxZ28xLnFJYhaIuMNdw9dWDVquBWTQSpYGNJd56D-tFFHBodwVdNamqWHxaQebq1zMyUyQV6Q-gKdgubpT5gwuXnp-BwScjHOYM3Fpj_nt0nEbJC5uWpJNtLQBpVzhsRwwlRKNOHQVbo6X7zkvKBoij8ewa5FWQwX7T-760BeqfssR6mmMUo0zRaneUKAYAskz0B-X5PcyCkrVJju2XqItQ9XMGNP7h_MaUDotU_CJyguPZA"
    }
    
  2. Send the request.
    • In a REST Client, click SEND.
    • In the Swagger interface, click Execute.
    Response body: A new token with an updated experation time.
    {
      "token": "eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIxIiwiY2xpZW50VHlwZSI6IldFQiIsImxpY2Vuc2VzIjpbXSwiYW5hbHl0aWNzTGljZW5zZXNQdXJjaGFzZWQiOnsiQW5hbHl0aWNzQ2xpZW50Ijp0cnVlLCJBbmFseXRpY3NBUEkiOnRydWV9LCJpYXQiOjE1NzMxMTMxMTgsImV4cCI6MTU3MzExNDMxOCwiaXNzIjoiQXV0b21hdGlvbkFueXdoZXJlIiwibmFub1RpbWUiOjM2NjI4MDc1NDY4NjYzMDAsImNzcmZUb2tlbiI6ImUxODBiZjYxMzQyMjkwZTRlM2Q4M2ZlNTU3YWRmMmE5In0.mtR1RNDe3EPzlaLQ7mwF0yIk8G00wLKGmKTFhM2689rItXHjLLgv0iYaM1LPUtRv9GafjhXfshcIm9lucyf8k8t3A7SVJFoiFY2TUNgeouPgHl7XlpzpmenDRoT4Otu9R1_FTpMi40HH81ARG7WoLDPdOyhxgL9ZvoVtRgkMiNTn1vUJWGhzd6wMYzf70rJO_TcMKgLh3X6fpPkY_xD2ykrKsdsMO2lZnzDjzuf3BCdzGjMj1q99WKBgVwyMafv4WApUX5peRZlsiVJdZrM2x890yovW2Yy_fY3wdP_57XRp1oA5vnm9FxJN9lKyxVic3Qvx8BGtXmR-GQ3T8fndjw",
      "user": {
        "id": 1,
        "email": "a@a.com",
        "username": "admin",
        "domain": null,
        "firstName": "",
        "lastName": "",
        "version": 1,
        "principalId": 1,
        "deleted": false,
        "roles": [
          {
            "name": "AAE_Admin",
            "id": 1,
            "version": 0
          }
        ],
        . . .
        ],
        "licenseFeatures": [],
        "emailVerified": true,
        "passwordSet": true,
        "questionsSet": true,
        "enableAutoLogin": false,
        "disabled": false,
        "clientRegistered": false,
        "description": "",
        "createdBy": 0,
        "createdOn": "2019-09-25T16:03:05-05:00",
        "updatedBy": 0,
        "updatedOn": "2019-09-25T16:03:05-05:00",
        "publicKey": null,
        "appType": null,
        "routingName": null,
        "appUrl": null
      }
    }