Create a planned post
curl --request POST \
--url https://api.salesive.com/api/v1/social-posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "manual",
"platforms": [
"instagram"
],
"scheduledAt": "2026-12-01T09:00:00.000Z",
"media": [
{
"url": "https://cdn.example.com/post.jpg",
"type": "image"
}
],
"caption": "Fresh from the kitchen"
}
'import requests
url = "https://api.salesive.com/api/v1/social-posts"
payload = {
"kind": "manual",
"platforms": ["instagram"],
"scheduledAt": "2026-12-01T09:00:00.000Z",
"media": [
{
"url": "https://cdn.example.com/post.jpg",
"type": "image"
}
],
"caption": "Fresh from the kitchen"
}
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({
kind: 'manual',
platforms: ['instagram'],
scheduledAt: '2026-12-01T09:00:00.000Z',
media: [{url: 'https://cdn.example.com/post.jpg', type: 'image'}],
caption: 'Fresh from the kitchen'
})
};
fetch('https://api.salesive.com/api/v1/social-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.salesive.com/api/v1/social-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([
'kind' => 'manual',
'platforms' => [
'instagram'
],
'scheduledAt' => '2026-12-01T09:00:00.000Z',
'media' => [
[
'url' => 'https://cdn.example.com/post.jpg',
'type' => 'image'
]
],
'caption' => 'Fresh from the kitchen'
]),
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.salesive.com/api/v1/social-posts"
payload := strings.NewReader("{\n \"kind\": \"manual\",\n \"platforms\": [\n \"instagram\"\n ],\n \"scheduledAt\": \"2026-12-01T09:00:00.000Z\",\n \"media\": [\n {\n \"url\": \"https://cdn.example.com/post.jpg\",\n \"type\": \"image\"\n }\n ],\n \"caption\": \"Fresh from the kitchen\"\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.salesive.com/api/v1/social-posts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"kind\": \"manual\",\n \"platforms\": [\n \"instagram\"\n ],\n \"scheduledAt\": \"2026-12-01T09:00:00.000Z\",\n \"media\": [\n {\n \"url\": \"https://cdn.example.com/post.jpg\",\n \"type\": \"image\"\n }\n ],\n \"caption\": \"Fresh from the kitchen\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/social-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 \"kind\": \"manual\",\n \"platforms\": [\n \"instagram\"\n ],\n \"scheduledAt\": \"2026-12-01T09:00:00.000Z\",\n \"media\": [\n {\n \"url\": \"https://cdn.example.com/post.jpg\",\n \"type\": \"image\"\n }\n ],\n \"caption\": \"Fresh from the kitchen\"\n}"
response = http.request(request)
puts response.read_body{
"status": 123,
"success": true,
"message": "<string>",
"data": {
"_id": "<string>",
"kind": "ai",
"title": "<string>",
"prompt": "<string>",
"caption": "<string>",
"captions": {},
"platforms": [
"instagram"
],
"formats": [
"<string>"
],
"media": [
{
"url": "<string>",
"type": "image",
"duration": 123
}
],
"scheduledAt": "2023-11-07T05:31:56Z",
"status": "proposed",
"mode": "auto",
"generated": {
"images": [
"<string>"
],
"imagesByFormat": {},
"generatedAt": "2023-11-07T05:31:56Z"
},
"publishResults": [
{
"platform": "<string>",
"format": "<string>",
"success": true,
"postId": "<string>",
"error": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Social planner
Create a planned post
Create an AI or manual post and put it on the schedule. Requires the WRITE_SOCIAL scope.
POST
/
social-posts
Create a planned post
curl --request POST \
--url https://api.salesive.com/api/v1/social-posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "manual",
"platforms": [
"instagram"
],
"scheduledAt": "2026-12-01T09:00:00.000Z",
"media": [
{
"url": "https://cdn.example.com/post.jpg",
"type": "image"
}
],
"caption": "Fresh from the kitchen"
}
'import requests
url = "https://api.salesive.com/api/v1/social-posts"
payload = {
"kind": "manual",
"platforms": ["instagram"],
"scheduledAt": "2026-12-01T09:00:00.000Z",
"media": [
{
"url": "https://cdn.example.com/post.jpg",
"type": "image"
}
],
"caption": "Fresh from the kitchen"
}
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({
kind: 'manual',
platforms: ['instagram'],
scheduledAt: '2026-12-01T09:00:00.000Z',
media: [{url: 'https://cdn.example.com/post.jpg', type: 'image'}],
caption: 'Fresh from the kitchen'
})
};
fetch('https://api.salesive.com/api/v1/social-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.salesive.com/api/v1/social-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([
'kind' => 'manual',
'platforms' => [
'instagram'
],
'scheduledAt' => '2026-12-01T09:00:00.000Z',
'media' => [
[
'url' => 'https://cdn.example.com/post.jpg',
'type' => 'image'
]
],
'caption' => 'Fresh from the kitchen'
]),
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.salesive.com/api/v1/social-posts"
payload := strings.NewReader("{\n \"kind\": \"manual\",\n \"platforms\": [\n \"instagram\"\n ],\n \"scheduledAt\": \"2026-12-01T09:00:00.000Z\",\n \"media\": [\n {\n \"url\": \"https://cdn.example.com/post.jpg\",\n \"type\": \"image\"\n }\n ],\n \"caption\": \"Fresh from the kitchen\"\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.salesive.com/api/v1/social-posts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"kind\": \"manual\",\n \"platforms\": [\n \"instagram\"\n ],\n \"scheduledAt\": \"2026-12-01T09:00:00.000Z\",\n \"media\": [\n {\n \"url\": \"https://cdn.example.com/post.jpg\",\n \"type\": \"image\"\n }\n ],\n \"caption\": \"Fresh from the kitchen\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/social-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 \"kind\": \"manual\",\n \"platforms\": [\n \"instagram\"\n ],\n \"scheduledAt\": \"2026-12-01T09:00:00.000Z\",\n \"media\": [\n {\n \"url\": \"https://cdn.example.com/post.jpg\",\n \"type\": \"image\"\n }\n ],\n \"caption\": \"Fresh from the kitchen\"\n}"
response = http.request(request)
puts response.read_body{
"status": 123,
"success": true,
"message": "<string>",
"data": {
"_id": "<string>",
"kind": "ai",
"title": "<string>",
"prompt": "<string>",
"caption": "<string>",
"captions": {},
"platforms": [
"instagram"
],
"formats": [
"<string>"
],
"media": [
{
"url": "<string>",
"type": "image",
"duration": 123
}
],
"scheduledAt": "2023-11-07T05:31:56Z",
"status": "proposed",
"mode": "auto",
"generated": {
"images": [
"<string>"
],
"imagesByFormat": {},
"generatedAt": "2023-11-07T05:31:56Z"
},
"publishResults": [
{
"platform": "<string>",
"format": "<string>",
"success": true,
"postId": "<string>",
"error": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}A manual post (
kind: "manual") publishes the app’s own media URLs and needs only WRITE_SOCIAL. An AI post (kind: "ai", the default) generates images from prompt with the store’s AI credits and also needs USE_MERCHANT_AI. Set requiresPromptApproval: true to save a prompt-only draft that generates nothing until approved.Authorizations
Body
application/json
Response
The created post.
Was this page helpful?

