Skip to main content

Querying the constitution

The constitution wraps the founding document for the organization plus three server‑generated overview PDFs. See the Constitution concept for what each file represents and when it exists.

All examples require a JWT — get one from the homepage first.

Fetch the full file set

Project all five constitution files alongside the bank report type.

query bankReportConstitution($id: UUID!) {
bankReportById(id: $id) {
type
constitution {
originalFile { fileName base64 }
signedFile { fileName base64 }
dismissedAdministratorsFile { fileName base64 }
overviewFile { fileName base64 }
pepFile { fileName base64 }
}
}
}

bankReportById returns a list — see Get a bank report by ID.

Metadata only (skip the bytes)

base64 decrypts the file content and is Cost(100). When you only need to render the file names — e.g. to show a list of attachments — project fileName and fileExtension instead.

query bankReportConstitutionMetadata($id: UUID!) {
bankReportById(id: $id) {
id
constitution {
originalFile { fileName fileExtension }
signedFile { fileName fileExtension }
dismissedAdministratorsFile { fileName fileExtension }
overviewFile { fileName fileExtension }
pepFile { fileName fileExtension }
}
}
}

Nullability to handle on the client

  • signedFile is null until every required signatory has signed the constitution. Read it after the report's approvers have all reached SIGNED.
  • dismissedAdministratorsFile is null if no administrators were dismissed in this report.
  • originalFile, overviewFile, and pepFile are populated once the package has been built.
  • The constitution field itself can be null when isAdministratorsRequired is false on the parent bank report.