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
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
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.