Users of DeltaJSON SaaS service download a refresh token from the DeltaJSON application.

Following end point allows users to pass the existing token and get the new token if the existing one is expired.

Endpoint

https://www.deltaxml.com/api/djsonapp/v1/authorise

Operation

POST

Description

Refresh token for authorisation

Example Request

 http://localhost:8080/api/json/v1/authorise?refresh=sc0eMSsD5t9T7Uq0uAF10jF3rvn7i87oTJFdonf6BRM0t&expiry=1645775547416&id=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlFVUkdRekkwTmtGRE5ESkVOamhDTTBVelJVUXdSRUZETlRrelJUazRORFUwUXpWQk5rUkJNQSJ9.eyJlbWFpbCI6InRlamFzLmJhcmhhdGVAZGVsdGF4bWwuY29tIiwiZ2l2ZW5fbmFtZSI6IlRlamFzIiwiZmFtaWx5X25hbWUiOiJCYXJoYXRlIiwiY29tcGFueSI6IkRlbHRhWE1MIEx0ZCIsIm5pY2tuYW1lIjoidGVqYXNiIiwibmFtZSI6IlRlamFzIEJhcmhhdGUiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiY2xpZW50SUQiOiJ5NkhBeHRneW1HblVkM1RmZWFtQUZqbGFsb3ZGTGJzayIsInVwZGF0ZWRfYXQiOiIyMDIyLTAyLTI0VDA3OjUyOjI1Ljg5MFoiLCJwaWN0dXJlIjoiaHR0cHM6Ly9zLmdyYXZhdGFyLmNvbS9hdmF0YXIvOWZkZjkwMDljNmI2NDlkNTc3N2NjZjhlZDE1NGRkMmY_cz00ODAmcj1wZyZkPWh0dHBzJTNBJTJGJTJGY2RuLmF1dGgwLmNvbSUyRmF2YXRhcnMlMkZ0Yi5wbmciLCJ1c2VyX2lkIjoiYXV0aDB8NDcyMSIsImlkZW50aXRpZXMiOlt7InVzZXJfaWQiOiI0NzIxIiwicHJvdmlkZXIiOiJhdXRoMCIsImNvbm5lY3Rpb24iOiJEZWx0YVhNTC1EQiIsImlzU29jaWFsIjpmYWxzZX1dLCJjcmVhdGVkX2F0IjoiMjAxNy0wNC0xMVQwNzo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