Create a new blog
curl --request POST \
--url https://api.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"
}
}
}
'import requests
url = "https://api.lindo.ai/v1/workspace/website/{website_id}/blogs/create"
payload = {
"path": "/blog/my-first-post",
"blog_content": "# My Blog Post
Content 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" } }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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'}}
})
};
fetch('https://api.lindo.ai/v1/workspace/website/{website_id}/blogs/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lindo.ai/v1/workspace/website/{website_id}/blogs/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'path' => '/blog/my-first-post',
'blog_content' => '# My Blog Post
Content 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'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lindo.ai/v1/workspace/website/{website_id}/blogs/create"
payload := strings.NewReader("{\n \"path\": \"/blog/my-first-post\",\n \"blog_content\": \"# My Blog Post\\n\\nContent here...\",\n \"seo\": {\n \"page_title\": \"My First Blog Post\",\n \"meta_description\": \"A brief description of the blog post\",\n \"social_title\": \"My First Blog Post\",\n \"social_description\": \"A brief description for social sharing\",\n \"social_image\": \"https://example.com/image.jpg\"\n },\n \"blog_settings\": {\n \"author\": \"John Doe\",\n \"excerpt\": \"A brief summary of the blog post\",\n \"category\": \"Technology\",\n \"publish_date\": \"January 15, 2025\",\n \"read_time\": \"5 min read\",\n \"author_image\": \"https://example.com/author.jpg\"\n },\n \"settings\": {\n \"theme\": {\n \"mode\": \"dark\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.lindo.ai/v1/workspace/website/{website_id}/blogs/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"path\": \"/blog/my-first-post\",\n \"blog_content\": \"# My Blog Post\\n\\nContent here...\",\n \"seo\": {\n \"page_title\": \"My First Blog Post\",\n \"meta_description\": \"A brief description of the blog post\",\n \"social_title\": \"My First Blog Post\",\n \"social_description\": \"A brief description for social sharing\",\n \"social_image\": \"https://example.com/image.jpg\"\n },\n \"blog_settings\": {\n \"author\": \"John Doe\",\n \"excerpt\": \"A brief summary of the blog post\",\n \"category\": \"Technology\",\n \"publish_date\": \"January 15, 2025\",\n \"read_time\": \"5 min read\",\n \"author_image\": \"https://example.com/author.jpg\"\n },\n \"settings\": {\n \"theme\": {\n \"mode\": \"dark\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lindo.ai/v1/workspace/website/{website_id}/blogs/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"path\": \"/blog/my-first-post\",\n \"blog_content\": \"# My Blog Post\\n\\nContent here...\",\n \"seo\": {\n \"page_title\": \"My First Blog Post\",\n \"meta_description\": \"A brief description of the blog post\",\n \"social_title\": \"My First Blog Post\",\n \"social_description\": \"A brief description for social sharing\",\n \"social_image\": \"https://example.com/image.jpg\"\n },\n \"blog_settings\": {\n \"author\": \"John Doe\",\n \"excerpt\": \"A brief summary of the blog post\",\n \"category\": \"Technology\",\n \"publish_date\": \"January 15, 2025\",\n \"read_time\": \"5 min read\",\n \"author_image\": \"https://example.com/author.jpg\"\n },\n \"settings\": {\n \"theme\": {\n \"mode\": \"dark\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"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"
}
}{
"success": false,
"errors": [
"Client already exists"
],
"message": "Validation failed"
}{
"success": false,
"errors": [
"Client already exists"
],
"message": "Validation failed"
}{
"success": false,
"errors": [
"Client already exists"
],
"message": "Validation failed"
}{
"success": false,
"errors": [
"Client already exists"
],
"message": "Validation failed"
}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
Create a new blog
curl --request POST \
--url https://api.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"
}
}
}
'import requests
url = "https://api.lindo.ai/v1/workspace/website/{website_id}/blogs/create"
payload = {
"path": "/blog/my-first-post",
"blog_content": "# My Blog Post
Content 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" } }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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'}}
})
};
fetch('https://api.lindo.ai/v1/workspace/website/{website_id}/blogs/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lindo.ai/v1/workspace/website/{website_id}/blogs/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'path' => '/blog/my-first-post',
'blog_content' => '# My Blog Post
Content 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'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lindo.ai/v1/workspace/website/{website_id}/blogs/create"
payload := strings.NewReader("{\n \"path\": \"/blog/my-first-post\",\n \"blog_content\": \"# My Blog Post\\n\\nContent here...\",\n \"seo\": {\n \"page_title\": \"My First Blog Post\",\n \"meta_description\": \"A brief description of the blog post\",\n \"social_title\": \"My First Blog Post\",\n \"social_description\": \"A brief description for social sharing\",\n \"social_image\": \"https://example.com/image.jpg\"\n },\n \"blog_settings\": {\n \"author\": \"John Doe\",\n \"excerpt\": \"A brief summary of the blog post\",\n \"category\": \"Technology\",\n \"publish_date\": \"January 15, 2025\",\n \"read_time\": \"5 min read\",\n \"author_image\": \"https://example.com/author.jpg\"\n },\n \"settings\": {\n \"theme\": {\n \"mode\": \"dark\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.lindo.ai/v1/workspace/website/{website_id}/blogs/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"path\": \"/blog/my-first-post\",\n \"blog_content\": \"# My Blog Post\\n\\nContent here...\",\n \"seo\": {\n \"page_title\": \"My First Blog Post\",\n \"meta_description\": \"A brief description of the blog post\",\n \"social_title\": \"My First Blog Post\",\n \"social_description\": \"A brief description for social sharing\",\n \"social_image\": \"https://example.com/image.jpg\"\n },\n \"blog_settings\": {\n \"author\": \"John Doe\",\n \"excerpt\": \"A brief summary of the blog post\",\n \"category\": \"Technology\",\n \"publish_date\": \"January 15, 2025\",\n \"read_time\": \"5 min read\",\n \"author_image\": \"https://example.com/author.jpg\"\n },\n \"settings\": {\n \"theme\": {\n \"mode\": \"dark\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lindo.ai/v1/workspace/website/{website_id}/blogs/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"path\": \"/blog/my-first-post\",\n \"blog_content\": \"# My Blog Post\\n\\nContent here...\",\n \"seo\": {\n \"page_title\": \"My First Blog Post\",\n \"meta_description\": \"A brief description of the blog post\",\n \"social_title\": \"My First Blog Post\",\n \"social_description\": \"A brief description for social sharing\",\n \"social_image\": \"https://example.com/image.jpg\"\n },\n \"blog_settings\": {\n \"author\": \"John Doe\",\n \"excerpt\": \"A brief summary of the blog post\",\n \"category\": \"Technology\",\n \"publish_date\": \"January 15, 2025\",\n \"read_time\": \"5 min read\",\n \"author_image\": \"https://example.com/author.jpg\"\n },\n \"settings\": {\n \"theme\": {\n \"mode\": \"dark\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"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"
}
}{
"success": false,
"errors": [
"Client already exists"
],
"message": "Validation failed"
}{
"success": false,
"errors": [
"Client already exists"
],
"message": "Validation failed"
}{
"success": false,
"errors": [
"Client already exists"
],
"message": "Validation failed"
}{
"success": false,
"errors": [
"Client already exists"
],
"message": "Validation failed"
}Authorizations
Enter your API key (starts with lindo_sk_)
Path Parameters
Unique identifier of the website
Example:
"ws_abc123"
Body
application/json
URL path for the blog post
Example:
"/blog/my-first-post"
Blog markdown content
Example:
"# My Blog Post\n\nContent here..."
SEO metadata for the blog post
Show child attributes
Show child attributes
Blog-specific settings
Show child attributes
Show child attributes
Additional settings
Show child attributes
Show child attributes
Example:
{ "theme": { "mode": "dark" } }
Was this page helpful?
⌘I

