v1

latestOpenAPI 3.1.02026-07-2676188241.3 KB
Guided Templates

Create template

Creates a new template with an initial version. When publish is true (default), the response includes the published version with full inheritance resolution applied (template-level and section-level inheritance walked).

post/documents/templates/

Headers

Tenant-Namestring required

Identifies a distinct entity within Corti's multi-tenant system. Ensures correct routing and authentication of the request.

Example:base

Identifies a distinct entity within Corti's multi-tenant system. Ensures correct routing and authentication of the request.

Request body

OR

Response

Created

idstring uuid required

The UUID of the template.

inheritedFromIdstring uuid nullable

Reference to the template to inherit template instructions and sections from. Inherits from published version by default.

autoGeneratedboolean

True if the template was auto-generated based on the section-composed POST /documents request.

source'user' | 'corti' | 'project'

Whether this template was created by the user, a project-related API Client or is a Corti standard resource.

namestring required

The name of this template. Not passed to the LLM.

descriptionstring

A description for this template. Not passed to the LLM.

languagesstring[] required

BCP 47 language tags this template has been tweaked for (e.g. ["fr", "de", "en-GB"]). Empty means no language-specific tweaks.

regionsstring[] required

ISO 3166-1 alpha-3 country codes this template has been tweaked for (e.g. ["BEL"]). Empty means no region-specific tweaks.

specialtiesstring[] required

Clinical specialties this template has been tweaked for. Empty means no specialty-specific tweaks.

createdBystring uuid

The UUID of the creator of this template.

createdAtstring date-time required

The original timestamp when the template was created.

updatedAtstring date-time required

The original timestamp when the template was last updated.

deletedAtstring date-time nullable

Present when the template has been deleted. GET by ID still returns the full resource with this field populated.