All MoreLogin API responses follow a standard JSON format.
{
"code": 0,
"msg": null,
"data": {},
"requestId": "unique-request-id"
}| Field | Type | Description |
|---|---|---|
code | integer | Result code. 0 = success, other values indicate errors |
msg | string | null | Error message. null when successful |
data | object | array | null | Response payload. Structure varies by endpoint |
requestId | string | Unique request identifier. Include this when contacting support |
{
"code": 0,
"msg": null,
"data": {
"id": 1234567890
},
"requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}{
"code": 99001,
"msg": "Invalid parameters",
"data": null,
"requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}List endpoints return paginated data in this format:
{
"code": 0,
"msg": null,
"data": {
"total": 100,
"current": 1,
"pages": 10,
"dataList": [
{ ... },
{ ... }
]
},
"requestId": "..."
}| Field | Description |
|---|---|
total | Total number of records |
current | Current page number |
pages | Total number of pages |
dataList | Array of records for the current page |
| Status | Description |
|---|---|
200 | Request processed successfully (check code field for business result) |
401 | Unauthorized — invalid or expired access token |
403 | Forbidden — insufficient permissions |
429 | Too Many Requests — rate limit exceeded |
500 | Internal Server Error — contact support |
Tip: Always check the
codefield in the response body, not just the HTTP status code. A200HTTP status withcode: 99001means the request was received but failed validation.