Create Access Token
Scope required: auth.create
This endpoint allows for the programmatic generation of an API access token for a given user. This access token can then be used to access the Consumer API.
Programmatic generation of access tokens on behalf of users is designed for Kiosk integrations and partners using custom authentication mechanisms to facilitate user reward redemption, hence the limited TTL of each token generated.
Parameters
Merchant ID
Thanx User ID. One of user_id
, email
, or phone
must be specified.
Email address. One of user_id
, email
, or phone
must be specified.
Email address. One of user_id
, email
, or phone
must be specified.
The number of seconds after which this access token will expire. Defaults to no expiration for integrations that require long-lived access tokens. If your integration does not require long-lived access tokens, we highly recommend this value to be specified. The allowed values are between 60s and 3600s (1 hour).
Response
The user’s access token, for use in accessing the Consumer API
The type of token, “Bearer”
The API scopes granted to the access token
The number of seconds since the epoch
The number of seconds after which this access token will expire