Postbase

v0.3.0
io.github.postbasehq/postbase Checked 4 days ago Published 1 month ago

Schedule 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.

ParameterTypeDescription
bodystringThe post text, for a single post.
channel_bodiesobjectText for particular channels instead of body, keyed by channel id, e.g. a shorter X version.
channel_idsarrayChannel ids to publish to (from list_channels).
idempotency_keystringAny unique string for this post; a repeat with the same key returns the first post.
media_idsarrayMedia library ids from list_media, in order.
media_urlsarrayPublic https links to images or a video, attached after media_ids and added to the media library (up to 10).
schedule_in_minutesnumberPublish this many minutes from now (server clock). Use for relative times.
scheduled_atstringISO 8601 time with Z or an offset, e.g. 2026-10-01T09:00:00+01:00. Omit for a draft.
threadarraySeveral posts to publish as a thread, in order (instead of body).
youtubeobjectYouTube 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.

ParameterTypeDescription
post_id *stringThe 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.

ParameterTypeDescription
post_id *stringThe post id to edit.
bodystringThe post text, for a single post.
channel_bodiesobjectText for particular channels instead of body, keyed by channel id, e.g. a shorter X version.
channel_idsarrayChannel ids to publish to (from list_channels).
media_idsarrayMedia library ids from list_media, in order.
media_urlsarrayPublic https links to images or a video, attached after media_ids and added to the media library (up to 10).
schedule_in_minutesnumberPublish this many minutes from now (server clock). Use for relative times.
scheduled_atstring | nullNew time (ISO 8601 with an offset), or null for a draft.
threadarraySeveral posts to publish as a thread, in order (instead of body).
youtubeobjectYouTube 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.

ParameterTypeDescription
post_id *stringThe 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.

ParameterTypeDescription
channel_idstringOnly this channel.
fromstringFirst day, YYYY-MM-DD.
limitnumber1 to 100 (default 20).
orderstring
platformstringOnly this network, e.g. x or linkedin.
post_idstringJust this post.
sortstring
tostringLast 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.

ParameterTypeDescription
url *stringPublic https URL of the file.
namestringA 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.

ParameterTypeDescription
tweets *arrayThe tweets, in order. First is the lead tweet.
channel_idsarrayChannel ids to publish to (from list_channels).
scheduled_atstringISO 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.

ParameterTypeDescription
searchstringMatch part of the file name.
typestringOnly 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.

ParameterTypeDescription
statusstring

cancel_post

Cancel a scheduled post by id. It goes back to being a draft, which update_post can reschedule.

ParameterTypeDescription
post_id *stringThe id of the post to cancel.