SSO
Acquire Access Token
Use this endpoint to acquire a user’s access token.
POST
/
oauth
/
token
This same endpoint supports refreshing an access token using the client_id
,
client_secret
, and refresh_token
, with grant_type
set to refresh_token
.
Parameters
grant_type
string
requiredauthorization_code is the required value
client_id
string
requiredOAuth Client ID
client_secret
string
requiredOAuth Client Secret
code
string
requiredThe authorization code received from Thanx via redirect or API
redirect_uri
string
requiredThe same redirect_uri should be used as in the request for the authorization code
Response
token_type
string
The type of token, usually “Bearer”
scope
string
This will be ‘passwordless’
created_at
integer
The number of seconds since the epoch
access_token
string
The user’s access token, for use in accessing other API endpoints
refresh_token
string
If needed, a refresh token to get another access token