Redact and un-redact declarations (declarer keys)
Redact or un-redact declarations
Redaction removes the declaration from ISCC similarity search while it keeps existing: its CID still resolves (header x-declaration-status: redacted), it stays in the provenance chain and later declarations may still supersede it. In the federated registry the CID keeps its place while its value is replaced by a marker. isRedacted: false reverses it.
Two forms:
{"cid": "...", "isRedacted": true}is synchronous and answers with the resulting state.{"cids": [...], "isRedacted": true}accepts up to 500 CIDs, answers 202 with ajobId, andGET /v1/redact/jobs/{jobId}returns the per-CID results.
The key must be bound to the declarer of the declarations. Idempotent: changed: false when the state already matched.
Request Body
isRedactedboolean · requiredtrue redacts, false un-redacts
cidstringOne declaration id (cidV1, lowercase base32). Mutually exclusive with
cids.cidsstring[] · minItems: 1 · maxItems: 500Up to 500 declaration ids for an asynchronous batch (202).
reasonstring · maxLength: 500
Responses
Single CID: state after the call
cidstringokbooleanchangedbooleanfalse when the declaration already was in the requested state
isRedactedbooleaneverRedactedbooleantrue once the CID has been redacted at least once; it stays in the index afterwards
versionintegerpageintegerPage of the redaction index holding the entry
declarerIdstringeffectsobjectWhat each downstream store reported
Batch redaction job status
Progress and per-CID results of a batch created by POST /v1/redact with cids. status moves from queued through running to done (or failed). Each result carries ok, changed and, on failure, status and error (not_found, forbidden, deleted). A declarer key only sees its own jobs.
path Parameters
jobIdstring · uuid · required
Responses
The job
jobIdstring · uuidtypestring · enumEnum values:redactunredactstatusstring · enumEnum values:queuedrunningdonefailedtotalintegerprocessedintegersucceededintegerunchangedintegerfailedintegerresultsobject[]declarerIdstringcreatedAtintegerUnix time in milliseconds
startedAtintegerfinishedAtinteger