Blog Management

Create a new blog

Creates a new blog and publishes it with markdown content. Blog content is converted to HTML via generateBlogHtml.

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

Request

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

Path parameters

website_idstring required

Unique identifier of the website

Example:ws_abc123

Request body

pathstring required

URL path for the blog post

blog_contentstring required

Blog markdown content

settingsobject

Additional settings

Example request

{
  "path": "/blog/my-first-post",
  "blog_content": "# My Blog Post\n\nContent here...",
  "seo": {
    "page_title": "My First Blog Post",
    "meta_description": "A brief description of the blog post",
    "social_title": "My First Blog Post",
    "social_description": "A brief description for social sharing",
    "social_image": "https://example.com/image.jpg"
  },
  "blog_settings": {
    "author": "John Doe",
    "excerpt": "A brief summary of the blog post",
    "category": "Technology",
    "publish_date": "January 15, 2025",
    "read_time": "5 min read",
    "author_image": "https://example.com/author.jpg"
  },
  "settings": {
    "theme": {
      "mode": "dark"
    }
  }
}

Response

Blog created and published successfully

successtrue required

Indicates the operation was successful

Example response

{
  "success": true,
  "result": {
    "message": "Blog created and published successfully",
    "blog_id": "blog_abc123",
    "publish_date": 1705312200,
    "published_url": "https://example.com/blog/my-first-post"
  }
}

Changes

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