Section Based AI

Create a website with AI-generated content

Creates a new website and automatically generates AI-powered content for it in a single operation. This endpoint combines website creation with AI site generation, providing a streamlined workflow for creating fully functional websites with AI-generated content.

On completion, emits website_generation_completed with generation_flow: create_website (or create_website_dedicated_vm for dedicated-VM accounts).

post/v1/hosting/ai-website

Request

Headers

x-api-keystring required

API key for authentication

Request body

subdomainstring required

Subdomain for the website (3-63 characters, lowercase letters, numbers, and hyphens only)

regionstring required

Region of the website

site_titlestring required

Title of the website

admin_usernamestring required

Admin username for the website (max 60 characters, can contain alphanumeric characters, space, _, ., -, *, @)

admin_passwordstring required

Admin password for the website (must contain 1 lowercase, 1 uppercase, 1 digit, minimum 8 chars)

is_trial0 | 1

Specifies if this website is a trial (0 = regular website, 1 = trial website). Legacy alias is_demo is still accepted temporarily and mapped to is_trial. With b2b_trial_limitations, max trial sites = b2b_trial_website_create_limit_hard (legacy fallback: demo_website_count). Trial sites do not consume paid slots.

trial_website_delete_after_daysinteger

Optional. Number of days after which a trial website will be deleted (only applicable when is_trial = 1). Default is 3. Maximum is enforced by Core using the plan b2b_trial_period_days parameter (values above the plan max are clamped). Legacy alias demo_domain_delete_after_days is still accepted temporarily.

business_typestring required

Type of business for AI content generation

business_namestring required

Name of the business for AI content generation

business_descriptionstring required

Description of the business for AI content generation

Example request

{
  "subdomain": "my-agency-site",
  "region": "us-central1-c",
  "site_title": "My Agency Website",
  "admin_username": "admin",
  "admin_password": "MySecurePass123",
  "trial_website_delete_after_days": 3,
  "business_type": "agency",
  "business_name": "Digital Solutions Agency",
  "business_description": "We provide comprehensive digital marketing solutions and web development services"
}

Response

Website created and AI content generated successfully

website_idinteger

The ID of the created website

website_urlstring nullable

The URL of the website with generated AI content

errorstring nullable

Error message if AI generation failed (website still created successfully)

Example response

{
  "website_id": 21113,
  "website_url": "https://my-agency-site.10web.club"
}

Changes

No recorded changes to this operation across all 1 revision of this API.