---
title: "Generate outline, styles, and secondary pages from a given business description"
method: POST
path: "/v1/ai/generate_sitemap"
tags: ["Section Based AI"]
---

# Generate outline, styles, and secondary pages from a given business description

`POST /v1/ai/generate_sitemap`

## Request

- Base URL: `https://api.10web.io`
- URL: `https://api.10web.io/v1/ai/generate_sitemap`
- Auth: none declared. Required headers: `x-api-key`
- TypeScript: <https://skmtc.dev/10web/apis/10web-api-v1/docs/v1/ai/generate_sitemap/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 sitemap for
  - `params` object, required
    - `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`

Sitemap generated successfully

- object
  - `msg` string: Status message
  - `status` integer: HTTP status code
  - `data` object
    - `business_description` string: Description of the business
    - `business_name` string: Name of the business
    - `business_type` string: Type of business
    - `colors` object: Website color scheme
      - `background_dark` string: Color code for dark backgrounds
      - `primary_color` string: Primary color code
      - `secondary_color` string: Secondary color code
    - `website_id` integer: Website identifier
    - `fonts` object: Website font settings
      - `primary_font` string: Primary font family
    - `pages_meta` object[]: List of pages with sections and metadata
      - `description` string: Detailed description of the page purpose
      - `sections` object[]: Sections within the page
        - `section_description` string: Detailed description of the section content
        - `section_title` string: Title of the section
      - `title` string: Title of the page
    - `unique_id` string: Unique identifier for the generated sitemap
    - `website_description` string: SEO description for the website
    - `website_keyphrase` string: Primary keyphrase for SEO
    - `website_title` string: Title of the website
    - `website_type` string: Type of website template

## 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)
