Read and Review Automation Anywhere Documentation

Automation 360

Close Contents

Contents

Open Contents

Refresh a valid authentication token API

  • Updated: 1/06/2021
    • Automation 360 v.x
    • Manage
    • RPA Workspace

Refresh a valid authentication token API

Generate a JSON Web Token using a valid token. This endpoint provides you with a new token without the need to collect and authenticate credentials every time a token expires. By default, a token is valid for 20 minutes.

Prerequisites

Note: You can view the Control Room APIs in the Community Edition, but API functionality is limited. You need a licensed Automation 360 Edition to access the full functionality of the APIs.

Verify if a JSON Web Token is valid: Validate an authentication token API.

Procedure

  1. Use the POST method and endpoint URL: <your_control_room_url>/v1/authentication/token.
    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.
    Response body: The response includes a new token with an updated expiration 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
      }
    }
Send Feedback