Skip to main content
POST
/
v1
/
workspace
/
website
/
{website_id}
/
blogs
/
create
Create a new blog
curl --request POST \
  --url https://apidev.lindo.ai/v1/workspace/website/{website_id}/blogs/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "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"
    }
  }
}
'
{
  "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"
  }
}

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
path
string
required

URL path for the blog post

Example:

"/blog/my-first-post"

blog_content
string
required

Blog markdown content

Example:

"# My Blog Post\n\nContent here..."

seo
object
required

SEO metadata for the blog post

blog_settings
object
required

Blog-specific settings

settings
object

Additional settings

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

Response

Blog created and published successfully

success
enum<boolean>
required

Indicates the operation was successful

Available options:
true,
false
Example:

true

result
object
required