templateId to reuse the same composition on subsequent calls. The aggregate is retained for 30 days only (see Auto-generated template aggregates — 30-day retention); convert it into a permanent project-owned template if you want long-lived reuse.
Behavior notes
sectionRefsis order-significant — sections appear in the rendered document in declaration order.- Each
sectionRefresolves to the section’s published version unless you pinsectionVersionId. overrideson asectionReffollow the same partial/wholesale rules as Path 2.
When to use this path
| Scenario | Why Path 3 |
|---|---|
| EHR-field-driven note where the section set varies per encounter | Compose the right sections per call without authoring a template per combination. |
| One document built from a few Corti Standard sections | Skip the template authoring step entirely. The auto-generated aggregate is your “receipt.” |
| Customer-specific composition that you may eventually promote to a permanent template | Run Path 3 first; if the same composition recurs, convert the aggregate into a project-owned template via the retention workaround. |
Related
Guided Synthesis overview
Shared concepts: input context, response shape, errors, 30-day retention.
Create a Template
When you’re ready to promote a recurring assembly into a stable, versioned template.