Skip to main content
These examples describe the current Bijection CLI and SDK source. Use builds from the same source commit for these APIs. The public CLI and npm SDK are published independently and may lag this reference.
The document deliverables application keeps a finance team’s figures and notes under a protected label, renders monthly reports on an external renderer, has someone independent review them, releases them to members and announces them by mail. The document guide explains the documents library it uses.

The app tree

Figures, notes and rendered reports stay under finance. A report leaves that label only through reportRelease, a reviewed edge down the label order, so bijection check lists the release among the grave acts of the function that discloses it.

Prepare the renderer

Rendering capacity runs on your infrastructure. Set the renderer’s credentials with bijection secret set renderer.token and bijection secret set renderer.upload. The renderer posts each rendered file to the library’s POST /documents/renders route with that bearer.

Review before release

A capture freezes its inputs: edits made after it never enter the render. The rendered file is stored under finance. A reviewer other than the author records a verdict on that exact file, and reports.release discloses only a report whose verdict passed. Generation, release and mail are separate tasks, each with its own once and result. A finished render is not a release, and a release is not a delivery. deliveries.send mails a released report to one address through Notify, and its continuation deliveries.mailed records the result. Notify alone holds the mail provider and its secret, and it applies its consent and suppression rules.