Auth

Renew token

Work with tokens.Renew expired access token.

Possible errors

  • NOT_FOUND - Refresh token not found.

  • EXPIRED_REFRESH_TOKEN - Refresh token expired.

  • TOKEN_BANNED - Refresh token banned by server.

  • USER_AGENT_CHANGED - Trying make request with changed user agent. Generating token and making requests should be use the same user agent.

  • IP_CHANGED - Trying make request from unknown IP. Generating token and making requests should be do from the same IP address.

get/admin/auth/tokens/{token}

Request

  • Base URL: https://demo.splynx.com/api/2.0
  • URL: https://demo.splynx.com/api/2.0/admin/auth/tokens/{token}
  • Auth: HTTP basic

Path parameters

tokenstring required
Example:2dbf3280cf9sb3b8a7c15201c76b9s1

The token string.

Response

access_tokenstring

Access token. Contains user information

access_token_expirationnumber

Access token expiration timestamp

refresh_tokenstring

Refresh token

refresh_token_expirationnumber

Refresh token expiration timestamp

Example response

{
  "access_token": "2dbf3280cf9sb3b8a7c15201c76b9s1",
  "access_token_expiration": 1542493076,
  "refresh_token": "caebf3980cf9fb3b8c7c15501c77b980",
  "refresh_token_expiration": 1578673076
}

Changes

No recorded changes to this operation across all 1 revision of this API.