Page Management

Create a new page

Creates a new page and publishes it with full HTML content. Parses HTML to extract title, SEO metadata, and custom codes.

post/v1/workspace/website/{website_id}/pages/create

Request

  • Base URL: https://api.lindo.ai
  • URL: https://api.lindo.ai/v1/workspace/website/{website_id}/pages/create
  • Auth: HTTP bearer

Path parameters

website_idstring required

Unique identifier of the website

Example:ws_abc123

Request body

htmlstring

Full HTML content of the page

page_contentstring

Deprecated alias for html. Kept for backward compatibility with older MCP clients (<= @lindoai/mcp-server 1.1.0). Prefer html; if both are provided, html wins.

pathstring required

URL path for the page

settingsobject

Page settings

template_namestring

Page title/name

seoobject

SEO metadata for the page

Example request

{
  "html": "<main><section>...</section></main>",
  "page_content": "<main><section>...</section></main>",
  "path": "/about-us",
  "settings": {
    "theme": {
      "mode": "dark"
    }
  },
  "template_name": "About Us",
  "custom_codes": {
    "header": "<script>...</script>",
    "footer": "<script>...</script>"
  },
  "seo": {
    "page_title": "About Us",
    "meta_description": "Learn about our company",
    "canonical_url": "https://example.com/about-us"
  }
}

Response

Page created and published successfully

successtrue required

Indicates the operation was successful

Example response

{
  "success": true,
  "result": {
    "message": "Page created and published successfully",
    "page_id": "page_abc123",
    "publish_date": 1705312200,
    "published_url": "https://example.com/about-us"
  }
}

Changes

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