POST/documents/writer-projections/query
Query document writer projections in batch
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.
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
Signed manifest bundles keyed by manifest hash.
omittedBundleslist of stringrequired- each item: not empty
Cited hashes left out because
knownCitationsdeclared them held.Public principal policy evidence keyed by organization id.
resultslist of one of: object, objectrequired- 1 to 32 items
Per-document projection or failure in request order.
- object
2 fields
documentIdstringrequired
- object
2 fields
documentIdstringrequired
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
- always
committedbooleanrequired- always
false
- always
progressTokenstringrequired- exactly 64 characters
- lowercase hexadecimal
Changes when preparation advances; clients stop after three identical tokens in a row.
Other responses
| Status | Meaning | Body |
|---|---|---|
| 400 | Bad Request |
|
| 401 | Unauthorized |
|
| 500 | Internal Server Error |
|
| 503 | Service Unavailable |
|
Additional rules
The server also enforces these rules, which the schema above cannot express.
documentIdsmust not repeat a document id.Results must not repeat a
documentId.containerKeksmust 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.