Create a draft post
postkey_create_postPostkey: Creates a new DRAFT post and returns its post_id. Nothing is published and nobody outside the profile sees it. Use it only for a new post: to change one that exists use postkey_update_post, and when that is refused, follow the refusal's steps or ask the person. Never make a copy as a way around a refusal unless the person asks for one: it would post twice. Image, video and story posts need media before they can be scheduled: Library ids in library_item_ids, or postkey_attach_library_item later. An account that cannot take this type is refused (for example a text post to Instagram). To publish it: postkey_preview_action, then postkey_schedule_post. When the profile has more than one social account on a platform, ask the person which; never default to all. Each social account a post goes to counts once against posts_per_week.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>"
},
"name": "postkey_create_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | "text": words only (Instagram, TikTok, YouTube and Pinterest do not take it). "image": one or more images (not YouTube). "video": a video. "story": exactly one image or video as an Instagram or Facebook Story. | |
| title | No | An internal title only the team sees. Never published. At most 200 characters. | |
| caption | No | The caption published with the post, at most 5,000 characters. Each platform's own length limit is checked when it is scheduled. | |
| keyword | No | The call-to-action word people comment to get a DM, for example "GUIDE". Letters, digits, _ and - only, at most 40. It is a label on the post; the DM itself is sent by a live automation with the same keyword (postkey_create_automation). | |
| link_url | No | The link the keyword automation hands out, https://... | |
| visibility | No | YouTube only: who can see the video. "public" (default); "unlisted": anyone with the link, not in search or on the channel; "private": only the channel. | |
| youtube_title | No | YouTube only: the video's title, at most 100 characters. Left out: YouTube uses the first 100 characters of the caption. An empty string removes it. | |
| library_item_ids | No | The post's media in order: ids from postkey_list_library or postkey_finish_upload. Up to 10 (a story takes exactly 1). Sending it replaces the list; an empty list removes all. | |
| linkedin_post_as | No | LinkedIn only, keyed by LinkedIn social account id (in social_account_ids): who it posts as. "me", company pages by name or urn (post_as in postkey_list_social_accounts), or both: each is its own post and counts once in posts_per_week. { "<id>": ["me", "Acme Corp"] }: the person and the page. null: back to "me" only. A page it does not manage is refused with the ones it can use. | |
| trial_graduation | No | Only with instagram_trial_reel true. "manual" (default): the person shares it to their followers in Instagram; "by_performance": Instagram shares it by itself if it does well. | |
| platform_settings | No | Each platform's own settings, keyed by platform, merged key by key into what the post has (null removes one). For example { "tiktok": { "privacy_status": "private", "allow_duet": false }, "instagram": { "share_to_feed": false, "first_comment": "Link in bio" }, "linkedin": { "first_comment": "..." }, "reddit": { "subreddit": "videography", "title": "..." } }. postkey_guide topic platforms lists every setting and what it takes. An unknown platform or setting is refused invalid_arguments. | |
| social_account_ids | No | The social accounts to post to: ids from postkey_list_social_accounts (active, not needs_reconnect). Up to 30. Sending it replaces the list; an empty list removes all. | |
| instagram_trial_reel | No | Instagram only, one video, not a Story. true: post it as a TRIAL reel, shown first to people who do not follow the account and not on the profile grid. false takes that off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false: refused (isError; code, message, guide_topic, url); no change. | |
| note | No | The next steps. | |
| status | No | The post's status after the save. | |
| created | No | true: the draft was made. | |
| post_id | No | The post id. | |
| warnings | No | Things to fix before it can be sent. | |
| published | No | Always false: nothing was published. | |
| posts_left_this_week | No | On a plan with a weekly post limit: posts left this week. |