Home / Docs Center / Platform API / Login
Login
Project: Platform API | page_id: 99
Brief Description:
- Account login
Request URL:
- /login/login
Request Method:
- POST
Request Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| username | Yes | string | The email used at registration |
| password | Yes | string | The password used at registration |
Response Example
{
"token": "testToken",
"name": "Mr. Wang",
"level": 0,
}
Response Parameter Description
| Parameter | Type | Description |
|---|---|---|
| token | string | Authentication token required by the head auth of subsequent API requests |
| name | string | Name of the current user |
| level | int | User level (0: normal user, 3: distributor) |
Notes
- The request parameters channel, token and t are added by default; see the API reference.
Didn't find what you need?Contact us,Talk to our engineers directly.