Brain Docs

Reference

Rust SDKInstallationHTTP clientWire client
create_statementget_statementlist_statementssupersede_statementtombstone_statementretract_statementstatement_history
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
Rust SDKStatementslist_statements

list_statements

Query statements by subject, predicate, kind and confidence — cursor-paged.

PURPOSE

A cursor-paged listing of statements, filtered by the claim's own fields.

GET/v1/statementsBearer API keystable
async fn list_statements(&self, query: &ListStatementsQuery) -> Result<ListStatementsResult, BrainHttpError>
Handshake credentialstable
async fn list_statements(&self, request: &StatementListRequest) -> Result<Vec<StatementView>>
async fn list_statements_frames(&self, request: &StatementListRequest) -> Result<Vec<StatementListResponseFrame>>

Parameters

ParameterTypeRequired
subjectstringoptional

Entity id.

predicatestringoptional

Predicate name, as the schema declares it.

kindFact | Preference | Eventoptional

Statement kind.

min_confidencefloatoptional

Floor on confidence.

only_currentbooleanoptional

Only the head of each supersession chain. Without it you get every version — which is what you want for an audit and not for a read.

include_tombstonedbooleanoptional

Defaults to false.

limitintegeroptional

Page size.

cursorstring (wire: bytes)optional

Cursor from the previous page.

Returns

FieldTypePresence
statementsStatementDetail[]always

The page.

countintegeralways

How many are in this page.

next_cursorstring

Absent on the last page.

The wire request adds timeRangeStartUnixNanos and timeRangeEndUnixNanos, which the HTTP tier does not expose.

On the wire

subject is UUID bytes and kind is an integer discriminant rather than a string. evidence is a single reference, not an array of ids. Every request carries a requestId plus an optional actAs.

See also
get_statementPagination

Was this page helpful?

get_statement

Read one statement — and the supersession-following default that can hand you a different one.

supersede_statement

Correct a claim by writing its replacement — the old version stays readable and the chain records the order.

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground