Tearleads

GET/documents/{documentId}/dek-log

Page a document's DEK rotation log

Operation documents.dekLog.get

Description

Pages a document's append-only content-key (DEK) rotation log: every epoch with its signed content-key bundle, write-once predecessor bridge, and retained container wraps filtered to the caller's authorizing containers, plus the sealed DEK keyring of one epoch named by keyringForEpoch. Clients use it as the wrap-backstop recovery path when a sealed DEK keyring or predecessor bridge is damaged.

Authentication

Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.

Parameters

NameInTypeDetails
documentIdpathstringrequired
afterKeyEpochqueryintegeroptional
  • 1 to 65,536
keyringForEpochqueryintegeroptional
  • 1 to 65,536

Responses

200 OK

application/jsonDocumentDekLogResponse

One bounded page of a document's append-only DEK rotation log for wrap-backstop recovery and keyring repair.

3 fields
  • documentIdstringrequired
    • not empty
  • epochslist of DocumentDekLogEpochResponserequired
    • at most 256 items

    Ordered historical epochs after afterKeyEpoch.

  • hasMorebooleanrequired

    True when epochs above this page's last remain unserved.

Other fields are allowed.

Other responses

StatusMeaningBody
400Bad Request

application/jsonErrorResponse

401Unauthorized

application/jsonSessionFailureResponse

403Forbidden

application/jsonErrorResponse

404Not Found

application/jsonDocumentNotFoundErrorResponse

409Conflict

application/jsonErrorResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse

Additional rules

The server also enforces these rules, which the schema above cannot express.

  • A document DEK log page contains at most one sealed keyring.