hosting

POST /v1/sites

Create a site.

All hosting endpoints

All developer docs →

Authentication

Send an API key as a bearer token. The endpoint checks sites.blueprint.manage, sites.create; a key without it is refused with 403, not 404.

Where your organisation id goes

This endpoint takes org_id as a field in the JSON body.

Your organisation id is on the API keys screen in your dashboard, beside the key itself. It is the same id in every call you make.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/sites \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "product_line": <string> }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Registers a new site and returns it immediately with status pending. Provisioning (placement, account, blueprint deploy, DNS, verification) runs asynchronously as a Temporal workflow — this call never blocks on it (CLAUDE.md §2.9). Send an Idempotency-Key so retries never create duplicates (docs/09 §2). Entitlement-gated (docs/05 §1). The site must be covered by a plan's max_sites allowance. The governing plan is resolved from the owning org and, failing that, from its parent_org chain — so a reseller's client orgs draw on the reseller's own allowance (docs/18 §3). Sites in every state except deleted consume a slot, including suspended and failed. A max_sites of -1 means unlimited, and a staff org is unlimited by type. Refusals are 422 with a specific error.code: PLAN_REQUIRED when nothing grants hosting, SITE_QUOTA_EXCEEDED when the plan is full. Both carry the plan's own max_sites, sites_in_use and entitling_org_id in error.details so a client can render an upsell without re-deriving a resolution only the server can perform — but ONLY when the entitling org is within the caller's own scope. Where an ancestor's plan governs and the caller has no authority over it, the figures are omitted entirely and the message says the plan is managed by the parent organisation: sites_in_use is counted across the entitling org's whole subtree, so disclosing it to a client-org member would be a cross-tenant aggregate over sibling tenants (#566). A trial's site waits for a verified email address (D41995): a person whose address is not yet confirmed, in an organization on a free trial, is refused with 403 and error.refusal.key = refusal.trial.confirmEmailFirst. Staff acting as the customer and API keys are not asked. Every site is created purpose: customer, and that decides how it is deleted (R48c). purpose is not a request field. A customer site's delete is scheduled with the seven-day grace period (the customer's undo) and holds its fleet slot until then. The only automatic exception is a hostname whose first label carries a lane prefix (w<digits><letters>-…, or w<NN>-<n>-… under a platform-owned domain), which is created internal. A test or proof site created under any other name stays customer: staff reclassify it with manage.py set_site_purpose, and an internal site is torn down at once, with no grace, by manage.py teardown_internal_sites (docs/740).

Parameters

NameTypeRequiredWhat it is
Idempotency-Key (header)stringNoClient-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

Request body

NameTypeRequiredWhat it is
org_idUuid | nullNoThe organization to create the site under. Defaults to the caller's org; the caller must hold sites.create in the target org.
product_linestringYes—
primary_domainHostnameNoA fully-qualified DNS hostname, lowercase, no trailing dot.
temporary_domainbooleanNoNo domain yet: the platform gives the site a free address on its preview domain (t-<12 hex>.zinnpreview.com, HTTPS from the start) and returns it as primary_domain. The…
namestringNo—
sourceSiteSourceNoWhere a site's initial content came from (docs/04 §2). blueprint is a fresh site off one of our published stack recipes. site_blueprint is a copy of one of the…
blueprint_idUuid | nullNoA published blueprint version to build from. When given, stack_type and runtime are taken from the blueprint and must not be sent; when omitted, stack_type is required.
site_blueprint_idUuid | nullNoOne of your own captured sites (GET /v1/site-blueprints) to build this one from. The new site is provisioned on that blueprint's stack and its archive is then restored onto…
stack_typeStackTypeNoThe application stack a site runs (docs/04 §1). nextcloud, owncloud, headless_cms and php_app are own-fleet only (docs/139, docs/564): we install them ourselves from…
runtimeRuntimeNoDerived from stack_type — do not send it. A stack decides its own runtime (WordPress is PHP, Static is static), so asking for both allowed WordPress-on-Node to be submitted…
php_versionstringNoThe PHP version the site starts on, as a minor-version family. Must be a version offered on this product line (GET /v1/catalog/php-versions); anything else is a 422 naming…
applicationstringNoThe application to build the site with. Accepted on the two stacks that ASK the customer what to install, and validated against a different catalogue for each:…
subscription_idUuid | nullNoThe subscription entitling this site. Must belong to the org that will own the site; anything else is a 422 (never a 404, so it cannot be used to probe which subscription ids…
regionstringNoPin placement to a data-residency region; any region when omitted. Validated on write against one of two vocabularies, chosen by the site's deploy target: a fleet site is…
cdn_vendorstringNoWhich CDN vendor this site's edge runs on. Omit (or send "") to let the footprint balancer choose, which is the default and the only permitted value on a managed line — a…
dns_vendorstringNoWhich DNS vendor this site's zone is created on. Omit to let the footprint balancer choose. Only consulted when the zone has no placement yet: a name inside a zone this…
use_own_dnsbooleanNoServe this site's DNS from your own connected DNS account rather than Zinn®'s pool (W20-G). ⛔ This is a different question from dns_vendor, and the two must not be confused:…
cdn_tierstringNoThe CDN tier this site starts on (W20-G — "deploy/select it at deployment time for the applicable lines"). ⭐ Omit for the product line's own default, which is not the same as…
cdn_account_idstringNoWhich of your own CDN accounts the site is created on — the half cdn_tier cannot express. List them with listCdnTargetsForCreate. ⛔ Only meaningful with cdn_tier: byo,…
canonical_hoststring<apex, www>NoWhich of the site's two hostnames serves; the other is published and permanently redirects to it, so the site is never reachable at two addresses at once. Chosen at deploy…
create_mailboxbooleanNo"Create an email account" (G13). Read by the Footprint-Free line only, which forwards the domain's mail and gets a mailbox only when asked; the forward stays. Every other line…
force_httpsbooleanNoRedirect http to https at the edge. Omitted means true — the insecure choice has to be asked for and is never reached by leaving the field out.
pluginsstring[]NoWordPress.org plugin slugs to install and activate while the site is built, on top of whatever the blueprint declares. WordPress stacks only; any other stack is a 422.
themestringNoA WordPress.org theme slug to install and activate while the site is built. Omitted or blank means WordPress's own default theme — the one that ships inside the release the site…
random_themebooleanNoFootprint-Free only. Let the platform draw the theme from WordPress.org's popular themes. The draw happens once, when the site is created, and is stored — so a retried build…
deploy_targetstringNoDeploy this site to your own edge-host account instead of to the platform your plan places it on. Omitted — the normal case — means the plan decides, and is what every site…
panel_connection_idUuid | nullNoWhich of your connected control panels to build this site on — an id from GET /v1/panels/connections. Applies to a plesk site and to nothing else. ⛔…

Response

NameTypeRequiredWhat it is
idUuidYesUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidYesUUIDv7 identifier — sortable by creation time (docs/02 §8).
product_linestringYesProduct line code this site belongs to (CLAUDE.md §2.14).
sourceSiteSourceYesWhere a site's initial content came from (docs/04 §2). blueprint is a fresh site off one of our published stack recipes. site_blueprint is a copy of one of the…
blueprint_idUuid | nullNoThe exact blueprint version the site was built from; null for imports.
subscription_idUuid | nullNoThe subscription entitling this site; null while unassigned.
plan_codestring | nullNoStable code of the plan behind this site's subscription (e.g. pbn_25); null when the site has no subscription. Use this, not plan_name, for filters, saved views and support…
plan_namestring | nullNoDisplay name of the plan behind this site's subscription; null when the site has no subscription (a real state — a trial, an internal site, or a site provisioned before its order…
domain_pointingobjectNoWhether this site's domain actually reaches us (docs/823) — the compact form, for the row. null means we have never measured it, which a client renders as no badge rather…
seoSiteSeoSummary | nullNoThis site's search-index status and authority metrics, on the list row. The same readings GET /v1/sites/{siteId}/index-check and /seo-metrics return for one site, computed…
primary_domainHostnameYesA fully-qualified DNS hostname, lowercase, no trailing dot.
namestringNoHuman label for the site; defaults to the primary domain.
stack_typeStackTypeYesThe application stack a site runs (docs/04 §1). nextcloud, owncloud, headless_cms and php_app are own-fleet only (docs/139, docs/564): we install them ourselves from…
runtimeRuntimeYesThe runtime the web server serves the site with. node, python and ruby are long-lived application processes the web server itself runs (docs/715); dotnet is one the…
php_versionstringNoThe PHP version this site is pinned to, or "" when it follows the product line's current default. Echoed so a caller can confirm the choice it just made on create — without it,…
statusSiteStatusYesA site's lifecycle state (docs/04 §3). A newly created site is pending until the provisioning workflow picks it up; deleted is terminal. restricted and quarantined are the…
status_reasonSiteStatusReason | nullNoWhy the site is in that status. Null on any healthy site, and cleared the moment the site leaves failed — a reason that outlives its failure reads to the customer as current.
failed_stepstringNoWHERE provisioning failed — the saga step that was running when it did, as a SiteFailedStep code the client localises, or "" when the site is not failed (cleared in the same…
failed_activitystringNoThe activity that refused, by the name the worker registered it under (create_dns_zone, verify_site_serving). An identifier of ours, never the vendor's message, so it is safe…
provider_refusalSiteProviderRefusalNoR42 (owner 2026-10-18): a DNS or CDN provider REFUSED this domain - normal, and the customer's to route around. null unless the site is failed on a refusal. The site shows…
provisioning_started_atstringNoWhen the site last ENTERED provisioning - the start of the current build attempt, so a retried site's elapsed time and "taking longer than expected" count from the retry, not…
enforcement_errorstring<, config_rejected, stop_unconfirmed, start_unconfirmed, unverified>NoWhy the enforcement rung this site is on (suspended, restricted, quarantined, or a resume from one) was not confirmed by its box. "" when the last rung change was confirmed.…
serverSiteServerYesWhich server the site runs on (D43). kind decides how to label it: fleet — our shared server, labelled from region + number ("Helsinki server 1"); own — the customer's…
diskSiteDiskYesThe newest stored disk reading against the site's effective allowance (base plus live grants). used_mb is null when the site has never been measured — never 0. limit_mb is…
regionstringNoWhere the site is running. On our own fleet this is the region of the box the site is placed on, not the region asked for at create time — the two can disagree when placement…
cdn_vendorstringNoThe CDN vendor this site was pinned to, or "" when the footprint balancer chooses (the default, and the only value on a managed line). This is the customer's own choice echoed…
dns_vendorstringNoThe DNS vendor this site's zone was pinned to, or "" when the footprint balancer chooses.
deploy_targetstringNoWhere the site actually runs (docs/62 §1) — fleet, cf_pages, twentyi_shared, and so on. Empty when it has not been decided. A machine identifier the client localises, never…
panel_connection_idUuid | nullNoWhich control panel this site's subscription lives on — the PanelConnection from GET /v1/panels/connections. Set only when deploy_target is plesk;…
deletion_statestring<none, scheduled, running, stalled, deleted>NoWhether this site is on its way out. The same five values as SiteDeletion.state, reused verbatim so a list chip and the danger zone cannot disagree inside one screen. ⛔…
deletion_scheduled_forstringNoWhen the teardown fires. Null unless a deletion is armed or running. Stored when the request is made rather than recomputed from the grace period, so a countdown already shown to…
created_atstringYes—
updated_atstringNo—

Errors this endpoint can return

400 · 401 · 403 · 404 · 409 · 422 · 429