curl --request POST \
--url https://api.example.com/v1/blog-posts \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"slug": "<string>",
"excerpt": "<string>",
"content": "<string>",
"tags": [
"<string>"
],
"featured_image": "<string>",
"author": "<string>",
"category": "<string>",
"date": "<string>",
"status": "draft",
"publish_to_website": true,
"publish_to_portal": true,
"target": "org",
"scheduled_at": "<string>"
}
'import requests
url = "https://api.example.com/v1/blog-posts"
payload = {
"title": "<string>",
"slug": "<string>",
"excerpt": "<string>",
"content": "<string>",
"tags": ["<string>"],
"featured_image": "<string>",
"author": "<string>",
"category": "<string>",
"date": "<string>",
"status": "draft",
"publish_to_website": True,
"publish_to_portal": True,
"target": "org",
"scheduled_at": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
slug: '<string>',
excerpt: '<string>',
content: '<string>',
tags: ['<string>'],
featured_image: '<string>',
author: '<string>',
category: '<string>',
date: '<string>',
status: 'draft',
publish_to_website: true,
publish_to_portal: true,
target: 'org',
scheduled_at: '<string>'
})
};
fetch('https://api.example.com/v1/blog-posts', 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.example.com/v1/blog-posts",
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([
'title' => '<string>',
'slug' => '<string>',
'excerpt' => '<string>',
'content' => '<string>',
'tags' => [
'<string>'
],
'featured_image' => '<string>',
'author' => '<string>',
'category' => '<string>',
'date' => '<string>',
'status' => 'draft',
'publish_to_website' => true,
'publish_to_portal' => true,
'target' => 'org',
'scheduled_at' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.example.com/v1/blog-posts"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"slug\": \"<string>\",\n \"excerpt\": \"<string>\",\n \"content\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"featured_image\": \"<string>\",\n \"author\": \"<string>\",\n \"category\": \"<string>\",\n \"date\": \"<string>\",\n \"status\": \"draft\",\n \"publish_to_website\": true,\n \"publish_to_portal\": true,\n \"target\": \"org\",\n \"scheduled_at\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.example.com/v1/blog-posts")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"slug\": \"<string>\",\n \"excerpt\": \"<string>\",\n \"content\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"featured_image\": \"<string>\",\n \"author\": \"<string>\",\n \"category\": \"<string>\",\n \"date\": \"<string>\",\n \"status\": \"draft\",\n \"publish_to_website\": true,\n \"publish_to_portal\": true,\n \"target\": \"org\",\n \"scheduled_at\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/blog-posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"slug\": \"<string>\",\n \"excerpt\": \"<string>\",\n \"content\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"featured_image\": \"<string>\",\n \"author\": \"<string>\",\n \"category\": \"<string>\",\n \"date\": \"<string>\",\n \"status\": \"draft\",\n \"publish_to_website\": true,\n \"publish_to_portal\": true,\n \"target\": \"org\",\n \"scheduled_at\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"target": "<string>",
"brand": "<string>",
"organization_id": "<string>",
"title": "<string>",
"slug": "<string>",
"status": "<string>",
"excerpt": "<string>",
"content": "<string>",
"author": "<string>",
"tags": [],
"featured_image": "<string>",
"category": "<string>",
"date": "<string>",
"publish_to_website": true,
"publish_to_portal": true,
"is_pinned": true,
"published_at": "<string>",
"scheduled_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}Create Blog Post
Create a blog post on the calling key’s OWN organisation blog — the post is
scoped to the key’s org, so callers normally send only title (+ optional fields).
Defaults status='draft'. Slug is derived from the title when omitted and must be
unique per org. Honours Idempotency-Key. Requires the blog:write scope (NOT
granted by the write umbrella).
target/brand are reserved for EquateIt marketing sites: target='platform'
writes a public marketing post (organization_id NULL), requires the key’s
platform-blog capability, and brand (required for platform) selects the surface.
curl --request POST \
--url https://api.example.com/v1/blog-posts \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"slug": "<string>",
"excerpt": "<string>",
"content": "<string>",
"tags": [
"<string>"
],
"featured_image": "<string>",
"author": "<string>",
"category": "<string>",
"date": "<string>",
"status": "draft",
"publish_to_website": true,
"publish_to_portal": true,
"target": "org",
"scheduled_at": "<string>"
}
'import requests
url = "https://api.example.com/v1/blog-posts"
payload = {
"title": "<string>",
"slug": "<string>",
"excerpt": "<string>",
"content": "<string>",
"tags": ["<string>"],
"featured_image": "<string>",
"author": "<string>",
"category": "<string>",
"date": "<string>",
"status": "draft",
"publish_to_website": True,
"publish_to_portal": True,
"target": "org",
"scheduled_at": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
slug: '<string>',
excerpt: '<string>',
content: '<string>',
tags: ['<string>'],
featured_image: '<string>',
author: '<string>',
category: '<string>',
date: '<string>',
status: 'draft',
publish_to_website: true,
publish_to_portal: true,
target: 'org',
scheduled_at: '<string>'
})
};
fetch('https://api.example.com/v1/blog-posts', 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.example.com/v1/blog-posts",
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([
'title' => '<string>',
'slug' => '<string>',
'excerpt' => '<string>',
'content' => '<string>',
'tags' => [
'<string>'
],
'featured_image' => '<string>',
'author' => '<string>',
'category' => '<string>',
'date' => '<string>',
'status' => 'draft',
'publish_to_website' => true,
'publish_to_portal' => true,
'target' => 'org',
'scheduled_at' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.example.com/v1/blog-posts"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"slug\": \"<string>\",\n \"excerpt\": \"<string>\",\n \"content\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"featured_image\": \"<string>\",\n \"author\": \"<string>\",\n \"category\": \"<string>\",\n \"date\": \"<string>\",\n \"status\": \"draft\",\n \"publish_to_website\": true,\n \"publish_to_portal\": true,\n \"target\": \"org\",\n \"scheduled_at\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.example.com/v1/blog-posts")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"slug\": \"<string>\",\n \"excerpt\": \"<string>\",\n \"content\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"featured_image\": \"<string>\",\n \"author\": \"<string>\",\n \"category\": \"<string>\",\n \"date\": \"<string>\",\n \"status\": \"draft\",\n \"publish_to_website\": true,\n \"publish_to_portal\": true,\n \"target\": \"org\",\n \"scheduled_at\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/blog-posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"slug\": \"<string>\",\n \"excerpt\": \"<string>\",\n \"content\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"featured_image\": \"<string>\",\n \"author\": \"<string>\",\n \"category\": \"<string>\",\n \"date\": \"<string>\",\n \"status\": \"draft\",\n \"publish_to_website\": true,\n \"publish_to_portal\": true,\n \"target\": \"org\",\n \"scheduled_at\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"target": "<string>",
"brand": "<string>",
"organization_id": "<string>",
"title": "<string>",
"slug": "<string>",
"status": "<string>",
"excerpt": "<string>",
"content": "<string>",
"author": "<string>",
"tags": [],
"featured_image": "<string>",
"category": "<string>",
"date": "<string>",
"publish_to_website": true,
"publish_to_portal": true,
"is_pinned": true,
"published_at": "<string>",
"scheduled_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}Authorizations
Org API key as Token token=ei_live_...
Headers
Body
POST /v1/blog-posts → blog_posts. Creates a post on the calling key's OWN
organisation blog — the post is scoped to the org the API key belongs to, so most
callers send only title (+ content and other optional fields) and nothing else.
Defaults status='draft' (never auto-publish an unreviewed post). organization_id /
created_by / timestamps are server-set, never accepted.
target / brand are reserved for EquateIt-operated marketing sites and are NOT
needed for normal org publishing: target='platform' writes to a public marketing
blog and requires the key's allow_platform_blog capability (not granted to ordinary
org keys), with brand selecting the surface.
1 - 300URL slug; slugified from the title when omitted. Unique per org.
200^[a-z0-9]+(?:-[a-z0-9]+)*$2000Markdown body.
200000502000200200ISO date; defaults to today.
draft, published Leave as 'org' (the default) to post to your own organisation's blog. 'platform' targets an EquateIt-operated marketing site and requires the key's platform-blog capability.
platform, org Only for platform posts — which marketing surface (equateit → equateit.com.au, classquill → classquill.com). Omit for org posts.
equateit, classquill ISO 8601 datetime (e.g. '2026-08-01T09:00:00Z'). When set with status='draft', the post will be published automatically by a background job within 15 minutes of this time. Pass null to cancel a scheduled publish.
Response
Successful Response
A blog post row returned by /v1/blog-posts. target is derived from
organization_id (NULL → 'platform', else 'org').
Was this page helpful?