Create letter template
spur_create_letter_templateCreate a letter template and show a preview. Pick the letter type first (top_first_page or insert_blank_page); it decides where the address prints and how much of the page the design can use. Three ways to start:
From blank: start_from_blank=true gives an empty one-page letter laid out for the letter type.
Redesign an existing template: base_template_id (yours, a Spur default or a gallery id) copies its HTML and letter type; override html or letter_type as needed.
From scratch: pass html.
HTML guidance (see spur://letter-design-guide): one US Letter page (8.5"×11"), full HTML document with inline , "@page { size: 8.5in 11in; margin: 0; }", no scripts. One root 8.5in wide; px/in units only (no vh/vw); no box-shadow, transforms or manual page breaks. top_first_page: leave the first 3.15in blank (an empty ), body ≈ 3–4 short paragraphs. insert_blank_page: no address zone; letterhead up to 1.8in, body up to ~400 words. Images as absolute https URLs. The user's own images (logo, headshot, property photos): spur_list_images gives their URLs; if they want to use an image they have, call spur_upload_image (or spur_save_image for a link) and use the saved URL. Use merge fields such as {{owner_first_name}}, {{property_address}}, {{your_name}}, {{your_phone}}, {{company_name}} (see spur://merge-variables).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Full letter HTML | |
| name | Yes | Template name shown in Spur | |
| category | No | Category label, e.g. "Seller Outreach" | |
| description | No | Internal note about the template; never printed | |
| letter_type | No | Defaults to the base template's type, else top_first_page | |
| base_template_id | No | Copy this template's HTML and letter type as the starting point | |
| start_from_blank | No | Start from an empty page laid out for letter_type |