Skip to main content

Basics & User

Service health, the current user's info, and an echo of the local config. All three endpoints only read local state and do not depend on a sign-in session; /health is the only endpoint that needs no authentication.

The window list lives on the Browser Windows page.

Showing 3 of 3 endpoints

GET/health

Service health status

Checks whether the local OpenAPI service is available. This is the only endpoint that requires no authentication.

AuthNo authentication required

Request parameters

None

Response fields

FieldTypeDescription
datastringAlways "ok" when the service is available

Response example

{
"code": 0,
"msg": "ok",
"data": "ok"
}
GET/user/info

Current user info

Returns the signed-in user info cached by the client; the field structure matches the backend sign-in response.

AuthBearer API Key

Request parameters

None

Notes

  • The actual response also carries two all-lowercase alias fields, teaminfo and teamInfo.teammember, with the same content as the camelCase fields; new integrations should read only the camelCase fields.
  • password and token in the response are always empty strings; this endpoint does not issue credentials, so there is no need to read them.

Response fields

FieldTypeDescription
data.idnumberUser primary key ID
data.teamIdnumberID of the team currently in use
data.emailstringSign-in email
data.userNamestringUsername, taken from the part of the email before @
data.parentnumberUser ID of the inviter
data.ipAddressstringSource IP of the most recent sign-in
data.balancenumberAccount balance, denominated in USDT
data.balanceComnumberWithdrawable commission balance
data.balanceComAddupnumberTotal accumulated commission
data.balanceChildAddupnumberTotal accumulated top-ups by invitees
data.invitestringInvitation code
data.inviteLinkstringInvitation sign-up link
data.inviteRadionumberReferral commission rate
data.childennumberTotal number of invitees (the field name keeps the legacy spelling)
data.childenednumberNumber of activated invitees
data.deviceIdstringDevice identifier reported by the client
data.statenumberAccount status: 0 normal, 1 frozen
data.createdAtstringRegistration time
data.updatedAtstringUpdate time
data.teamInfoobjectCurrent team info, same fields as the /team/list entries

Response example

{
"code": 0,
"msg": "ok",
"data": {
"id": 1001,
"teamId": 2001,
"email": "[email protected]",
"parent": null,
"ipAddress": "203.0.113.24",
"balance": 100.5,
"balanceCom": 0,
"balanceComAddup": 0,
"balanceChildAddup": 0,
"invite": "10086",
"inviteRadio": null,
"childen": 0,
"childened": 0,
"deviceId": "example-device-id",
"state": 0,
"createdAt": "2026-01-15 10:00:00",
"updatedAt": "2026-06-01 12:30:00",
"userName": "example",
"inviteLink": "https://app.nexbrowser.net/html/register.html?invite=10086",
"teamInfo": {
"id": 2001,
"userId": 1001,
"name": "默认团队",
"windowNum": 3,
"memberNum": 2,
"remark": "default team",
"limitWindow": 50,
"limitMember": 10,
"combo": "COMBO_1",
"comboExpire": "2027-01-15 23:59:59",
"actived": "ON",
"createdAt": "2026-01-15 10:00:00",
"updatedAt": "2026-06-01 12:30:00",
"creater": "[email protected]",
"teamMember": {
"id": 3001,
"teamId": 2001,
"userId": 1001,
"roleId": 4001,
"nick": "[email protected]",
"seq": 1,
"switchPinned": "OFF",
"createdAt": "2026-01-15 10:00:00",
"updatedAt": "2026-01-15 10:00:00",
"role": {
"id": 4001,
"teamId": 2001,
"name": "管理员",
"menuId": "[1, 2, 3, 4, 5]",
"createdAt": "2026-01-15 10:00:00",
"updatedAt": "2026-06-01 12:30:00"
}
}
}
}
}
POST/user/config

Echo user config

Returns the request body as-is for connectivity self-checks; it does not read or write any persisted configuration.

AuthBearer API Key

Request parameters

FieldTypeRequiredDescription
Any JSON fieldsobjectOptionalThe request body appears as-is in data; an empty request body returns {}

Response fields

FieldTypeDescription
dataobjectEchoed content identical to the request body

Response example

{
"code": 0,
"msg": "ok",
"data": {
"theme": "dark",
"lang": "zh-CN"
}
}