The request looks the same as Recipe 5 — what changes is the template you’re targeting:
POST /documents — full stack
Previous: Recipe 6 — Inherit from your own sections to scale · Back to Customization Cookbook
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Corti Models is now available: frontier AI on sovereign infrastructure, through an OpenAI-compatible API. Get started.
Combine a canonical baseline, customer-specific inheriting variants, and per-call runtime overrides — the most operational recipe, for multi-customer SaaS at scale.
| Layer | Resource | Purpose |
|---|---|---|
| 1. Canonical | your-hpi (and other canonical sections) | Your stable, opinionated baseline. Versioned, published. |
| 2. Customer variant (inherits canonical) | your-hpi-customer-A (and others) — inheritFromId: your-hpi with customer-specific writing style or schema | Persistent per-customer variant; tracks canonical improvements |
| 3. Customer template | your-followup-customer-A — composes the customer’s variant sections | Stable, per-customer composition |
| 4. Runtime override | POST /documents Path 2 against the customer template, with per-call overrides | Last-mile clinician/UI tweaks |
{
"outputLanguage": "en-US",
"interactionId": "<your-interaction-id>",
"templateRef": {
"templateId": "<your-template-id>",
"overrides": {
"sections": [
{
"sectionId": "<your-section-id>",
"generation": {
"instructions": {
"writingStylePrompt": "Use second person for this encounter; this is a return visit and the patient prefers direct address."
}
}
}
]
}
}
}
Was this page helpful?