postfast-mcp 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +1 -1
- package/dist/core/instructions.js +4 -4
- package/dist/core/instructions.js.map +1 -1
- package/dist/core/tools/inbox.d.ts +2 -2
- package/dist/core/tools/inbox.js +6 -6
- package/dist/core/tools/inbox.js.map +1 -1
- package/dist/core/tools/posts.js +1 -1
- package/dist/core/tools/posts.js.map +1 -1
- package/dist/stdio/index.js +1 -1
- package/package.json +1 -1
- package/skills/social-inbox/SKILL.md +2 -2
- package/skills/social-media-post/SKILL.md +1 -1
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
{
|
|
12
12
|
"name": "postfast",
|
|
13
13
|
"description": "Schedule, manage, and analyze social media posts via PostFast. Supports Facebook, Instagram, X, TikTok, LinkedIn, YouTube, BlueSky, Threads, Pinterest, Telegram, and Google Business Profile.",
|
|
14
|
-
"version": "0.5.
|
|
14
|
+
"version": "0.5.2",
|
|
15
15
|
"author": {
|
|
16
16
|
"name": "PostFast",
|
|
17
17
|
"email": "me@peturgeorgievv.com"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postfast",
|
|
3
3
|
"description": "Schedule, manage, and analyze social media posts via PostFast. Supports Facebook, Instagram, X, TikTok, LinkedIn, YouTube, BlueSky, Threads, Pinterest, Telegram, and Google Business Profile. After installing, tell Cowork: 'Set my PostFast API key' — get your key at https://app.postfa.st/dashboard → API.",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "PostFast",
|
|
7
7
|
"email": "me@peturgeorgievv.com"
|
package/README.md
CHANGED
|
@@ -136,7 +136,7 @@ Ask your AI assistant things like:
|
|
|
136
136
|
|
|
137
137
|
### Social Inbox (comments)
|
|
138
138
|
|
|
139
|
-
Comments on your posts — TikTok, Instagram, Facebook Pages,
|
|
139
|
+
Comments on your posts — TikTok, Instagram, Facebook Pages, and Threads — in one inbox (an account's `inboxCapable` flag says what is live today). Comments only (no direct messages), from connect onward (no history backfill). Reply capability is always server-computed per conversation (`canReply`, `maxReplyLength`, `windowState`, `disabledReason`) — render from those fields, never platform assumptions.
|
|
140
140
|
|
|
141
141
|
| Tool | Description |
|
|
142
142
|
|------|-------------|
|
|
@@ -12,14 +12,14 @@ const SHARED_TAIL = `Before scheduling, confirm the target account's connectionS
|
|
|
12
12
|
|
|
13
13
|
Status & timing: status=SCHEDULED requires scheduledAt on every post (ISO-8601, in the future, within 1 year); status=DRAFT must omit scheduledAt. approvalStatus=APPROVED publishes; PENDING_APPROVAL holds it for review. There is no instant "publish now" — for an immediate post, set scheduledAt a few minutes ahead of now (a time at or before the current moment is rejected).
|
|
14
14
|
|
|
15
|
-
Media: use the key returned by an upload tool, and set mediaItems[].type to match the file (IMAGE for image/* keys, VIDEO for video/* keys — a mismatch is rejected). Videos are capped at 250MB (Telegram 50MB, Bluesky 100MB). Media is REQUIRED on TikTok, YouTube (video only), Instagram,
|
|
15
|
+
Media: use the key returned by an upload tool, and set mediaItems[].type to match the file (IMAGE for image/* keys, VIDEO for video/* keys — a mismatch is rejected). Videos are capped at 250MB (Telegram 50MB, Bluesky 100MB). Media is REQUIRED on TikTok, YouTube (video only), Instagram, and Pinterest; X, LinkedIn, Facebook, Threads, Bluesky, Telegram, and Google Business Profile allow text-only posts (GBP accepts 1 image and no video). This requirement applies even to DRAFTS — a draft to a media-required platform without media is rejected. So if the user asks to post to a media-required platform and provides no media, ask them for an image/video (or generate and upload one) BEFORE calling create_posts; don't attempt the post without media.
|
|
16
16
|
|
|
17
17
|
Per-platform limits (media counts / characters):
|
|
18
18
|
- X: up to 4 images or 1 video (no mixing); 280 chars (4,000 with X Premium).
|
|
19
19
|
- TikTok: 1 video OR up to 10 images; 4,000 chars.
|
|
20
20
|
- Instagram: up to 10 images + 10 videos (mixed OK); 2,200 chars, max 30 hashtags.
|
|
21
21
|
- YouTube: 1 video, no images; title max 100 chars.
|
|
22
|
-
- Facebook / LinkedIn: up to 10 images
|
|
22
|
+
- Facebook / LinkedIn: up to 10 images OR 1 video (no mixing).
|
|
23
23
|
- Threads: up to 10 images + 10 videos; 500 chars.
|
|
24
24
|
- Pinterest: up to 5 images or 1 video; title max 100, description max 800.
|
|
25
25
|
- Google Business Profile: 1 image; 1,500 chars.
|
|
@@ -30,7 +30,7 @@ Platform-specific options go in the controls object, e.g.:
|
|
|
30
30
|
- Pinterest: controls.pinterestBoardId is REQUIRED — it is a board's boardId from list_pinterest_boards, NOT the Pinterest account's socialMediaId.
|
|
31
31
|
- Google Business Profile: controls.gbpLocationId is required — the locationId from list_gbp_locations.
|
|
32
32
|
- YouTube: controls.youtubePlaylistId is the playlistId from list_youtube_playlists; youtubeIsShort defaults true; title falls back to the first 100 chars of content.
|
|
33
|
-
- TikTok: controls.tiktokPrivacy is deprecated (videos use the account default, photos default to public); tiktokTitle applies to photo carousels only (max 90); firstComment (max
|
|
33
|
+
- TikTok: controls.tiktokPrivacy is deprecated (videos use the account default, photos default to public); tiktokTitle applies to photo carousels only (max 90); firstComment (max 1,200, requires a Business API connection).
|
|
34
34
|
- Instagram: controls.instagramPublishType = TIMELINE | STORY | REEL.
|
|
35
35
|
- Facebook: controls.facebookContentType = POST | REEL | STORY. controls.facebookTargetCountries limits who can see a FEED post by country (ISO 3166-1 alpha-2, max 25; not Reels/Stories).
|
|
36
36
|
- Geotag a place (Facebook/Instagram): call search_places, then pass a returned id as controls.facebookPlaceId (Facebook feed posts only — not Reels/Stories/video) and/or controls.instagramLocationId (Instagram single media only — not carousels). One id works for both.
|
|
@@ -42,7 +42,7 @@ Failed posts carry lastError — usually a disconnected account (reconnect, then
|
|
|
42
42
|
|
|
43
43
|
delete_post removes a post from PostFast only — it never deletes an already-published post from the social platform. Say so when a user asks to delete something that has already gone out.
|
|
44
44
|
|
|
45
|
-
Social inbox (comments on your posts — TikTok, Instagram, Facebook Pages, Threads
|
|
45
|
+
Social inbox (comments on your posts — TikTok, Instagram, Facebook Pages, Threads; an account's inboxCapable flag from list_accounts says what is live today): read with list_inbox_conversations → list_inbox_items (get_inbox_unread_count for the total), reply with reply_to_inbox_item (public, under a specific comment item) or send_inbox_private_reply (Instagram only: one per comment, within 7 days). Whether and how long a reply can be comes ONLY from the conversation's server-computed canReply / maxReplyLength / windowState / disabledReason — never assume platform rules. Moderate with set_inbox_item_state (HIDE / UNHIDE / DELETE — DELETE removes the comment on the platform and cannot be undone), triage with set_inbox_conversation_status and assign_inbox_conversation, and call mark_inbox_conversation_read after presenting a thread. It is a comments inbox — never present it as DMs or messages.`;
|
|
46
46
|
const STDIO_INSTRUCTIONS = `PostFast schedules and publishes social posts across X, Instagram, Facebook, TikTok, LinkedIn, YouTube, Threads, Pinterest, Bluesky, Telegram, and Google Business Profile.
|
|
47
47
|
|
|
48
48
|
Flow: list_accounts to see what's connected → create_posts (one socialMediaId per post; batch up to 15) → attach media via upload_media (a local file, by absolute path) or get_upload_urls (signed PUT upload for raw bytes) → a post publishes when status=SCHEDULED and approvalStatus=APPROVED.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../src/core/instructions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../src/core/instructions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;w4BAkCo3B,CAAC;AAEz4B,MAAM,kBAAkB,GAAG;;;;;;EAMzB,WAAW,EAAE,CAAC;AAEhB,MAAM,mBAAmB,GAAG;;;;;;EAM1B,WAAW,EAAE,CAAC;AAEhB,MAAM,CAAC,MAAM,mBAAmB,GAA4B;IAC1D,KAAK,EAAE,kBAAkB;IACzB,MAAM,EAAE,mBAAmB;CAC5B,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,OAAgB;IAC9C,OAAO,mBAAmB,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -2,8 +2,8 @@ import type { ToolDef } from '../tool-def.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* Social inbox — a COMMENTS inbox (comments on the workspace's own posts;
|
|
4
4
|
* never described as DMs/messages). Coverage: TikTok, Instagram, Facebook
|
|
5
|
-
* Pages, Threads
|
|
6
|
-
*
|
|
5
|
+
* Pages, Threads — per account, `inboxCapable` from list_accounts is the
|
|
6
|
+
* authority on what is live today. Reply capability is server-computed per
|
|
7
7
|
* conversation (canReply / maxReplyLength / windowState / disabledReason) —
|
|
8
8
|
* descriptions steer models to render from those fields, never platform rules.
|
|
9
9
|
* Every def carries portMethod so bindings whose adapter predates this wave
|
package/dist/core/tools/inbox.js
CHANGED
|
@@ -3,8 +3,8 @@ import { INBOX_CONVERSATION_STATUSES, INBOX_ITEM_STATE_ACTIONS, PLATFORMS, dataL
|
|
|
3
3
|
/**
|
|
4
4
|
* Social inbox — a COMMENTS inbox (comments on the workspace's own posts;
|
|
5
5
|
* never described as DMs/messages). Coverage: TikTok, Instagram, Facebook
|
|
6
|
-
* Pages, Threads
|
|
7
|
-
*
|
|
6
|
+
* Pages, Threads — per account, `inboxCapable` from list_accounts is the
|
|
7
|
+
* authority on what is live today. Reply capability is server-computed per
|
|
8
8
|
* conversation (canReply / maxReplyLength / windowState / disabledReason) —
|
|
9
9
|
* descriptions steer models to render from those fields, never platform rules.
|
|
10
10
|
* Every def carries portMethod so bindings whose adapter predates this wave
|
|
@@ -15,7 +15,7 @@ export const inboxTools = [
|
|
|
15
15
|
name: 'list_inbox_conversations',
|
|
16
16
|
binding: 'both',
|
|
17
17
|
title: 'List Inbox Conversations',
|
|
18
|
-
description: "List comment conversations from the social inbox — comments on your connected accounts' posts, grouped per post, newest activity first. Covers TikTok, Instagram, Facebook Pages,
|
|
18
|
+
description: "List comment conversations from the social inbox — comments on your connected accounts' posts, grouped per post, newest activity first. Covers TikTok, Instagram, Facebook Pages, and Threads; an account's inboxCapable flag (from list_accounts) tells you whether comments can flow for it today. Comments arrive within seconds of being posted and only from connect/launch onward (no history backfill). Each conversation carries a server-computed reply capability — canReply, maxReplyLength, windowState, disabledReason — plus unreadCount, status (OPEN | SNOOZED | CLOSED), and assignedToUserId. ALWAYS derive whether and how long you can reply from those fields; never assume platform rules. postPreview carries the post's caption and, when available, its public permalink — use the permalink to link the user to the post on the platform (null on Instagram for now).",
|
|
19
19
|
inputSchema: {
|
|
20
20
|
page: z.number().int().min(0).default(0).describe('Page number (0-based)'),
|
|
21
21
|
limit: z
|
|
@@ -52,7 +52,7 @@ export const inboxTools = [
|
|
|
52
52
|
name: 'get_inbox_conversation',
|
|
53
53
|
binding: 'both',
|
|
54
54
|
title: 'Get Inbox Conversation',
|
|
55
|
-
description: "Fetch one inbox conversation by id, including its server-computed reply capability (canReply, maxReplyLength, windowState, disabledReason) — derive reply ability from these fields, never from hardcoded platform rules. postPreview carries the post's caption and
|
|
55
|
+
description: "Fetch one inbox conversation by id, including its server-computed reply capability (canReply, maxReplyLength, windowState, disabledReason) — derive reply ability from these fields, never from hardcoded platform rules. postPreview carries the post's caption and, when available, its public permalink — use the permalink to link the user to the post on the platform (null on Instagram for now). Returns null when the conversation does not exist in the workspace.",
|
|
56
56
|
inputSchema: {
|
|
57
57
|
id: z.uuid().describe('Conversation id (from list_inbox_conversations)'),
|
|
58
58
|
},
|
|
@@ -96,7 +96,7 @@ export const inboxTools = [
|
|
|
96
96
|
name: 'reply_to_inbox_item',
|
|
97
97
|
binding: 'both',
|
|
98
98
|
title: 'Reply to Inbox Comment',
|
|
99
|
-
description: "Reply publicly UNDER a specific comment — pass the comment item's id (from list_inbox_items), not the conversation id. BEFORE replying, check the conversation's canReply and maxReplyLength and stay within them; the caps are per platform (TikTok 1,200, Instagram 2,200, Facebook 8,000,
|
|
99
|
+
description: "Reply publicly UNDER a specific comment — pass the comment item's id (from list_inbox_items), not the conversation id. BEFORE replying, check the conversation's canReply and maxReplyLength and stay within them; the caps are per platform (TikTok 1,200, Instagram 2,200, Facebook 8,000, Threads 500 characters) but the server-computed fields are authoritative — never assume. Failures return inbox.* codes (e.g. replyTooLong, replyNotSupported, rateLimited).",
|
|
100
100
|
inputSchema: {
|
|
101
101
|
itemId: z.uuid().describe('The comment item id to reply under (from list_inbox_items)'),
|
|
102
102
|
text: z.string().min(1).describe("Reply text. Must fit the conversation's maxReplyLength."),
|
|
@@ -130,7 +130,7 @@ export const inboxTools = [
|
|
|
130
130
|
name: 'set_inbox_item_state',
|
|
131
131
|
binding: 'both',
|
|
132
132
|
title: 'Moderate Inbox Comment',
|
|
133
|
-
description: 'Moderate a comment on the platform: HIDE hides it from the public, UNHIDE restores it, DELETE removes the comment on the platform — cannot be undone. HIDE/UNHIDE work on TikTok, Instagram, Facebook, and Threads
|
|
133
|
+
description: 'Moderate a comment on the platform: HIDE hides it from the public, UNHIDE restores it, DELETE removes the comment on the platform — cannot be undone. HIDE/UNHIDE work on TikTok, Instagram, Facebook, and Threads; DELETE is not supported on Threads (inbox.deleteNotSupported). State changes made on the platform itself sync back to the inbox automatically.',
|
|
134
134
|
inputSchema: {
|
|
135
135
|
itemId: z.uuid().describe('The comment item id (from list_inbox_items)'),
|
|
136
136
|
action: z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.js","sourceRoot":"","sources":["../../../src/core/tools/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACxB,SAAS,EACT,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAGtB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,UAAU,GAAc;I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IAAI,CAAC,uBAAwB,CAC3B,IAA8C,EAC9C,WAAW,CACZ;KACJ;CACF,CAAC"}
|
package/dist/core/tools/posts.js
CHANGED
|
@@ -25,7 +25,7 @@ const postItemSchema = (binding) => z.object({
|
|
|
25
25
|
firstComment: z
|
|
26
26
|
.string()
|
|
27
27
|
.optional()
|
|
28
|
-
.describe('First comment posted automatically after publishing. Supported on X, Instagram, Facebook, YouTube, Threads, and TikTok (TikTok: max
|
|
28
|
+
.describe('First comment posted automatically after publishing. Supported on X, Instagram, Facebook, YouTube, Threads, and TikTok (TikTok: max 1,200 chars and requires a TikTok Business API connection).'),
|
|
29
29
|
mediaItems: z
|
|
30
30
|
.array(mediaItemSchema(binding))
|
|
31
31
|
.optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posts.js","sourceRoot":"","sources":["../../../src/core/tools/posts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,SAAS,EACT,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,SAAS,GACV,MAAM,cAAc,CAAC;AAGtB,6EAA6E;AAC7E,MAAM,YAAY,GAA4B;IAC5C,KAAK,EAAE,gCAAgC;IACvC,MAAM,EAAE,gCAAgC;CACzC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,OAAgB,EAAE,EAAE,CAC3C,CAAC,CAAC,MAAM,CAAC;IACP,GAAG,EAAE,CAAC;SACH,MAAM,EAAE;SACR,QAAQ,CAAC,kBAAkB,YAAY,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAC9E,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAClC,aAAa,EAAE,CAAC;SACb,MAAM,EAAE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,MAAM,EAAE;iBACR,QAAQ,CAAC,6DAA6D,CAAC;YAC1E,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;YAChF,cAAc,EAAE,CAAC;iBACd,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;iBACf,QAAQ,EAAE;iBACV,QAAQ,CAAC,6CAA6C,CAAC;SAC3D;QACD,YAAY,EAAE,oBAAoB;QAClC,2EAA2E;QAC3E,iCAAiC;QACjC,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE;QACjF,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,CAC/B,IAAI,CAAC,gBAAgB,CAAC,IAAgC,EAAE,WAAW,CAAC;KACvE;CACF,CAAC"}
|
package/dist/stdio/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { instructionsFor } from '../core/instructions.js';
|
|
|
6
6
|
import { RestAdapter } from './rest-adapter.js';
|
|
7
7
|
const server = new McpServer({
|
|
8
8
|
name: 'postfast',
|
|
9
|
-
version: '0.5.
|
|
9
|
+
version: '0.5.2',
|
|
10
10
|
}, { instructions: instructionsFor('stdio') });
|
|
11
11
|
const port = new RestAdapter();
|
|
12
12
|
registerCatalogTools(server, { binding: 'stdio', port });
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ description: Read, reply to, moderate, and triage comments on social posts using
|
|
|
5
5
|
|
|
6
6
|
# Social Inbox (comments) via PostFast
|
|
7
7
|
|
|
8
|
-
You have access to PostFast MCP inbox tools — a **comments** inbox for the workspace's own posts. It is never a DM/messages inbox. Covered platforms: TikTok, Instagram, Facebook Pages, Threads
|
|
8
|
+
You have access to PostFast MCP inbox tools — a **comments** inbox for the workspace's own posts. It is never a DM/messages inbox. Covered platforms: TikTok, Instagram, Facebook Pages, Threads — an account's `inboxCapable` flag (from `list_accounts`) is the authority on what is live today. Not covered: X, YouTube, Pinterest, Bluesky, Telegram, Google Business Profile, LinkedIn. Comments appear from connect/launch onward — there is no history backfill.
|
|
9
9
|
|
|
10
10
|
## The one rule that overrides everything
|
|
11
11
|
|
|
@@ -20,7 +20,7 @@ Reply capability is **server-computed per conversation**: `canReply`, `maxReplyL
|
|
|
20
20
|
|
|
21
21
|
## Replying
|
|
22
22
|
|
|
23
|
-
- **Public reply** — `reply_to_inbox_item` with the **comment item's id** (not the conversation id). Respect `maxReplyLength` (platform caps as context: TikTok 1,200, Instagram 2,200, Facebook 8,000,
|
|
23
|
+
- **Public reply** — `reply_to_inbox_item` with the **comment item's id** (not the conversation id). Respect `maxReplyLength` (platform caps as context: TikTok 1,200, Instagram 2,200, Facebook 8,000, Threads 500 — the fields are authoritative). Confirm the reply text with the user before sending; it posts publicly.
|
|
24
24
|
- **Instagram private reply** — `send_inbox_private_reply`, only where the item's `canPrivateReply` is true: exactly one per comment, within 7 days of the comment, up to 1,000 bytes (emoji count multi-byte), and it may land in the recipient's Message Requests. A second attempt fails with `inbox.privateReplyAlreadySent`.
|
|
25
25
|
- Replies sent through PostFast appear once in the thread — no duplicates when the platform confirms them.
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ If any PostFast tool call fails with an authentication/401 error, tell the user:
|
|
|
28
28
|
- `scheduledAt`: ISO 8601 datetime (required unless status is DRAFT)
|
|
29
29
|
- `mediaItems`: array of `{key, type, sortOrder}` from uploaded media
|
|
30
30
|
- `status`: SCHEDULED (default) or DRAFT
|
|
31
|
-
- `firstComment`: optional first comment text, posted automatically after publishing (supported on X, Instagram, Facebook, YouTube, Threads, and TikTok — TikTok: max
|
|
31
|
+
- `firstComment`: optional first comment text, posted automatically after publishing (supported on X, Instagram, Facebook, YouTube, Threads, and TikTok — TikTok: max 1,200 chars, requires a Business API connection)
|
|
32
32
|
- `controls`: platform-specific settings (see below)
|
|
33
33
|
- You can batch up to 15 posts in a single call — great for content calendars
|
|
34
34
|
- Don't schedule to a `DISABLED` account — the API rejects it with HTTP 400 `socialMediaDisconnected`. Saving as DRAFT is still allowed. Check `connectionStatus` from step 1 first.
|