Skip to main content

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.

A single account can query the health data of multiple authorized “family members”.

1. List the accounts you can query

GET /api/beneficiary-users
Authorization: Bearer <access_token>
Returns the current user + all authorized family members:
{
  "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. Switch perspective in chat

Add query_user_id to POST /api/chat:
{
  "question": "Check this family member's recent sleep",
  "agent": "App",
  "provider": "DeepSeekFlash",
  "query_user_id": "<family-member uid>"
}
Requires chat permission to be granted; otherwise returns HTTP 403.

3. Other endpoints that accept query_user_id

Establishing the sharing relationship

Sharing relationships are configured by Mirobody operations per partner contract; self-service invite / revoke is not yet exposed. To set up family-account sharing, email Mirobody Support.