Save new template
save_templateSave HTML as a reusable template version without an AI call. Returns the template id for render. Does not spend AI credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Template name. | |
| page | No | ||
| tags | No | ||
| sizes | No | ||
| schema | No | JSON Schema for the data. Put sample values in examples[0], so the studio can show them. Mark a picture field with "x-thirds-kind": "image" and a colour field with "x-thirds-kind": "colour". | |
| source | Yes | Template HTML source. Empty source starts a blank design. | |
| input_mode | No | How this new template starts. Default html. |