Skip to content
v1.0.0 (2026-08-15 18:56)

Member Registration

API Details

  • URL: /client/member/register
  • Method: POST
  • Content-Type: application/json or multipart/form-data
  • Authentication: Base Token (A valid Authorization: Bearer <baseToken> must be passed in the Header)

Member registration API. Register using account, password, mobile number, etc. Must carry base authentication Token (baseToken). Upon successful registration, it will automatically log in and return the response containing member profile and Token.

Headers

ParameterRequiredTypeDescription
AuthorizationYesStringBase Token, obtained via the Basic Auth API

Request Parameters (Body)

ParameterRequiredTypeDescription
usernameYesStringMember login account
passwordYesStringMember login password (plain text, encrypted and verified by the backend)
mobileNoStringMobile number
ddiNoStringCountry phone code (e.g., +86)
referrerCodeNoStringReferral code

Request Example (JSON Format)

json
{
  "username": "testuser02",
  "password": "my_password123",
  "mobile": "13800138000",
  "ddi": "+86",
  "referrerCode": "ABCDEFGH"
}

Return Parameters

Parameter NameTypeDescription
codeNumberStatus code, 0 means success
msgStringPrompt message
data.idStringUnique ID (GUID) of the newly registered member
data.tokenStringExclusive Member Token, subsequent business requests involving members need to carry this Token
data.expiresAtNumberTimestamp of Token expiration time (milliseconds)

Return Example

json
{
  "code": 0,
  "msg": "Success",
  "data": {
    "id": "xxxx-xxxx-xxxx-xxxx",
    "token": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9...",
    "expiresAt": 1718000000000
  }
}