POST api/RefreshToken

Use RefreshToken to request a new AccessToken if your current AccessToken has expired.


Request Information

URI Parameters

None.

Body Parameters

RefreshTokenRequest
NameDescriptionTypeAdditional information
RefreshToken Refresh token returned from the access token request. string

Required

Username Your GSDD username. string

Required

Request Formats

application/json, text/json

Sample:
{
  "RefreshToken": "T25lX0hhcHB5X0FuZF9TYXRpc2ZpZWRfR1NERF9DdXN0b21lcl9TYW1wbGVfUmVmcmVzaFRva2Vu",
  "Username": "SampleUsername"
}

Response Information

Resource Description

TokenResponse
NameDescriptionTypeAdditional information
AccessToken Access token to be used in GSDD Web API requests. string

Required

ExpiresIn Time span in seconds when the access token will expire.

Note: Access and refresh tokens are temporary and may be invalidated sooner for various reasons, including—but not limited to—site maintenance and security updates. If a token is invalidated prematurely, simply request new tokens via the AccessToken method. This is a rather rare occurrence, but should be planned for and handled by the consuming application.
decimal number

Required

RefreshToken Refresh token to be used when the access token expires to request a new access token. string

Required

Response Formats

application/json, text/json

Sample:
{
  "AccessToken": "T25lX0hhcHB5X0FuZF9TYXRpc2ZpZWRfR1NERF9DdXN0b21lcl9TYW1wbGVfQWNjZXNzVG9rZW4=",
  "ExpiresIn": 300.0,
  "RefreshToken": "T25lX0hhcHB5X0FuZF9TYXRpc2ZpZWRfR1NERF9DdXN0b21lcl9TYW1wbGVfUmVmcmVzaFRva2Vu"
}