---
title: "Create a new blog"
method: POST
path: "/v1/workspace/website/{website_id}/blogs/create"
tags: ["Blog Management"]
---

# Create a new blog

`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

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

## Path parameters

- `website_id` string, required: Unique identifier of the website

## Request body

- BlogCreateRequest
  - `path` string, required: URL path for the blog post
  - `blog_content` string, required: Blog markdown content
  - `seo` object, required: SEO metadata for the blog post
    - `page_title` string, required: Page title for the blog
    - `meta_description` string: Meta description for SEO
    - `social_title` string: Social media title
    - `social_description` string: Social media description
    - `social_image` string: Social media image URL
  - `blog_settings` object, required: Blog-specific settings
    - `author` string, required: Author name
    - `excerpt` string: Blog excerpt/summary
    - `category` string: Blog category
    - `publish_date` string: Publish date string
    - `read_time` string: Estimated read time
    - `author_image` string: Author avatar image URL
  - `settings` object: Additional settings

## Response `200`

Blog created and published successfully

- BlogCreateResponse
  - `success` true, required: Indicates the operation was successful
  - `result` BlogCreateResult, required
    - `message` string, required: Success message
    - `blog_id` string, required: Unique identifier of the created blog
    - `publish_date` number, required: Unix timestamp when the blog was published
    - `published_url` string, required: Full URL where the blog is published

## Other responses

- `400`: Bad request - validation error
- `401`: Unauthorized - invalid or missing API key
- `404`: Website not found
- `500`: Internal server error

---

[API](https://skmtc.dev/lindo/apis/lindo-unified-api.md) · [All operations](https://skmtc.dev/lindo/apis/lindo-unified-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lindo/apis/lindo-unified-api/revisions/2672f34525a4?raw)
