RustMinerSystem

Documentation

Login And Get TOKEN

POST /api/user/login: Login And Get TOKEN.

Login And Get TOKEN

This chapter documents the request shape, parameters, and response for POST /api/user/login.

Note

The endpoint contract below is carried over from the legacy RustMinerSystem documentation and organized under the current PoolNode documentation structure. Use your actual node address, secure route, and backend version when integrating.

Endpoint Contract

URL: 
/api/user/login

METHOD: 
POST

REQUEST BODY:
{
    email: String,    // 登录的邮箱地址
    code: String      // 获取到的邮箱验证码
}

RESULT:
{
    "status": 0,
    "error": null,
    "data": Token
}

发送邮箱验证码请参考发送登录邮箱验证码

Use Authorization: Bearer {Token} for authenticated endpoints. Public endpoints need no user token. Tokens expire after 72 hours.

// headers
{
    Authorization: Bearer Token
}

Legacy Source

Current implementation

POST /api/user/login — Authorization: No user token.

See response envelopes and defaults in API Usage Notes / Current endpoint inventory.