Write records
| Field | Type | Description |
|---|---|---|
records | array | Each record {indicator, value, unit, time}. Inserted in batches (1000 per batch). |
user | string | Subject the records belong to (tenant-isolation key). |
retention | string | permanent (default) / session / 1d. none is upgraded to permanent here — writing to the store but asking not to store is contradictory. |
session_id | string | Required when retention=session. |
Read records
| Query | Description |
|---|---|
user | Subject to read from. |
indicator | Optional filter by indicator name. |
limit | 1–1000. |
Python
For one-off data that should not persist, attach it inline to a chat request as
health_context with retention="none" instead of writing it here — see Chat → Inline data.