Skip to main content
POST
/
v1
/
workspace
/
website
/
{website_id}
/
pages
/
create
Create a new page
curl --request POST \
  --url https://apidev.lindo.ai/v1/workspace/website/{website_id}/pages/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "html": "<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"
  }
}
'
{
  "success": true,
  "result": {
    "message": "Page created and published successfully",
    "page_id": "page_abc123",
    "publish_date": 1705312200,
    "published_url": "https://example.com/about-us"
  }
}

Authorizations

Authorization
string
header
required

Enter your API key (starts with lindo_sk_)

Path Parameters

website_id
string
required

Unique identifier of the website

Example:

"ws_abc123"

Body

application/json
html
string
required

Full HTML content of the page

Example:

"<main><section>...</section></main>"

path
string
required

URL path for the page

Example:

"/about-us"

settings
object

Page settings

Example:
{ "theme": { "mode": "dark" } }
template_name
string

Page title/name

Example:

"About Us"

custom_codes
object

Custom code to inject in header and footer

Example:
{
  "header": "<script>...</script>",
  "footer": "<script>...</script>"
}
seo
object

SEO metadata for the page

Example:
{
  "page_title": "About Us",
  "meta_description": "Learn about our company"
}

Response

Page created and published successfully

success
enum<boolean>
required

Indicates the operation was successful

Available options:
true,
false
Example:

true

result
object
required