POST/containers/writer-projections/query
Query container writer projections in batch
Operation containers.writerProjections.query
Description
Returns writer projections for up to 32 containers in one snapshot, sharing one manifest bundles dictionary and per-organization policyEvidenceByOrganization. When includeMetadataDocument: true, each readable container also includes the writer projection of the metadata document bound in its verified head manifest without re-walking the container path. Body knownCitations accepts up to 512 manifest and KEK-level digests and 64 organization directory digests. Per-container access or consistency errors report per item while sibling containers still resolve; 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/jsonQueryContainerWriterProjectionsRequest
Batch request for up to 32 container writer projections, optionally including each container's bound metadata document projection.
3 fields
containerIdslist of stringrequired- 1 to 32 items
- each item: not empty
Unique container ids to resolve.
includeMetadataDocumentbooleanoptionalWhen true, resolves each readable container's verified metadata document projection in the same batch.
Held digests omitted from the response.
Responses
200 OK
application/jsonQueryContainerWriterProjectionsWireResponse
Batched container 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-container projection or failure in request order.
- object
4 fields
containerIdstringrequiredprojectionobjectrequired4 fields
containerIdstringrequired- object
12 fields
accessManifestHashstringrequired- not empty
containerIdstringrequiredcontainerKeyEpochintegerrequired- greater than 0
containerKeyEpochIdstringrequired- not empty
containerManifestHistorylist of stringrequired- each item: not empty
keyEpochobject with any fieldsrequiredkeyEpochHashstringrequired- not empty
keyTargetHashstringrequired- not empty
parentContainerKeyEpochIdstringrequirednullablerecipientTargetslist of object with any fieldsrequired- at least 1 item
wrapslist of object with any fieldsrequired- at least 1 item
Other fields are allowed.
organizationIdstringrequiredpathlist of stringrequired- at least 1 item
- each item: not empty
Other fields are allowed.
- object
2 fields
containerIdstringrequired
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.
containerIdsmust not repeat a container id.Results must not repeat a
containerId.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.