Skip to main content

RefreshToken

Refreshes the session token, returning new session and refresh tokens

Parameters

Details

The response will provide a new session token, that must be used in the header of the messages for queries. When using client libraries, tokens are handled automatically.

Note that if using the python client, session refresh will be handled automatically, as long as commands are issued with a frequency greater than the refresh timeout.

Examples

Refresh a session token:


[{
"RefreshToken": {
"refresh_token": "adbr_TxchBKOyerwLEbNnnhuoxtzSuC8ag0u9j5O"
}
}]

Response from the refresh:


[{
"RefreshToken": {
"status": 0,
"session_token": "adbs_FE3fajEyerwLEb42kqwfkhqdHJ2ag0u9j5O",
"session_token_expires_in": 36000,
"refresh_token": "adbr_Z2nOUCAE37tlfcPUdeNGE5wtMRZvFYUn6iv",
"refresh_token_expires_in": 360000
}
}]