Authorization

Refresh access token

Access tokens are short lived. This was made deliberately for security.<br><br>This API endpoint is used to exchange a refresh token for an access token when the access token received from the Authorize user API has expired. You will need the client id and the secret which can be found on the OAuth Applications page.

post/oauth/token/refresh

Request

  • Base URL
    https://api.salesmessage.com/pub/v2.3
  • URL
    https://api.salesmessage.com/pub/v2.3/oauth/token/refresh
  • Auth
    none declared

Request body application/x-www-form-urlencoded

grant_type'refresh_token' required

Must be set to refresh_token.

client_idstring required

The client_id is the identifier for the app. Find it on the OAuth Applications page.

client_secretstring required

The client_id is the secret of the app. Find it on the OAuth Applications page.

refresh_tokenstring required

The refresh token to refresh.

Response

OK

token_typestring text
expires_instring text
access_tokenstring text
refresh_tokenstring text

Example response

{
  "token_type": "Bearer",
  "expires_in": "31536000",
  "access_token": "ouath token string",
  "refresh_token": "ouath token string"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.