Generate Token

Please use token to call all APIs, and note that the token will expire in 2 hours. Any API activities will extend the expiry time. To obtain a new token without resending your credentials, use the Refresh Token API.

URL: {base_url}/api/v1/client/generateToken

Method: POST

Name
Type
Value
Required

Content-Type

String

application/json

Y

Body

Name
Type
Description
Required

agent_code

String

Agent code, provided by us separately by email

Y

currency_code

String

Player's currency code. Please refer to Appendix: Currency

Y

secret_key

String

Secret key, provided by us separately by email

Y

Response

{
  "code": 0,
  "message": "Generate token success",
  "data": {
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2FwaS5nYW1lc21hdHJpeC5jb20vYXBpL3YxL2NsaWVudC90cmFuc2Zlci9nZW5lcmF0ZVRva2VuIiwiaWF0IjoxNjk4MjA2ODcxLCJleHAiOjE2OTgyNTAwNzEsIm5iZiI6MTY5ODIwNjg3MSwianRpIjoiSzkwNjNIa3hQa2I5R2x2ZSIsInN1YiI6IjUiLCJwcnYiOiIwOWFjMzg0NDA1MGRhNDBhNTRhYTRkMDJlZDc0ZDRlMmNkNGQ4ZDY5IiwiYWdlbnRfY29kZSI6IlNDMiIsImFnZW50X21ldGhvZF9jb2RlIjoiU0MyLUlEUiIsImN1cnJlbmN5X2NvZGUiOiJJRFIifQ.SX6uf04EotDF6ynVLhfpGW2IDv-4XRqSBDRQQkXhFok"
  }
}

Last updated