Appearance
Refresh Token
The Refresh Token section in the IIMMPACT API allows users to securely obtain a new access token without requiring the user to re-enter their credentials. By utilizing this functionality, users can seamlessly maintain their authentication session and access protected resources within the application.
IdToken : The IdToken is essential for authenticating your subsequent API requests and has an expiry of 60 minutes. Please make sure to save this IdToken and use it as a Bearer token in the
Authorizationheader for other API interactions.RefreshToken: To maintain continuous access, the RefreshToken is used to generate a new IdToken whenever the current IdToken expires. The RefreshToken itself has an expiry of 1 year. Make sure to save the RefreshToken securely and use it with our refresh API to obtain new tokens before the current ones expire.
INFO
Your API keys carry many privileges, so be sure to keep them secure. Don't share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
API Endpoint
http
POST https://api.iimmpact.com/v2/token/refreshRequest Body
| Parameter | Type | Required | Description |
|---|---|---|---|
refresh_token | string | No | refresh_token |
Response 200
To test requests using your account, replace the sample username and password with your created account.
| Field | Type | Description |
|---|---|---|
AuthenticationResult | object | The result of the authentication process. |
AuthenticationResult.AccessToken | string | The access token generated for the user. |
AuthenticationResult.ExpiresIn | number | The time duration until the idtoken expires. |
AuthenticationResult.TokenType | string | The type of token being generated. |
AuthenticationResult.RefreshToken | string | The refresh token used to obtain a new access token. |
AuthenticationResult.IdToken | string | The generated idtoken for the user. |
Example Response:
json
{
"AuthenticationResult": {
"AccessToken": "eyJraWQiOiJRN21MeXUydEthSXlP0hiOHFGcjlBRT0iLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJiYjlmODVkZi02MmY4LTQxMmVudF9pZCI6IjUyOGE3NGU3LTYyYmEtNDBmZi1iODM2LTA2OTRmYjIwYjJhYiIsInRva2VuX3VzZSI6ImFjY2VzcyIsInNjb3BlIjoiYXdzLmNvZ25pdG8uc2lnbmluLnVzZXIuYWRtaW4iLCJhdXRoX3RpbWUiOjE3NDczODkwODAsImlzcyI6Imh0dHBzOlwvXC9jb2duaXRvLWlkcC5hcC1zb3V0aGVhc3QtMS5hbWF6b25hd3MuY29tXC9hcC1zb3V0aGVhc3Qt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