蜂桥AI蜂桥AI
API 参考
管理接口用户登陆注册
⚠️合规提示:本项目仅用于合法授权的 API 网关、内部管理和私有化部署场景。请遵守上游服务条款、平台规则、监管要求和内容安全要求。

用户登录

enabled=true 时提交 password_encrypted 和 encryption_key_id;kid 对应当前公钥。不要发送明文 password。

POST
/api/user/login
usernamestring
password?string
password_encrypted?string
encryption_key_id?string

响应体

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.beeaicloud.com/api/user/login" \  -H "Content-Type: application/json" \  -d '{    "username": "string"  }'
{
  "success": true,
  "message": "string",
  "data": {
    "access_token": "string",
    "token_type": "string",
    "access_expires_at": 0,
    "user": {
      "id": 0,
      "username": "string",
      "role": 0,
      "status": 0
    },
    "session": {
      "sid": "string"
    }
  }
}
{
  "success": false,
  "message": "string",
  "code": "string",
  "data": {
    "code": "string"
  }
}
{
  "success": false,
  "message": "string",
  "code": "string",
  "data": {
    "code": "string"
  }
}
{
  "success": false,
  "message": "string",
  "code": "string",
  "data": {
    "code": "string"
  }
}
{
  "success": false,
  "message": "string",
  "code": "string",
  "data": {
    "code": "string"
  }
}
{
  "success": false,
  "message": "string",
  "code": "string",
  "data": {
    "code": "string"
  }
}

这篇文档对您有帮助吗?

用户登录 | 蜂桥AI