Brain Docs

Reference

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

statement_history

Every version in a statement's supersession chain, oldest to newest.

PURPOSE

Every version in the chain the given statement belongs to. The audit view of a claim that has been corrected.

GET/v1/statements/:id/historyBearer API keystable
statement_history(statement_id: str, include_tombstoned=None, limit=None, cursor=None) -> StatementHistoryResult
Handshake credentialstable
statement_history(request: StatementHistoryRequest) -> list[StatementView]
statement_history_frames(request: StatementHistoryRequest) -> list[StatementHistoryResponseFrame]

Parameters

ParameterTypeRequired
statement_idstringrequired

Any version in the chain — the history is the same from any of them. On the wire the field is anchorId.

include_tombstonedbooleanoptional

Include retired versions.

limitintegeroptional

Page size.

cursorstring (wire: bytes)optional

Cursor from the previous page.

Returns

FieldTypePresence
itemsStatementDetail[]always

The versions.

chain_rootstringalways

The chain's stable id.

total_versionsintegeralways

How many versions exist in total, across all pages.

next_cursorstring

Absent on the last page.

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
supersede_statementPagination

Was this page helpful?

retract_statement

Tombstone a claim and schedule its bytes to be zeroed — and read the deadline it returns.

create_relation

Assert a typed, directed, time-bounded edge between two entities — and the cardinality rule that can reject it.

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground