Brain Docs

Reference

Python SDKInstallationHTTP clientWire clientSync vs async
create_statementget_statementlist_statementssupersede_statementtombstone_statementretract_statementstatement_history
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
Python SDKStatementsget_statement

get_statement

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

PURPOSE

Read one statement, optionally following its supersession chain to the current version.

GET/v1/statements/:idBearer API keystable
get_statement(statement_id: str, follow_supersession: bool | None = None) -> StatementDetail
Handshake credentialstable
get_statement(request: StatementGetRequest) -> StatementGetResponse

Parameters

ParameterTypeRequired
statement_idstringrequired

The statement to read.

follow_supersessionbooleanoptional

Follow the chain to its head. Defaults to true, so asking for one id can hand you a different statement.

Returns

FieldTypePresence
statement_id / kind / subject / predicate / object—always

The claim itself.

confidencefloatalways

Confidence in [0, 1].

event_at_unix_nanos64-bit integeralways

When the thing happened.

valid_from_unix_nanos / valid_to_unix_nanos64-bit integeralways

The interval the claim is asserted over — bitemporal, and separate from event time.

version / supersedes / superseded_by / chain_root—always

Position in the chain. chainRoot is stable across every version, so it is the id to store when you mean the fact itself rather than one version of it.

tombstoned / tombstoned_at_unix_nanos / tombstone_reason—always

Retirement state.

extractor_id / extracted_at_unix_nanos / schema_version—always

Provenance.

subject_name / object_namestring

Resolved display names, when available.

Check the id you got back

Because supersession is followed by default, the statementId on the result may not be the one you asked for. Read it rather than assuming it echoes your argument — otherwise a caller that stores "the id it just read" ends up pointing at a version it never requested.

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
statement_historySupersession

Was this page helpful?

create_statement

Write a typed claim — subject, predicate, object — and learn what it automatically superseded.

list_statements

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

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground