Postbase
v0.3.0Schedule social posts, threads and video to X, LinkedIn, Bluesky, Mastodon and YouTube from your AI.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_channels
List the social channels connected to the Postbase workspace.
create_post
Create a draft, or schedule a post or thread, on connected channels. Give channel_ids from list_channels and scheduled_at (ISO 8601 with Z or an offset) or schedule_in_minutes; omit both for a draft. Attach media with media_ids (list_media) or media_urls (public https links). channel_bodies gives particular channels their own text. Pass an idempotency_key so a retried call returns the first post instead of a duplicate. YouTube needs a video and youtube.made_for_kids. TikTok posts can only be saved as drafts (the user schedules them in Postbase). Check the outcome later with get_post.
| Parameter | Type | Description |
|---|---|---|
body | string | The post text, for a single post. |
channel_bodies | object | Text for particular channels instead of body, keyed by channel id, e.g. a shorter X version. |
channel_ids | array | Channel ids to publish to (from list_channels). |
idempotency_key | string | Any unique string for this post; a repeat with the same key returns the first post. |
media_ids | array | Media library ids from list_media, in order. |
media_urls | array | Public https links to images or a video, attached after media_ids and added to the media library (up to 10). |
schedule_in_minutes | number | Publish this many minutes from now (server clock). Use for relative times. |
scheduled_at | string | ISO 8601 time with Z or an offset, e.g. 2026-10-01T09:00:00+01:00. Omit for a draft. |
thread | array | Several posts to publish as a thread, in order (instead of body). |
youtube | object | YouTube details, when a YouTube channel is in channel_ids. |
get_post
Get one post and how it went on each channel: status, the live URL once published, the error if it failed and when it will be retried, and the latest metrics.
| Parameter | Type | Description |
|---|---|---|
post_id * | string | The post id, from create_post or list_scheduled. |
update_post
Edit a draft or scheduled post before it publishes. Only the fields you pass change. Pass scheduled_at or schedule_in_minutes to reschedule (or schedule a draft); scheduled_at null turns it back into a draft. A post that has started publishing can't be edited.
| Parameter | Type | Description |
|---|---|---|
post_id * | string | The post id to edit. |
body | string | The post text, for a single post. |
channel_bodies | object | Text for particular channels instead of body, keyed by channel id, e.g. a shorter X version. |
channel_ids | array | Channel ids to publish to (from list_channels). |
media_ids | array | Media library ids from list_media, in order. |
media_urls | array | Public https links to images or a video, attached after media_ids and added to the media library (up to 10). |
schedule_in_minutes | number | Publish this many minutes from now (server clock). Use for relative times. |
scheduled_at | string | null | New time (ISO 8601 with an offset), or null for a draft. |
thread | array | Several posts to publish as a thread, in order (instead of body). |
youtube | object | YouTube details, when a YouTube channel is in channel_ids. |
retry_post
Send a post again, now, to the channels where it failed. Channels where it already published are left alone. Check get_post first: an expired connection needs reconnecting in Postbase.
| Parameter | Type | Description |
|---|---|---|
post_id * | string | The post id to retry. |
get_analytics
How published posts performed: each post's channels with their latest impressions, likes, comments, shares and saves, plus totals. Defaults to the last 30 days, newest first.
| Parameter | Type | Description |
|---|---|---|
channel_id | string | Only this channel. |
from | string | First day, YYYY-MM-DD. |
limit | number | 1 to 100 (default 20). |
order | string | |
platform | string | Only this network, e.g. x or linkedin. |
post_id | string | Just this post. |
sort | string | |
to | string | Last day, YYYY-MM-DD (default today). |
add_media
Add an image or video to the Postbase media library from a public https URL and return its id for media_ids. JPG, PNG, WebP, GIF, MP4, MOV or WebM, up to 200 MB.
| Parameter | Type | Description |
|---|---|---|
url * | string | Public https URL of the file. |
name | string | A name for the file in the library. |
schedule_thread
Create a thread (several posts, in order) and optionally schedule it. Same as create_post with thread; kept for older setups.
| Parameter | Type | Description |
|---|---|---|
tweets * | array | The tweets, in order. First is the lead tweet. |
channel_ids | array | Channel ids to publish to (from list_channels). |
scheduled_at | string | ISO 8601 time to publish, e.g. 2026-09-12T09:00:00Z. Omit for a draft. |
list_media
List images and videos in the workspace's Postbase media library (newest 50). Pass their ids to create_post as media_ids.
| Parameter | Type | Description |
|---|---|---|
search | string | Match part of the file name. |
type | string | Only images or only videos. |
list_scheduled
List posts in the workspace with their text, time and channels. Scheduled posts by default; pass status for drafts, published or failed ones.
| Parameter | Type | Description |
|---|---|---|
status | string |
cancel_post
Cancel a scheduled post by id. It goes back to being a draft, which update_post can reschedule.
| Parameter | Type | Description |
|---|---|---|
post_id * | string | The id of the post to cancel. |