Brain Docs

Reference

TypeScript SDKInstallationHTTP clientWire client
createStatementgetStatementlistStatementssupersedeStatementtombstoneStatementretractStatementstatementHistory
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
TypeScript SDKStatementsretractStatement

retractStatement

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
retractStatement(statementId: string, query?: RetireStatementQuery): Promise<RetractStatementResult>
Handshake credentialstable
retractStatement(request: StatementReasonRequest): Promise<StatementRetractResponse>

Parameters

ParameterTypeRequired
statementIdstringrequired

The statement to retract.

reasonintegeroptional

A reason code.

messagestringoptional

A free-text note.

Returns

FieldTypePresence
retractedAtUnixNanos64-bit integeralways

When the retraction was accepted.

willZeroAtUnixNanos64-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
tombstoneStatementforget

Was this page helpful?

tombstoneStatement

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

statementHistory

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

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground