Create post
curl --request POST \
--url https://app.getkavio.app/api/posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"platforms": [
{
"social_account_id": "<string>",
"content_type": "<string>"
}
],
"content": "<string>",
"media": [
{}
],
"scheduled_at": "<string>",
"label_ids": [
{}
]
}
'import requests
url = "https://app.getkavio.app/api/posts"
payload = {
"platforms": [
{
"social_account_id": "<string>",
"content_type": "<string>"
}
],
"content": "<string>",
"media": [{}],
"scheduled_at": "<string>",
"label_ids": [{}]
}
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({
platforms: [{social_account_id: '<string>', content_type: '<string>'}],
content: '<string>',
media: [{}],
scheduled_at: '<string>',
label_ids: [{}]
})
};
fetch('https://app.getkavio.app/api/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://app.getkavio.app/api/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([
'platforms' => [
[
'social_account_id' => '<string>',
'content_type' => '<string>'
]
],
'content' => '<string>',
'media' => [
[
]
],
'scheduled_at' => '<string>',
'label_ids' => [
[
]
]
]),
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://app.getkavio.app/api/posts"
payload := strings.NewReader("{\n \"platforms\": [\n {\n \"social_account_id\": \"<string>\",\n \"content_type\": \"<string>\"\n }\n ],\n \"content\": \"<string>\",\n \"media\": [\n {}\n ],\n \"scheduled_at\": \"<string>\",\n \"label_ids\": [\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://app.getkavio.app/api/posts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"platforms\": [\n {\n \"social_account_id\": \"<string>\",\n \"content_type\": \"<string>\"\n }\n ],\n \"content\": \"<string>\",\n \"media\": [\n {}\n ],\n \"scheduled_at\": \"<string>\",\n \"label_ids\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.getkavio.app/api/posts")
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 \"platforms\": [\n {\n \"social_account_id\": \"<string>\",\n \"content_type\": \"<string>\"\n }\n ],\n \"content\": \"<string>\",\n \"media\": [\n {}\n ],\n \"scheduled_at\": \"<string>\",\n \"label_ids\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_bodyPosts
Create post
Create a new draft post targeting one or more social accounts. Returns the created post with status 201.
POST
/
posts
Create post
curl --request POST \
--url https://app.getkavio.app/api/posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"platforms": [
{
"social_account_id": "<string>",
"content_type": "<string>"
}
],
"content": "<string>",
"media": [
{}
],
"scheduled_at": "<string>",
"label_ids": [
{}
]
}
'import requests
url = "https://app.getkavio.app/api/posts"
payload = {
"platforms": [
{
"social_account_id": "<string>",
"content_type": "<string>"
}
],
"content": "<string>",
"media": [{}],
"scheduled_at": "<string>",
"label_ids": [{}]
}
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({
platforms: [{social_account_id: '<string>', content_type: '<string>'}],
content: '<string>',
media: [{}],
scheduled_at: '<string>',
label_ids: [{}]
})
};
fetch('https://app.getkavio.app/api/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://app.getkavio.app/api/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([
'platforms' => [
[
'social_account_id' => '<string>',
'content_type' => '<string>'
]
],
'content' => '<string>',
'media' => [
[
]
],
'scheduled_at' => '<string>',
'label_ids' => [
[
]
]
]),
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://app.getkavio.app/api/posts"
payload := strings.NewReader("{\n \"platforms\": [\n {\n \"social_account_id\": \"<string>\",\n \"content_type\": \"<string>\"\n }\n ],\n \"content\": \"<string>\",\n \"media\": [\n {}\n ],\n \"scheduled_at\": \"<string>\",\n \"label_ids\": [\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://app.getkavio.app/api/posts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"platforms\": [\n {\n \"social_account_id\": \"<string>\",\n \"content_type\": \"<string>\"\n }\n ],\n \"content\": \"<string>\",\n \"media\": [\n {}\n ],\n \"scheduled_at\": \"<string>\",\n \"label_ids\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.getkavio.app/api/posts")
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 \"platforms\": [\n {\n \"social_account_id\": \"<string>\",\n \"content_type\": \"<string>\"\n }\n ],\n \"content\": \"<string>\",\n \"media\": [\n {}\n ],\n \"scheduled_at\": \"<string>\",\n \"label_ids\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_bodyCreates a
draft. To schedule or publish, follow up with PUT /posts/{post} using status=scheduled or status=publishing.
Pinterest posts:
POST /posts does not accept per-platform meta. After
creating, call PUT /posts/{post} and set
platforms[].meta.board_id for each Pinterest entry — otherwise the publish
job fails with Pinterest board_id is required.Request
array
required
At least one platform entry. Each entry pins this post to a connected social account and a
content_type.Show child attributes
Show child attributes
string
required
UUID of an active social account in the current workspace. Inactive or external accounts are rejected.
string
required
Format for this platform — must match the social account’s platform. Discover the catalog with
GET /content-types.Allowed values: linkedin_post, linkedin_carousel, linkedin_page_post, linkedin_page_carousel, x_post, facebook_post, facebook_reel, facebook_story, instagram_feed, instagram_carousel, instagram_reel, instagram_story, tiktok_video, tiktok_photo, youtube_short, threads_post, pinterest_pin, pinterest_video_pin, pinterest_carousel, bluesky_post, mastodon_post.string
The post body shared across all platforms. Up to 10 000 characters at the API
level (per-platform hard caps are enforced separately — see
GET /content-types for the matrix). Defaults to empty.array
Media items to attach to the post. Each item should match the shape returned
by
POST /posts/{post}/media — id, path, url, type,
mime_type, original_filename. Most callers use the dedicated upload or
attach-from-URL endpoint instead.string
ISO 8601 datetime in the future (e.g.
2026-05-10T15:30:00Z). Stored on the
draft so a follow-up PUT with status=scheduled doesn’t have to repeat it.
Defaults to today at 09:00 UTC.array
Workspace label UUIDs to attach. Must belong to the same workspace as the API
key.
Response
Returns201 with the created post. Response shape is identical to GET /posts/{post} — see that endpoint for full field documentation.
curl -X POST https://app.getkavio.app/api/posts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Hello from the Kavio API!",
"platforms": [
{
"social_account_id": "b2c3d4e5-f6a7-8b9c-0d1e-2f3a4b5c6d7e",
"content_type": "linkedin_post"
}
],
"scheduled_at": "2026-05-10T15:30:00Z",
"label_ids": ["c3d4e5f6-a7b8-9c0d-1e2f-3a4b5c6d7e8f"]
}'
{
"id": "9f1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
"content": "Hello from the Kavio API!",
"media": [],
"status": "draft",
"scheduled_at": "2026-05-10 15:30:00",
"published_at": null,
"platforms": [
{
"id": "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d",
"platform": "linkedin",
"content_type": "linkedin_post",
"status": "pending",
"enabled": true,
"platform_url": null,
"published_at": null,
"error_message": null,
"display_name": "John Doe",
"display_username": "johndoe",
"display_avatar": "https://media.licdn.com/.../avatar.jpg",
"social_account": {
"id": "b2c3d4e5-f6a7-8b9c-0d1e-2f3a4b5c6d7e",
"platform": "linkedin",
"display_name": "John Doe",
"username": "johndoe",
"is_active": true,
"status": "connected"
}
}
],
"labels": [
{
"id": "c3d4e5f6-a7b8-9c0d-1e2f-3a4b5c6d7e8f",
"name": "Product Launch",
"color": "#4f46e5",
"created_at": "2025-01-10 08:00:00",
"updated_at": "2025-01-10 08:00:00"
}
],
"created_at": "2025-01-14 09:00:00",
"updated_at": "2025-01-14 09:00:00"
}

