Create a website
Creates a WordPress website. Two mutually exclusive modes:
Claim mode (ghost pool) — omit subdomain and omit all hosting fields (region, site_title, admin_username, admin_password, is_trial, trial_website_delete_after_days, enable_wp_ai_generation; legacy aliases is_demo / demo_domain_delete_after_days also count as hosting fields). Uses a warm-pool ghost on the reseller workspace when available; otherwise cold-creates with a generated subdomain. Requires an eligible reseller workspace (active reseller agreement and active client main domain). A successful claim emits webhook website_generation_completed with generation_flow: reseller_ghost_claim. The returned URL is the pool site URL (you do not choose the subdomain).
Cold-create mode — pass subdomain plus region, site_title, admin_username, and admin_password. Honors the requested subdomain. On completion, emits website_generation_completed with generation_flow: create_website (or create_website_dedicated_vm for dedicated-VM accounts).
Passing any hosting field without subdomain returns HTTP 400.
Request
- Base URLhttps://api.10web.io
- Authnone declared. Required headers: x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
API key for authentication
Request body
Response
Website created successfully
Example response
{
"status": "ok",
"data": {
"website_id": 15604
}
}Changes
No recorded changes to this operation across all 1 revision of this API.