Create a new site
create_siteCreates a new website at https://.hostilo.page and publishes it in the same call. Content is optional: html for a single-file page, files for a multi-file site (index.html plus css/, js/, images, fonts; same format as publish_files: other files go to assets/ and links in index.html are fixed), or template to start from a ready-made Hostilo design (see list_templates) with your name, phone and colour filled in. Counts toward the plan's site limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Optional full HTML of a single-file page (max 5 MB). Use this or files. | |
| lang | No | Language of the template content (default en). | |
| name | Yes | Subdomain: 3-30 lowercase letters, digits or hyphens. | |
| files | No | Optional list of files for a multi-file site. Include index.html; it becomes the page. | |
| template | No | Optional: start from a Hostilo template (slug from list_templates, e.g. "cafe-menu", "local-service"). Use instead of html/files. | |
| template_fields | No | Template fields from list_templates, e.g. {"name":"Linden Café","phone":"+48 600 100 200","accent":"#c2603a"}. Missing fields get sample content. | |
| template_photos | No | Default true: frames for the site owner photos (sizes shown, swapped later in the editor). false: the version without photos, with icons and illustrations, ready to publish. Only templates with photos_optional in list_templates have the version without photos. | |
| template_variant | No | Template variant from list_templates, e.g. the industry of "local-service": plumber, electrician, hair-salon, accountant. |