---
title: "Generate an AI-powered website"
method: POST
path: "/v1/ai/generate_site"
tags: ["Section Based AI"]
---

# Generate an AI-powered website

`POST /v1/ai/generate_site`

## Request

- Base URL: `https://api.10web.io`
- URL: `https://api.10web.io/v1/ai/generate_site`
- Auth: none declared. Required headers: `x-api-key`
- TypeScript: <https://skmtc.dev/10web/apis/10web-api-v1/docs/v1/ai/generate_site/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `x-api-key` string, required

## Request body

- object
  - `website_id` integer, required: The ID of the website to generate the site for
  - `business_type` string, required: Type of business
  - `business_name` string, required: Name of the business
  - `business_description` string, required: Short description of the business

## Response `200`

Website generated successfully

- object
  - `msg` string: Status message
  - `status` integer: HTTP status code
  - `data` object
    - `url` string: URL of the generated website

## Other responses

- `400`: Bad request
- `403`: Unauthorized access
- `429`: Too many requests
- `500`: Something went wrong

---

[API](https://skmtc.dev/10web/apis/10web-api-v1.md) - [All operations](https://skmtc.dev/10web/apis/10web-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/10web/apis/10web-api-v1/revisions/01afc9651dfc?raw)
