Refresh Token

Steps

  1. Login into Sadad account and get the Client Key and Client Secret under the profile page.
  2. Call to the endpoint /api/User/GenerateRefreshToken to get the refresh token.
  3. Save refresh token securely as you will always reuse it to get new access tokens.

Request

You should do a basic authorization to GenerateRefreshToken request using the Sadad Client Key and Client Secret.

Install App

Basic authentication

Response

{
  "isValid": true,
  "errorKey": null,
  "response": {
    "refreshToken": "REFRESH TOKEN"
  }
}
{
  "isValid": false,
  "errorKey": "UnauthorizedAccess",
  "response": null
}