Skip to main content
Mirobody in three steps: ① connect data → ② it comes back standardized → ③ use it with AI. Everything is OpenAI-compatible — you’ll need an mb_live_* key and ~10 minutes.
Account management — API keys, usage, and a live Playground — lives in the developer console at platform.mirobody.ai. Sign in with email code, open API Keys, create one (the secret is shown once):
All /v1 endpoints share one base URL — pick your contracted cluster:
China-region deployments use https://mirobody-api.thetahealth.cn/v1. See Regions for the full host matrix.
1

① Connect your data

Health data arrives in three shapes — each has exactly one door in:Mirobody hosts, standardizes and serves the data to AI — collecting it (device OAuth, app capture) is your side of the line.Write structured readings with POST /v1/data (retention is required), or upload a lab report — PDF, photo, spreadsheet — with POST /v1/files:
user is the tenant-isolation key — pass each end-user’s stable id and their data never mixes.
2

② It comes back standardized

Note the two spellings above — fasting_glucose and FBG. Read the data back and both rows carry the same LOINC code, a canonical name, UCUM-parsed values, and a FHIR mirror id:Done experimenting? DELETE /v1/subjects/alice erases everything this quickstart wrote (records, files, conversations) in one call.
That’s the standardization pipeline — deterministic name→LOINC (no LLM code-guessing) + UCUM + FHIR, on every write. To preview it on a document without storing anything, try POST /v1/extract.
3

③ Put AI on top

A grounded answer is three lines — the agent reads the standardized series, so “glucose” finds the rows written as “FBG”:
Answers API (3 lines)
And a real agent — with your own tool — is ten. The openai-agents SDK works against the Agent API by changing only the base URL:
openai-agents SDK (10 lines)
Every agents-SDK agent that touches Mirobody tools must pass the Subject via model_settings=ModelSettings(extra_body={"user": ...}). Without it, the run reads the account-default Subject, not the user you meant.
Mirobody’s built-in tools read alice’s real data; when the model decides to book, it hands off to your function. See Function calling for the protocol underneath.

Prefer clicking over curl?

The console has a Playground — run chats, upload files, and inspect tool steps with no code.

Playground

Try the agent in the browser against your account.

Usage

Requests, tokens, and cost.

Next steps

Choose your API

Answers vs Agent in one minute.

Agent API

Client tools, stored conversations, streaming events.

Standardization

OCR → extraction → LOINC → UCUM → FHIR, explained.

SDK Examples

curl / Python / Node / openai-agents, end to end.