---
title: "Generate Website"
method: POST
path: "/api/websites/{website_id}/generate"
tags: ["AI Website Generator - Protected"]
---

# Generate Website

`POST /api/websites/{website_id}/generate`

Start AI website generation job.

This endpoint creates a background job that will:
1. Scrape the target domain to extract business information
2. Generate a theme.json based on the website
3. Generate pages using AI and available blocks
4. Save everything to the database

Returns a job_id that can be used to check generation status.

## Path parameters

- `website_id` integer, required

## Headers

- `x-api-token` string, nullable

## Request body

- GenerateWebsiteRequest
  - `domain` string, required

## Response `200`

Successful Response

- GenerateWebsiteResponse
  - `job_id` integer, required
  - `status` string, required
  - `message` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/4b44eb76b3ee/schema)
