Templates
Create, manage, and version document templates (invoices, contracts, reports, etc.).
List office templates
Returns a paginated list of all document templates for the tenant, ordered by most recently updated. Includes the published version and the latest draft version for each template. Use to populate the template library or feed a template picker in document creation flows.
Create office template
Creates a new document template in draft status. Templates define the layout, branding, and merge-field placements for rendered documents. Supply the template body as HTML or as a base64-encoded binary (DOCX/ODT) depending on the template_format.
Get office template
Returns the full detail of a specific template, including version history and binding configuration.
Update office template
Updates an existing template's name, body, output formats, or notes. Each save creates a new draft version; the published version is not changed until /publish is called. Use to iterate on template design before releasing to production document generation.
Publish office template version
Promotes the current draft version to the published version, making it the active template used by all subsequent render jobs for this template. A previous version snapshot is retained for audit and rollback purposes.
Render deterministic preview
Renders a deterministic preview of the template using a provided sample data payload. The preview is generated synchronously (not queued) and returns the rendered output directly. Use in the template editor to give real-time visual feedback before publishing.