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.

This page walks you through your first Mirobody Platform API call in 5 minutes. You need either a partner email provisioned via Mirobody Support, or one of the public demo accounts below.
1

Get a token

Two-step email-code login:
curl -X POST https://mcp.thetahealth.cn/email/login \
  -H "Content-Type: application/json" \
  -d '{"email":"demo1@mirobody.ai"}'
The response’s data.access_token is a 30-day JWT.
2

Prepare an LLM key (BYOK)

For the China cluster we recommend Aliyun DashScope (covers DeepSeek / Kimi / Qwen) or Volcengine (Doubao).Once you have an API key, every AI request must carry two headers:
X-LLM-Provider: dashscope
X-LLM-Api-Key:  <your LLM key>
See the BYOK protocol.
3

Make your first call

TOKEN="<the access_token from step 1>"
LLM_KEY="<your DashScope key>"

curl -N -X POST https://mcp.thetahealth.cn/api/chat \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-LLM-Provider: dashscope" \
  -H "X-LLM-Api-Key: $LLM_KEY" \
  -H "Content-Type: application/json" \
  -d '{"question":"Hello","agent":"App","provider":"DeepSeekFlash"}'
You’ll get an SSE stream of data: {...} lines — id / reply / costStatistics / end. See Chat API for the full event reference.

Demo accounts

Mirobody publishes 3 evaluation accounts on production, code always 777777:
EmailCode
demo1@mirobody.ai777777
demo2@mirobody.ai777777
demo3@mirobody.ai777777
These 3 accounts are publicly shared — anyone can sign in with code 777777. They start empty and are intended strictly for API testing / debugging. Do not upload real personal health data, files, or sensitive information. Mirobody is not responsible for the security of data placed in these demo accounts — other evaluators may read, overwrite, or clear the contents at any time.For a private long-term partner account, email Mirobody Support.

See it live

mirobody.thetahealth.cn

Primary frontend — the default Mirobody web. Sign in with any demo account above.

cdm.thetahealth.cn

Branch: CDM — extends Mirobody with structured data-recording; useful when you need a more record-heavy workflow.

Next steps

Full API Reference

Request/response specs for every REST + WebSocket endpoint

BYOK Protocol

Header / query contract, provider picks, error codes

Compliance

Independent CN/US deployments; request DPA / questionnaire