POST v1/Token/RegenerateAuthToken

Generates a replacement API authorization token for an existing token using its refresh token.

Request Information

URI Parameters

None.

Body Parameters

RefreshAuthTokenRequest
NameDescriptionTypeAdditional information
AuthToken

Provide Authorization Token

string

Required

RefreshToken

Provide Refresh Token

string

Required

Request Formats

application/json, text/json

Sample:
{
  "AuthToken": "sample string 1",
  "RefreshToken": "sample string 2"
}

application/xml, text/xml

Sample:
<RefreshAuthTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <AuthToken>sample string 1</AuthToken>
  <RefreshToken>sample string 2</RefreshToken>
</RefreshAuthTokenRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RefreshAuthTokenRequest'.

Response Information

Response Formats

application/json, text/json

Sample:
{
  "access_token": "sample string 1",
  "refresh_token": "sample string 2",
  "token_type": "sample string 3",
  "expires_in": 4
}

application/xml, text/xml

Sample:
<MidnightAuthResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <access_token>sample string 1</access_token>
  <refresh_token>sample string 2</refresh_token>
  <token_type>sample string 3</token_type>
  <expires_in>4</expires_in>
</MidnightAuthResponse>