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

# Generate New Page

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

Start AI page generation job (async with progress tracking).

This endpoint creates a background job that will:
1. Fetch the existing website theme and blocks
2. Use AI to generate a complete page based on user instructions
3. Maintain consistency with the website's existing theme and design
4. Follow all UI/UX rules and constraints
5. Save the page to database and upload to S3

Returns a job_id that can be used to check generation status via:
GET /api/websites/{website_id}/pages/generate/{job_id}

Example instructions:
- "Create a services page showcasing our auto repair services"
- "Generate a financing page explaining our payment options"
- "Create a team page with profiles of our mechanics"

## Path parameters

- `website_id` integer, required

## Headers

- `x-api-token` string, nullable

## Request body

- GeneratePageRequest
  - `page_name` string, required
  - `slug` string, required
  - `content_type_id` integer, required
  - `instructions` string, required

## Response `200`

Successful Response

- GeneratePageResponse
  - `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)
