POST api/AccessToken

Request new AccessToken for use with the GSDD Web API.


Request Information

URI Parameters

None.

Body Parameters

AccessTokenRequest
NameDescriptionTypeAdditional information
Username Your GSDD username. string

Required

Password Your GSDD password. This should be base64 encoded. string

Required

Request Formats

application/json, text/json

Sample:
{
  "Username": "SampleUsername",
  "Password": "U2FtcGxlUGFzc3dvcmQ="
}

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"
}