Create a post
curl --request POST \
--url https://posted-api.example.com/api/posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "A small update from the studio.",
"connectionIds": [
"11111111-1111-4111-8111-111111111111"
],
"mediaIds": [
"44444444-4444-4444-8444-444444444444"
],
"scheduledAt": "2027-01-18T09:30:00.000Z",
"idempotencyKey": "studio-update-2027-01-18"
}
'import requests
url = "https://posted-api.example.com/api/posts"
payload = {
"text": "A small update from the studio.",
"connectionIds": ["11111111-1111-4111-8111-111111111111"],
"mediaIds": ["44444444-4444-4444-8444-444444444444"],
"scheduledAt": "2027-01-18T09:30:00.000Z",
"idempotencyKey": "studio-update-2027-01-18"
}
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({
text: 'A small update from the studio.',
connectionIds: ['11111111-1111-4111-8111-111111111111'],
mediaIds: ['44444444-4444-4444-8444-444444444444'],
scheduledAt: '2027-01-18T09:30:00.000Z',
idempotencyKey: 'studio-update-2027-01-18'
})
};
fetch('https://posted-api.example.com/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://posted-api.example.com/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([
'text' => 'A small update from the studio.',
'connectionIds' => [
'11111111-1111-4111-8111-111111111111'
],
'mediaIds' => [
'44444444-4444-4444-8444-444444444444'
],
'scheduledAt' => '2027-01-18T09:30:00.000Z',
'idempotencyKey' => 'studio-update-2027-01-18'
]),
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://posted-api.example.com/api/posts"
payload := strings.NewReader("{\n \"text\": \"A small update from the studio.\",\n \"connectionIds\": [\n \"11111111-1111-4111-8111-111111111111\"\n ],\n \"mediaIds\": [\n \"44444444-4444-4444-8444-444444444444\"\n ],\n \"scheduledAt\": \"2027-01-18T09:30:00.000Z\",\n \"idempotencyKey\": \"studio-update-2027-01-18\"\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://posted-api.example.com/api/posts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"A small update from the studio.\",\n \"connectionIds\": [\n \"11111111-1111-4111-8111-111111111111\"\n ],\n \"mediaIds\": [\n \"44444444-4444-4444-8444-444444444444\"\n ],\n \"scheduledAt\": \"2027-01-18T09:30:00.000Z\",\n \"idempotencyKey\": \"studio-update-2027-01-18\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://posted-api.example.com/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 \"text\": \"A small update from the studio.\",\n \"connectionIds\": [\n \"11111111-1111-4111-8111-111111111111\"\n ],\n \"mediaIds\": [\n \"44444444-4444-4444-8444-444444444444\"\n ],\n \"scheduledAt\": \"2027-01-18T09:30:00.000Z\",\n \"idempotencyKey\": \"studio-update-2027-01-18\"\n}"
response = http.request(request)
puts response.read_body{
"post": {
"id": "22222222-2222-4222-8222-222222222222",
"text": "A small update from the studio.",
"additionalPosts": [],
"mediaOverrides": {},
"scheduledAt": "2027-01-18T09:30:00.000Z",
"idempotencyKey": "studio-update-2027-01-18",
"state": "scheduled",
"version": 1,
"createdAt": "2027-01-18T09:30:00.000Z",
"media": [
{
"id": "44444444-4444-4444-8444-444444444444",
"fileName": "studio.jpg",
"contentType": "image/jpeg",
"sizeBytes": 245760,
"width": 1600,
"height": 900,
"alt": "A bright studio desk beside a window",
"durationSeconds": null
}
],
"managedBy": {
"id": "66666666-6666-4666-8666-666666666666",
"name": "Alex Morgan",
"avatarUrl": null
},
"deliveries": [
{
"id": "77777777-7777-4777-8777-777777777777",
"postIndex": 0,
"connectionId": "11111111-1111-4111-8111-111111111111",
"provider": "bluesky",
"accountName": "Alex Morgan",
"textOverride": null,
"state": "scheduled",
"providerPostId": null,
"publishedUrl": null,
"error": null,
"publishedAt": null
}
]
}
}{
"post": {
"id": "22222222-2222-4222-8222-222222222222",
"text": "A small update from the studio.",
"additionalPosts": [],
"mediaOverrides": {},
"scheduledAt": "2027-01-18T09:30:00.000Z",
"idempotencyKey": "studio-update-2027-01-18",
"state": "scheduled",
"version": 1,
"createdAt": "2027-01-18T09:30:00.000Z",
"media": [
{
"id": "44444444-4444-4444-8444-444444444444",
"fileName": "studio.jpg",
"contentType": "image/jpeg",
"sizeBytes": 245760,
"width": 1600,
"height": 900,
"alt": "A bright studio desk beside a window",
"durationSeconds": null
}
],
"managedBy": {
"id": "66666666-6666-4666-8666-666666666666",
"name": "Alex Morgan",
"avatarUrl": null
},
"deliveries": [
{
"id": "77777777-7777-4777-8777-777777777777",
"postIndex": 0,
"connectionId": "11111111-1111-4111-8111-111111111111",
"provider": "bluesky",
"accountName": "Alex Morgan",
"textOverride": null,
"state": "scheduled",
"providerPostId": null,
"publishedUrl": null,
"error": null,
"publishedAt": null
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}Create a post
Schedule or publish a post for selected team accounts. Confirm content, accounts and time with the user. Reuse the same idempotencyKey for retries.
POST
/
api
/
posts
Create a post
curl --request POST \
--url https://posted-api.example.com/api/posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "A small update from the studio.",
"connectionIds": [
"11111111-1111-4111-8111-111111111111"
],
"mediaIds": [
"44444444-4444-4444-8444-444444444444"
],
"scheduledAt": "2027-01-18T09:30:00.000Z",
"idempotencyKey": "studio-update-2027-01-18"
}
'import requests
url = "https://posted-api.example.com/api/posts"
payload = {
"text": "A small update from the studio.",
"connectionIds": ["11111111-1111-4111-8111-111111111111"],
"mediaIds": ["44444444-4444-4444-8444-444444444444"],
"scheduledAt": "2027-01-18T09:30:00.000Z",
"idempotencyKey": "studio-update-2027-01-18"
}
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({
text: 'A small update from the studio.',
connectionIds: ['11111111-1111-4111-8111-111111111111'],
mediaIds: ['44444444-4444-4444-8444-444444444444'],
scheduledAt: '2027-01-18T09:30:00.000Z',
idempotencyKey: 'studio-update-2027-01-18'
})
};
fetch('https://posted-api.example.com/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://posted-api.example.com/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([
'text' => 'A small update from the studio.',
'connectionIds' => [
'11111111-1111-4111-8111-111111111111'
],
'mediaIds' => [
'44444444-4444-4444-8444-444444444444'
],
'scheduledAt' => '2027-01-18T09:30:00.000Z',
'idempotencyKey' => 'studio-update-2027-01-18'
]),
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://posted-api.example.com/api/posts"
payload := strings.NewReader("{\n \"text\": \"A small update from the studio.\",\n \"connectionIds\": [\n \"11111111-1111-4111-8111-111111111111\"\n ],\n \"mediaIds\": [\n \"44444444-4444-4444-8444-444444444444\"\n ],\n \"scheduledAt\": \"2027-01-18T09:30:00.000Z\",\n \"idempotencyKey\": \"studio-update-2027-01-18\"\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://posted-api.example.com/api/posts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"A small update from the studio.\",\n \"connectionIds\": [\n \"11111111-1111-4111-8111-111111111111\"\n ],\n \"mediaIds\": [\n \"44444444-4444-4444-8444-444444444444\"\n ],\n \"scheduledAt\": \"2027-01-18T09:30:00.000Z\",\n \"idempotencyKey\": \"studio-update-2027-01-18\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://posted-api.example.com/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 \"text\": \"A small update from the studio.\",\n \"connectionIds\": [\n \"11111111-1111-4111-8111-111111111111\"\n ],\n \"mediaIds\": [\n \"44444444-4444-4444-8444-444444444444\"\n ],\n \"scheduledAt\": \"2027-01-18T09:30:00.000Z\",\n \"idempotencyKey\": \"studio-update-2027-01-18\"\n}"
response = http.request(request)
puts response.read_body{
"post": {
"id": "22222222-2222-4222-8222-222222222222",
"text": "A small update from the studio.",
"additionalPosts": [],
"mediaOverrides": {},
"scheduledAt": "2027-01-18T09:30:00.000Z",
"idempotencyKey": "studio-update-2027-01-18",
"state": "scheduled",
"version": 1,
"createdAt": "2027-01-18T09:30:00.000Z",
"media": [
{
"id": "44444444-4444-4444-8444-444444444444",
"fileName": "studio.jpg",
"contentType": "image/jpeg",
"sizeBytes": 245760,
"width": 1600,
"height": 900,
"alt": "A bright studio desk beside a window",
"durationSeconds": null
}
],
"managedBy": {
"id": "66666666-6666-4666-8666-666666666666",
"name": "Alex Morgan",
"avatarUrl": null
},
"deliveries": [
{
"id": "77777777-7777-4777-8777-777777777777",
"postIndex": 0,
"connectionId": "11111111-1111-4111-8111-111111111111",
"provider": "bluesky",
"accountName": "Alex Morgan",
"textOverride": null,
"state": "scheduled",
"providerPostId": null,
"publishedUrl": null,
"error": null,
"publishedAt": null
}
]
}
}{
"post": {
"id": "22222222-2222-4222-8222-222222222222",
"text": "A small update from the studio.",
"additionalPosts": [],
"mediaOverrides": {},
"scheduledAt": "2027-01-18T09:30:00.000Z",
"idempotencyKey": "studio-update-2027-01-18",
"state": "scheduled",
"version": 1,
"createdAt": "2027-01-18T09:30:00.000Z",
"media": [
{
"id": "44444444-4444-4444-8444-444444444444",
"fileName": "studio.jpg",
"contentType": "image/jpeg",
"sizeBytes": 245760,
"width": 1600,
"height": 900,
"alt": "A bright studio desk beside a window",
"durationSeconds": null
}
],
"managedBy": {
"id": "66666666-6666-4666-8666-666666666666",
"name": "Alex Morgan",
"avatarUrl": null
},
"deliveries": [
{
"id": "77777777-7777-4777-8777-777777777777",
"postIndex": 0,
"connectionId": "11111111-1111-4111-8111-111111111111",
"provider": "bluesky",
"accountName": "Alex Morgan",
"textOverride": null,
"state": "scheduled",
"providerPostId": null,
"publishedUrl": null,
"error": null,
"publishedAt": null
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}Write access: a member/administrator with a write-enabled credential, or an authorized signed-in user.
Schedule or publish a post for selected team accounts. Confirm content, accounts and time with the user. Reuse the same idempotencyKey for retries.
A future scheduledAt schedules delivery. For immediate publication, use the current timestamp after the user’s confirmation. Creation acknowledges a queued request, not confirmed provider publication. Use draftSource with its current version when converting a saved draft.
MCP clients can use
create_post for this operation.
Request conventions · API keys · MCP connectionsAuthorizations
bearerAuthsessionCookie
Personal or team Posted REST API key
Body
application/json
Maximum string length:
3000Required array length:
1 - 50 elementsPattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Maximum array length:
20Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$Pattern:
^[A-Za-z0-9._:-]{8,128}$Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Existing operation replay or saved-draft update.
Show child attributes
Show child attributes
Was this page helpful?
