Update a post
curl --request PUT \
--url https://api.aisa.one/apis/v1/social/posts/{postId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "Our spring collection is live.",
"scheduledFor": "2026-11-20T15:00:00Z",
"timezone": "America/New_York"
}
'import requests
url = "https://api.aisa.one/apis/v1/social/posts/{postId}"
payload = {
"content": "Our spring collection is live.",
"scheduledFor": "2026-11-20T15:00:00Z",
"timezone": "America/New_York"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content: 'Our spring collection is live.',
scheduledFor: '2026-11-20T15:00:00Z',
timezone: 'America/New_York'
})
};
fetch('https://api.aisa.one/apis/v1/social/posts/{postId}', 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.aisa.one/apis/v1/social/posts/{postId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'content' => 'Our spring collection is live.',
'scheduledFor' => '2026-11-20T15:00:00Z',
'timezone' => 'America/New_York'
]),
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.aisa.one/apis/v1/social/posts/{postId}"
payload := strings.NewReader("{\n \"content\": \"Our spring collection is live.\",\n \"scheduledFor\": \"2026-11-20T15:00:00Z\",\n \"timezone\": \"America/New_York\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.aisa.one/apis/v1/social/posts/{postId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"Our spring collection is live.\",\n \"scheduledFor\": \"2026-11-20T15:00:00Z\",\n \"timezone\": \"America/New_York\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/social/posts/{postId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": \"Our spring collection is live.\",\n \"scheduledFor\": \"2026-11-20T15:00:00Z\",\n \"timezone\": \"America/New_York\"\n}"
response = http.request(request)
puts response.read_body{
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"mediaItems": [
{
"altText": "<string>",
"mediaId": "<string>",
"thumbnailUrl": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"notice": "<string>",
"platforms": [
{
"accountId": "<string>",
"customContent": "<string>",
"customMedia": [
{
"altText": "<string>",
"mediaId": "<string>",
"thumbnailUrl": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"error": {
"category": "platform_rate_limit",
"message": "<string>",
"platformError": {},
"retryHint": "never",
"retryable": true,
"source": "<string>"
},
"platform": "tiktok",
"platformPostId": "<string>",
"platformPostUrl": "<string>",
"platformSpecificData": {},
"publishedAt": "2023-11-07T05:31:56Z",
"removedAt": "2023-11-07T05:31:56Z",
"scheduledFor": "2023-11-07T05:31:56Z",
"status": "<string>"
}
],
"profileId": "<string>",
"scheduledFor": "2023-11-07T05:31:56Z",
"status": "<string>",
"timezone": "<string>",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"mediaItems": [
{
"altText": "<string>",
"mediaId": "<string>",
"thumbnailUrl": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"notice": "<string>",
"platforms": [
{
"accountId": "<string>",
"customContent": "<string>",
"customMedia": [
{
"altText": "<string>",
"mediaId": "<string>",
"thumbnailUrl": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"error": {
"category": "platform_rate_limit",
"message": "<string>",
"platformError": {},
"retryHint": "never",
"retryable": true,
"source": "<string>"
},
"platform": "tiktok",
"platformPostId": "<string>",
"platformPostUrl": "<string>",
"platformSpecificData": {},
"publishedAt": "2023-11-07T05:31:56Z",
"removedAt": "2023-11-07T05:31:56Z",
"scheduledFor": "2023-11-07T05:31:56Z",
"status": "<string>"
}
],
"profileId": "<string>",
"scheduledFor": "2023-11-07T05:31:56Z",
"status": "<string>",
"timezone": "<string>",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"mediaItems": [
{
"altText": "<string>",
"mediaId": "<string>",
"thumbnailUrl": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"notice": "<string>",
"platforms": [
{
"accountId": "<string>",
"customContent": "<string>",
"customMedia": [
{
"altText": "<string>",
"mediaId": "<string>",
"thumbnailUrl": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"error": {
"category": "platform_rate_limit",
"message": "<string>",
"platformError": {},
"retryHint": "never",
"retryable": true,
"source": "<string>"
},
"platform": "tiktok",
"platformPostId": "<string>",
"platformPostUrl": "<string>",
"platformSpecificData": {},
"publishedAt": "2023-11-07T05:31:56Z",
"removedAt": "2023-11-07T05:31:56Z",
"scheduledFor": "2023-11-07T05:31:56Z",
"status": "<string>"
}
],
"profileId": "<string>",
"scheduledFor": "2023-11-07T05:31:56Z",
"status": "<string>",
"timezone": "<string>",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"retryHint": "never",
"retryable": true,
"type": "<string>"
}
}Posts & scheduling
Update a post
Edits a draft, scheduled or failed post. Turning a draft into a scheduled or published post needs social:publish; publishing a draft or a failed post now works like POST /posts with publishNow (202 publishing unless wait=true). Published, publishing, partial and cancelled posts return 409 post_not_editable. Each X (twitter or x) target supports a single X post, including scheduling with scheduledFor and timezone. X threads (threadItems), articles and link cards are not supported, including in drafts. Plain text URLs, replies and quotes remain supported subject to their field constraints.
PUT
https://api.aisa.one
/
apis
/
v1
/
social
/
posts
/
{postId}
Update a post
curl --request PUT \
--url https://api.aisa.one/apis/v1/social/posts/{postId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "Our spring collection is live.",
"scheduledFor": "2026-11-20T15:00:00Z",
"timezone": "America/New_York"
}
'import requests
url = "https://api.aisa.one/apis/v1/social/posts/{postId}"
payload = {
"content": "Our spring collection is live.",
"scheduledFor": "2026-11-20T15:00:00Z",
"timezone": "America/New_York"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content: 'Our spring collection is live.',
scheduledFor: '2026-11-20T15:00:00Z',
timezone: 'America/New_York'
})
};
fetch('https://api.aisa.one/apis/v1/social/posts/{postId}', 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.aisa.one/apis/v1/social/posts/{postId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'content' => 'Our spring collection is live.',
'scheduledFor' => '2026-11-20T15:00:00Z',
'timezone' => 'America/New_York'
]),
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.aisa.one/apis/v1/social/posts/{postId}"
payload := strings.NewReader("{\n \"content\": \"Our spring collection is live.\",\n \"scheduledFor\": \"2026-11-20T15:00:00Z\",\n \"timezone\": \"America/New_York\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.aisa.one/apis/v1/social/posts/{postId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"Our spring collection is live.\",\n \"scheduledFor\": \"2026-11-20T15:00:00Z\",\n \"timezone\": \"America/New_York\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/social/posts/{postId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": \"Our spring collection is live.\",\n \"scheduledFor\": \"2026-11-20T15:00:00Z\",\n \"timezone\": \"America/New_York\"\n}"
response = http.request(request)
puts response.read_body{
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"mediaItems": [
{
"altText": "<string>",
"mediaId": "<string>",
"thumbnailUrl": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"notice": "<string>",
"platforms": [
{
"accountId": "<string>",
"customContent": "<string>",
"customMedia": [
{
"altText": "<string>",
"mediaId": "<string>",
"thumbnailUrl": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"error": {
"category": "platform_rate_limit",
"message": "<string>",
"platformError": {},
"retryHint": "never",
"retryable": true,
"source": "<string>"
},
"platform": "tiktok",
"platformPostId": "<string>",
"platformPostUrl": "<string>",
"platformSpecificData": {},
"publishedAt": "2023-11-07T05:31:56Z",
"removedAt": "2023-11-07T05:31:56Z",
"scheduledFor": "2023-11-07T05:31:56Z",
"status": "<string>"
}
],
"profileId": "<string>",
"scheduledFor": "2023-11-07T05:31:56Z",
"status": "<string>",
"timezone": "<string>",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"mediaItems": [
{
"altText": "<string>",
"mediaId": "<string>",
"thumbnailUrl": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"notice": "<string>",
"platforms": [
{
"accountId": "<string>",
"customContent": "<string>",
"customMedia": [
{
"altText": "<string>",
"mediaId": "<string>",
"thumbnailUrl": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"error": {
"category": "platform_rate_limit",
"message": "<string>",
"platformError": {},
"retryHint": "never",
"retryable": true,
"source": "<string>"
},
"platform": "tiktok",
"platformPostId": "<string>",
"platformPostUrl": "<string>",
"platformSpecificData": {},
"publishedAt": "2023-11-07T05:31:56Z",
"removedAt": "2023-11-07T05:31:56Z",
"scheduledFor": "2023-11-07T05:31:56Z",
"status": "<string>"
}
],
"profileId": "<string>",
"scheduledFor": "2023-11-07T05:31:56Z",
"status": "<string>",
"timezone": "<string>",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"mediaItems": [
{
"altText": "<string>",
"mediaId": "<string>",
"thumbnailUrl": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"notice": "<string>",
"platforms": [
{
"accountId": "<string>",
"customContent": "<string>",
"customMedia": [
{
"altText": "<string>",
"mediaId": "<string>",
"thumbnailUrl": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"error": {
"category": "platform_rate_limit",
"message": "<string>",
"platformError": {},
"retryHint": "never",
"retryable": true,
"source": "<string>"
},
"platform": "tiktok",
"platformPostId": "<string>",
"platformPostUrl": "<string>",
"platformSpecificData": {},
"publishedAt": "2023-11-07T05:31:56Z",
"removedAt": "2023-11-07T05:31:56Z",
"scheduledFor": "2023-11-07T05:31:56Z",
"status": "<string>"
}
],
"profileId": "<string>",
"scheduledFor": "2023-11-07T05:31:56Z",
"status": "<string>",
"timezone": "<string>",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"retryHint": "never",
"retryable": true,
"type": "<string>"
}
}Request contract
- Method and path: PUT /apis/v1/social/posts/{postId}
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/social/posts/{postId} - wait: query; optional
- postId: path; required
{
"operationId": "put_aisa_social_apis_v1_social_posts_postid",
"method": "PUT",
"path": "/apis/v1/social/posts/{postId}",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "true waits for the platform before answering (also Prefer: wait). Only changes publishNow requests; the default answers 202 publishing at once.",
"in": "query",
"name": "wait",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"in": "path",
"name": "postId",
"required": true,
"schema": {
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"example": {
"content": "Our spring collection is live.",
"scheduledFor": "2026-11-20T15:00:00Z",
"timezone": "America/New_York"
},
"schema": {
"additionalProperties": false,
"properties": {
"content": {
"type": [
"string",
"null"
]
},
"isDraft": {
"type": [
"boolean",
"null"
]
},
"mediaItems": {
"items": {
"additionalProperties": false,
"properties": {
"altText": {
"type": [
"string",
"null"
]
},
"mediaId": {
"description": "A media id from POST /media/presign after the upload finished. Set url or mediaId, not both.",
"pattern": "^med_[0-9A-Za-z]{22}$",
"type": [
"string",
"null"
]
},
"thumbnailUrl": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"type": {
"description": "image, video, gif or document (PDF; LinkedIn only).",
"type": [
"string",
"null"
]
},
"url": {
"description": "Public https URL of the media file itself (not a page that shows it). Set url or mediaId, not both. AIsa fetches the start of the file before scheduling or publishing and refuses a URL that does not answer, is not on the public internet, serves another type than type (for example an HTML page), or is larger than 500 MB; the platform fetches the file when it publishes. Agents without file upload use this.",
"type": [
"string",
"null"
]
}
},
"type": [
"object",
"null"
]
},
"type": [
"array",
"null"
]
},
"platforms": {
"items": {
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"platform": {
"enum": [
"tiktok"
]
}
},
"required": [
"platform"
]
},
"then": {
"properties": {
"platformSpecificData": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"description": "Required to schedule or publish: privacyLevel, allowComment. Also required for video: allowDuet, allowStitch. Must be true, from the user: contentPreviewConfirmed, expressConsentGiven.",
"properties": {
"allowComment": {
"description": "Allow comments. Must be false when creator-info reports commentDisabled.",
"type": "boolean"
},
"allowDuet": {
"description": "Allow duets; required for video. Must be false when creator-info reports duetDisabled.",
"type": "boolean"
},
"allowStitch": {
"description": "Allow stitches; required for video. Must be false when creator-info reports stitchDisabled.",
"type": "boolean"
},
"brandPartnerPromote": {
"description": "Also disclose a paid partnership; only alongside commercialContentType brand_organic.",
"type": "boolean"
},
"commercialContentType": {
"description": "Commercial content disclosure; one of commercialContentTypes from creator-info. brand_content cannot be SELF_ONLY.",
"enum": [
"none",
"brand_organic",
"brand_content"
],
"type": "string"
},
"contentPreviewConfirmed": {
"description": "The user previewed exactly this content. Must be true and must come from the user.",
"type": "boolean"
},
"description": {
"description": "Long caption for photo posts.",
"maxLength": 4000,
"minLength": 1,
"type": "string"
},
"expressConsentGiven": {
"description": "The user consented to posting. Must be true and must come from the user.",
"type": "boolean"
},
"isBrandOrganicPost": {
"description": "Also disclose the creator's own brand; only alongside commercialContentType brand_content.",
"type": "boolean"
},
"mediaType": {
"description": "Overrides the media type derived from the media items.",
"enum": [
"video",
"photo"
],
"type": "string"
},
"privacyLevel": {
"description": "One of privacyLevelOptions from GET /accounts/{accountId}/tiktok/creator-info for this mediaType.",
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"videoMadeWithAi": {
"description": "Label the post as AI-generated.",
"type": "boolean"
}
},
"type": "object"
}
]
}
}
}
},
{
"if": {
"properties": {
"platform": {
"enum": [
"instagram"
]
}
},
"required": [
"platform"
]
},
"then": {
"properties": {
"platformSpecificData": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"description": "",
"properties": {
"collaborators": {
"description": "Up to 3 usernames to invite as collaborators (feed and Reels).",
"items": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"maxItems": 3,
"type": "array"
},
"contentType": {
"description": "story publishes a Story.",
"enum": [
"story"
],
"type": "string"
},
"firstComment": {
"description": "First comment added after publishing (not on Stories).",
"maxLength": 2200,
"minLength": 1,
"type": "string"
},
"isAiGenerated": {
"description": "Label the post as containing AI-generated media.",
"type": "boolean"
},
"shareToFeed": {
"description": "Reels only: also show the Reel on the main feed (default true).",
"type": "boolean"
}
},
"type": "object"
}
]
}
}
}
},
{
"if": {
"properties": {
"platform": {
"enum": [
"twitter",
"x"
]
}
},
"required": [
"platform"
]
},
"then": {
"properties": {
"platformSpecificData": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"description": "Each X (twitter or x) target supports a single X post, including scheduling with scheduledFor and timezone. X threads (threadItems), articles and link cards are not supported, including in drafts. Plain text URLs, replies and quotes remain supported subject to their field constraints.",
"properties": {
"madeWithAi": {
"description": "Label the post as containing AI-generated media.",
"type": "boolean"
},
"poll": {
"additionalProperties": false,
"description": "A poll; cannot be combined with media.",
"properties": {
"duration_minutes": {
"maximum": 10080,
"minimum": 5,
"type": "integer"
},
"options": {
"items": {
"maxLength": 25,
"minLength": 1,
"type": "string"
},
"maxItems": 4,
"minItems": 2,
"type": "array"
}
},
"required": [
"options",
"duration_minutes"
],
"type": "object"
},
"quoteTweetId": {
"description": "Existing X post ID or full status URL to quote. Cannot be combined with media or poll. X restricts which posts this account may quote.",
"maxLength": 2048,
"minLength": 1,
"type": "string"
},
"replySettings": {
"description": "Who can reply. Cannot be combined with replyToTweetId.",
"enum": [
"following",
"mentionedUsers",
"subscribers",
"verified"
],
"type": "string"
},
"replyToTweetId": {
"description": "Existing X post to reply to. Cannot be combined with replySettings. X restricts which posts this account may reply to.",
"maxLength": 2048,
"minLength": 1,
"type": "string"
}
},
"type": "object"
}
]
}
}
}
},
{
"if": {
"properties": {
"platform": {
"enum": [
"youtube"
]
}
},
"required": [
"platform"
]
},
"then": {
"properties": {
"platformSpecificData": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"description": "Required to schedule or publish: madeForKids.",
"properties": {
"containsSyntheticMedia": {
"description": "Label the video as containing synthetic (AI-generated) content.",
"type": "boolean"
},
"firstComment": {
"description": "First comment posted after upload.",
"maxLength": 10000,
"minLength": 1,
"type": "string"
},
"madeForKids": {
"description": "COPPA: whether the video is made for kids. Required, and must be the user's explicit choice.",
"type": "boolean"
},
"title": {
"description": "Video title.",
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"visibility": {
"description": "Video visibility.",
"enum": [
"public",
"private",
"unlisted"
],
"type": "string"
}
},
"type": "object"
}
]
}
}
}
},
{
"if": {
"properties": {
"platform": {
"enum": [
"facebook"
]
}
},
"required": [
"platform"
]
},
"then": {
"properties": {
"platformSpecificData": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"description": "",
"properties": {
"contentType": {
"description": "story or reel; omitted is a feed post.",
"enum": [
"story",
"reel"
],
"type": "string"
},
"firstComment": {
"description": "First comment added after publishing (not on stories).",
"maxLength": 8000,
"minLength": 1,
"type": "string"
},
"pageId": {
"description": "Page to post to when the account manages several.",
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"type": "object"
}
]
}
}
}
},
{
"if": {
"properties": {
"platform": {
"enum": [
"linkedin"
]
}
},
"required": [
"platform"
]
},
"then": {
"properties": {
"platformSpecificData": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"description": "linkedin accepts no platformSpecificData yet.",
"properties": {},
"type": "object"
}
]
}
}
}
},
{
"if": {
"properties": {
"platform": {
"enum": [
"pinterest"
]
}
},
"required": [
"platform"
]
},
"then": {
"properties": {
"platformSpecificData": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"description": "",
"properties": {
"isAiGenerated": {
"description": "Label the Pin as AI modified.",
"type": "boolean"
}
},
"type": "object"
}
]
}
}
}
},
{
"if": {
"properties": {
"platform": {
"enum": [
"threads"
]
}
},
"required": [
"platform"
]
},
"then": {
"properties": {
"platformSpecificData": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"description": "threads accepts no platformSpecificData yet.",
"properties": {},
"type": "object"
}
]
}
}
}
},
{
"if": {
"properties": {
"platform": {
"enum": [
"reddit"
]
}
},
"required": [
"platform"
]
},
"then": {
"properties": {
"platformSpecificData": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"description": "reddit accepts no platformSpecificData yet.",
"properties": {},
"type": "object"
}
]
}
}
}
}
],
"properties": {
"accountId": {
"pattern": "^acc_[0-9A-Za-z]{22}$",
"type": [
"string",
"null"
]
},
"customContent": {
"type": [
"string",
"null"
]
},
"customMedia": {
"items": {
"additionalProperties": false,
"properties": {
"altText": {
"type": [
"string",
"null"
]
},
"mediaId": {
"description": "A media id from POST /media/presign after the upload finished. Set url or mediaId, not both.",
"pattern": "^med_[0-9A-Za-z]{22}$",
"type": [
"string",
"null"
]
},
"thumbnailUrl": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"type": {
"description": "image, video, gif or document (PDF; LinkedIn only).",
"type": [
"string",
"null"
]
},
"url": {
"description": "Public https URL of the media file itself (not a page that shows it). Set url or mediaId, not both. AIsa fetches the start of the file before scheduling or publishing and refuses a URL that does not answer, is not on the public internet, serves another type than type (for example an HTML page), or is larger than 500 MB; the platform fetches the file when it publishes. Agents without file upload use this.",
"type": [
"string",
"null"
]
}
},
"type": [
"object",
"null"
]
},
"type": [
"array",
"null"
]
},
"platform": {
"enum": [
"tiktok",
"instagram",
"twitter",
"youtube",
"facebook",
"linkedin",
"pinterest",
"threads",
"reddit",
"x",
null
],
"type": [
"string",
"null"
]
},
"platformSpecificData": {
"additionalProperties": {},
"description": "Platform options, checked against the platform registry: unknown fields are rejected with unknown_field. The accepted fields depend on platform; fields required to schedule or publish are named in each description.",
"type": [
"object",
"null"
]
},
"scheduledFor": {
"format": "date-time",
"type": [
"string",
"null"
]
}
},
"type": [
"object",
"null"
]
},
"type": [
"array",
"null"
]
},
"publishNow": {
"type": [
"boolean",
"null"
]
},
"scheduledFor": {
"format": "date-time",
"type": [
"string",
"null"
]
},
"timezone": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
}
},
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Each platform target is charged separately, only once it is published: an X post costs $0.015, or $0.200 when its effective text contains a URL (media URLs do not select the text-URL price); a post on any other platform costs $0.01. One post may target X together with other platforms. A failed target is not charged, and a target whose own charge is refused (insufficient balance or the request’s maximum price) fails alone while the other targets publish. Draft creation is free. Accepted or unknown responses remain pending; only verified native publication settles each target’s charge once. Send X-AISA-Cost-Mode: quote to get the total before publishing. Your account price may differ; use a request quote where supported.Authorizations
Query Parameters
Body
application/json
Response
Success