Skip to content

Export the erasure ledger

GET
/v1/memory/erasures/export
curl --request GET \
--url https://example.com/v1/memory/erasures/export \
--header 'Authorization: Bearer <token>'

The whole ledger, oldest first, content-free: each erasure’s selector kind, the keyed hash of whom it erased, who asked and when. Keep it off-box: restoring a backup rolls the ledger back too, and POST /v1/memory/erasures/replay with it runs the erasures again. Requires admin on the tenant.

The ledger.

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string format: uuid
selectorKind
required
string
Allowed values: fact participant external conversation
selectorHmac

HMAC-SHA256 of the selector under the tenant’s ledger key; absent without one.

string
/^[0-9a-f]{64}$/
keyId

Which ledger key made selectorHmac.

string
requestedBy
required
string
status
required

waiting-on-run: a turn of the person’s sits in a flow that serves other people; the erasure waits for it (waitingOn) until its deadline, then cancels it.

string
Allowed values: pending running waiting-on-run completed failed
createdAt
required
string format: date-time
completedAt
string format: date-time
Example
{
"data": [
{
"selectorKind": "fact",
"status": "pending"
}
]
}

Missing / malformed / expired / revoked bearer token.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}

Not a tenant admin.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}