Create an API key
In the Console, go to Settings → API Keys and create a key with the
Send your API key as a Bearer token in the API keys are shown only once at creation. Store them in an environment variable or secrets manager, never in source control.
sdk:event-log, api:manage-patients, and sdk:state-read scopes. Or use
the CLI:Authorization header on every request:Register a patient
Olira assigns the patient ID. Persist it in your database and use it for
all future calls.
Send your first log
Every log has a type and a structured payload. Send a symptom report via
the SDK or plain HTTP:Olira validates the
log_type and payload against the catalog, writes the
record, and updates the patient’s state. See
How logs work for the full submission fields.Read compiled state
Query the patient’s compiled state (stable data, event-state modules, and
logs) with the same SDK:Agent runtimes can read the same state over the
MCP Patient State server.
Next steps
Logging from your codebase
Wire your backend to the SDK: batch patient creation, traces, and
verification.
Accessing patient state
Choose between MCP, SDK, and REST for downstream workflows.
Log types catalog
Payload schemas and required fields for every supported log type.
Historical backfill
Load months or years of past data in one controlled job.

