v1.0.0 (2026-08-15 18:56)
Member Login
API Details
- URL:
/client/member/login - Method:
POST - Content-Type:
application/jsonormultipart/form-data - Authentication: Base Token (A valid
Authorization: Bearer <baseToken>must be passed in the Header)
Members log in using their username and password. Due to basic security checks on the platform, you must obtain a baseToken before calling this endpoint.
Headers
| Parameter | Required | Type | Description |
|---|---|---|---|
| Authorization | Yes | String | Base Token, obtained via the Basic Auth API |
Request Parameters (Body)
| Parameter | Required | Type | Description |
|---|---|---|---|
username | Yes | String | Member login account |
password | Yes | String | Member login password (plain text, encrypted and verified by the backend) |
Request Example (JSON)
json
{
"username": "testuser01",
"password": "my_password123"
}Response Parameters
| Name | Type | Description |
|---|---|---|
code | Number | Status code, 0 indicates success |
msg | String | Prompt message |
data | Object | Response data containing login details |
data.token | String | Exclusive Member Token, subsequent business requests involving the member must carry this Token |
data.user | Object | Basic member information |
Response Example
json
{
"code": 0,
"msg": "success",
"data": {
"user": {
"id": "xxxx-xxxx-xxxx-xxxx",
"username": "testuser01",
"nickname": "Test User 01",
"avatar": "..."
},
"token": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9...",
"expiresAt": 1718000000000
}
}