Brain Docs

Reference

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

retract_statement

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

PURPOSE

Tombstone a statement and schedule the stored bytes to be zeroed. This is the erasure-request verb.

POST/v1/statements/:id/retractBearer API keystable
async fn retract_statement(&self, statement_id: &str, query: &RetireStatementQuery) -> Result<RetractStatementResult, BrainHttpError>
Handshake credentialstable
async fn retract_statement(&self, request: &StatementReasonRequest) -> Result<StatementRetractResponse>

Parameters

ParameterTypeRequired
statement_idstringrequired

The statement to retract.

reasonintegeroptional

A reason code.

messagestringoptional

A free-text note.

Returns

FieldTypePresence
retracted_at_unix_nanos64-bit integeralways

When the retraction was accepted.

will_zero_at_unix_nanos64-bit integeralways

The moment the bytes go. Record it — after that there is nothing to recover, and this is the only place the deadline is reported.

Three different retirements, three meanings

supersede says "this changed". tombstone says "this was never true". Retract says "this must stop existing". Only the third destroys data.

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
tombstone_statementforget

Was this page helpful?

tombstone_statement

Mark a claim not-current with no replacement — this was never true.

statement_history

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

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground