跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.mirobody.ai/llms.txt

Use this file to discover all available pages before exploring further.

合作伙伴可以让一个账号询问 N 个授权”家人”的健康数据。

1. 查询可见用户列表

GET /api/beneficiary-users
Authorization: Bearer <access_token>
返回当前账号有权 query 的用户列表(包含自己 + 已授权共享的家人):
{
  "success": true, "code": 0, "msg": "ok",
  "data": [
    { "id": "504", "name": "user10", "nickname": null, "gender": null, "blood_type": null, "age": null, "is_current_user": true }
  ]
}

2. 在 Chat 中切换视角

POST /api/chat body 中加 query_user_id
{
  "question": "看一下这位家人最近的睡眠",
  "agent": "App",
  "provider": "DeepSeekFlash",
  "query_user_id": "<家人 uid>"
}
前提:被授权了 chat 权限;否则返回 HTTP 403。

3. 其他可携带 query_user_id 的接口

授权关系的建立

当前授权关系由 Mirobody 运营按合约线下配置;自助邀请 / 撤销能力暂未对外开放。如需为家庭账号建立授权,请发送邮件至 Mirobody 支持