Create a website
Creates a website in the organization. Provide either a name (trimmed, 1–200 characters) or a creation prompt; a prompt returns immediately with the temporary name Untitled site, which the built-in naming request attempts to replace on its next run together with a matching available slug and platform hostname. The hostname receives a short suffix when the clean hostname is unavailable. An omitted slug is allocated from the initial name; an explicit slug must be lowercase, URL-safe, unreserved, and unique among active websites in the organization. The website starts as an unpublished draft at headVersion 1. Edit its source through the Source code operations, then publish with websiteSourceCode.head.publish.
Authorizations
Cactal API key. Create one in the dashboard or via POST /apiKeys. The plaintext key is shown once at creation.
Body
Response
The newly created website.
Unique website id.
Id of the organization that owns the website.
Display name, 1–200 characters.
URL-safe identifier unique among active websites in the organization.
Whether custom domains are enabled. Enabling is owner-only and makes the website a billable site; custom domains can only be attached while true.
Latest draft source version number; starts at 1.
Currently published version. null when the website is not published.
When the website was created.
When the website was last modified.