Skip to main content
POST
Requires scope: sdk:state-read Chain filter, projection, ordering, and aggregation methods, then call a terminal to run: .execute() → LogQueryResult, .count() → int, .single() / .maybe_single() → dict. Filter paths must be rooted at type, timestamp, ingested_at, trace, or payload — other roots return 422. Add .with_count() to include total_count and has_more in the response (one extra server-side COUNT op, opt-in). Server cap: limit ≤ 1000 per request — paginate with .limit(1000).offset(n) for larger result sets.

Parameters

str
required
Olira patient id.

Returns

LogQueryResult — Iterable, indexable result. Call .as_logs() to parse rows into typed LogEntry when no .select() was used.
int
Rows returned in this page.
list[dict]
Projected or raw log dicts.
int | None
Total matching rows across all pages. Only set when .with_count() was used.
bool | None
True when more rows exist beyond this page. Only set when .with_count() was used.
str | None
Echo of the queried patient id.
str | None
Set on population queries.

Raises