AI Page Generator - Protected

Generate New Page

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"
post/api/websites/{website_id}/pages/generate

Path parameters

website_idinteger required

Headers

x-api-tokenstring nullable

Request body

page_namestring required
slugstring required
content_type_idinteger required
instructionsstring required

Response

Successful Response

job_idinteger required
statusstring required
messagestring required

Changes

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