Tearleads

POST/documents/writer-projections/query

Operation documents.writerProjections.query

Description

Returns writer projections for up to 32 documents in one snapshot, sharing one manifest bundles dictionary and per-organization policyEvidenceByOrganization. Body knownCitations accepts up to 512 manifest and KEK-level digests and 64 organization directory digests. Per-document access or consistency errors report per item while sibling documents still resolve; a vanished container is reported as 409, never 404, and a 202 asks the client to retry after policy history preparation.

Authentication

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

Request body

application/jsonQueryDocumentWriterProjectionsRequest

Batch request for up to 32 document writer projections.

2 fields
  • documentIdslist of stringrequired
    • 1 to 32 items
    • each item: not empty

    Unique document ids to resolve.

  • knownCitationsKnownProjectionCitationsRequestoptional

    Held digests omitted from the response.

Responses

200 OK

application/jsonQueryDocumentWriterProjectionsWireResponse

Batched document writer projections sharing one bundles dictionary and per-organization policyEvidenceByOrganization.

4 fields

202 Accepted

application/jsonPrincipalHistoryPreparationResponse

A 202: the operation rolled back while the server prepares principal history. Retry the identical request.

3 fields
  • codestringrequired
    • always principal_history_preparation_pending
  • committedbooleanrequired
    • always false
  • progressTokenstringrequired
    • exactly 64 characters
    • lowercase hexadecimal

    Changes when preparation advances; clients stop after three identical tokens in a row.

Other responses

StatusMeaningBody
400Bad Request

application/jsonErrorResponse

401Unauthorized

application/jsonSessionFailureResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse

Additional rules

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

  • documentIds must not repeat a document id.

  • Results must not repeat a documentId.

  • containerKeks must contain exactly one entry for every manifest in path.

  • A container response keyring is null exactly for container key epoch 1.

  • Every cited manifest hash names one bundles entry, every bundles key equals its bundle's manifestHash, and every bundle is cited.