Refresh A Token

Refresh A Token

Refresh Token provides new access token for logged in user by sending their access token in request body.

Request Parameters

AccessToken String (Required)

The user’s token retrieved on login request can be send in refresh token request body to get new access token in case if token is expired after given time

				
					{
  "accessToken": " eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJkNTZhNWMwNy1lMjkzLTQxYWEtOGFkMy0xNWU3NWJkMDNmZTkiLCJSZWZyZXNoVG9rZW4iOiJQSlJkbFU5cjhIa1o3c1FSUVNBV0hBY3RQbHFjSTVYNkppWUFHemI0d01rbzRXSnhSSjVUYjVodzV0ZUwxM1ZWVC90RGUra0xsOGhnRXJJTDVIZExvQT09IiwiUmVmcmVzaFRva2VuRXhwaXJ5VGltZSI6IjEwLzE2LzIwMjQgMTA6MDA6MDQgQ "
}
				
			

Response

Success Boolean(Nullable)

Request status

Message String(Nullable)

Success or failure message

Data Object(Nullable)

Contains the access token

				
					{
  "success": true,
  "message": "Token generated successfully.",
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJkNTZhNWMwNy1lMjkzLTQxYWEtOGFkMy0xNWU3NWJkMDNmZTkiLCJSZWZyZXNoVG9rZW4iOiJQSlJkbFU5cjhIa1o3c1FSUVNBV0hBY3RQbHFjSTVYNkppWUFHemI0d01rbzRXSnhSSjVUYjVodzV0ZUwxM1ZWVC90RGUra0xsOGhnRXJJTDVIZExvQT09IiwiUmVmcmVzaFRva2VuRXhwaXJ5VGltZSI6IjEwLzE2LzIwMjQgMTA6MDA6MDQgQU0iLCJGaXJzdE5hbWUiOiJNZWdoYW5hIiwiTGFzdE5hbWUiOiJUaG9tYmFyZSIsIlVzZXJJZCI6IjI2OTk1OTAiLCJTaXRlSWQiOiIxNCIsIlVzZXJOYW1lIjoibWVnaGFuYS50IiwiZXhwIjoxNzI4NDc1MjcEWCbWggPeseXwSu6_EiaPTA1QyQTo"
  }
}