Create a website and generate WVC content
Combined endpoint that creates a new website and immediately triggers WordPress Vibe Coding (WVC) content generation on it. Two mutually exclusive website creation 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; 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). WVC fields (email, user_prompt, etc.) remain allowed in claim mode; hosting fields remain forbidden without 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.
Performs the following steps in sequence:
- Create website — provisions a new WordPress website (claim or cold-create).
- Configure WVC — installs the WVC theme and removes incompatible plugins.
- Generate WVC content — submits the WVC generation request. The gateway waits up to 10 seconds for the WVC service to respond; if it times out the generation continues in the background.
- Autologin URL — generates a single-use URL that opens the WVC editor in the WordPress admin panel.
Use this endpoint to create and launch a WVC-powered website in a single call. If you already have an existing website and only need to trigger WVC generation, use POST /v1/wvc/{website_id}/create instead.
⚠️ Service Requirement: This feature requires the WordPress Vibe Coding (WVC) service to be enabled for your account. If the WVC service is not enabled, this feature will be unavailable and API requests may return an error response. Please contact support to enable this service.
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
Example request
{
"email": "user@example.com",
"subdomain": "my-site",
"region": "us-west",
"site_title": "My Awesome Site",
"admin_username": "admin",
"admin_password": "S3cur3P@ss!",
"trial_website_delete_after_days": 3,
"user_prompt": "A modern agency website with a dark theme and bold typography"
}Response
Website created and WVC content generated successfully
Example response
{
"website_id": 12345,
"autologin_url": "https://my-site.10web.club/wp-admin/admin.php?page=wvc-editor&twb_wp_login_token=abc123&email=user%40example.com"
}Changes
No recorded changes to this operation across all 1 revision of this API.