PostFast
v0.16.2Schedule posts on 11 social networks, answer comments and read analytics, hosted or local
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_posts List Posts
List social media posts with optional filters for specific IDs, accounts, platform, status, and date range. Failed or missed posts carry a lastError { message, code }; codes include MISSED_DISCONNECTED (the account was disconnected when the post was due — reconnect, then retry) and MISSED_NOT_PUBLISHED (passed its scheduled time plus a 2h grace window without publishing). Each post also carries controls { threadsTopicTag, instagramPublishType, facebookContentType, tiktokIsDraft, youtubePrivacy }, each null when unset. Only the field for the post's own platform (its account's platform in list…
| Parameter | Type | Description |
|---|---|---|
from | string | Start date filter (ISO 8601, e.g. 2026-01-01T00:00:00.000Z) |
ids | array | Fetch only these post ids (workspace-scoped; max 100; AND-ed with other filters) |
limit | integer | Posts per page (max 50) |
page | integer | Page number (0-based) |
platforms | array | Filter by platforms |
socialMediaIds | array | Only posts on these accounts (ids from list_accounts; max 100; AND-ed with other filters) |
statuses | array | Filter by post statuses |
to | string | End date filter (ISO 8601, e.g. 2026-01-31T23:59:59.999Z) |
create_posts Create Posts
Create and schedule social media posts (batch up to 15). Each post targets one social account (socialMediaId from list_accounts). SCHEDULED requires scheduledAt on every post; DRAFT must omit scheduledAt. Scheduling to a disconnected account (connectionStatus DISABLED in list_accounts) is rejected with HTTP 400 "socialMediaDisconnected" — pre-check connectionStatus before calling. Saving as DRAFT to a disconnected account is allowed. TikTok, Instagram, YouTube, and Pinterest require at least one media item EVEN FOR DRAFTS — attach media first (ask the user for an image/video, or generate+u…
delete_post Delete Post
Delete a social media post by id. This removes the post from PostFast — its record, its schedule, and its stored media. It does NOT delete anything from the social platform: a post that has already published stays live there and must be removed on the platform itself. Deleting a SCHEDULED post that has not published yet does prevent it from publishing. The deletion cannot be undone.
| Parameter | Type | Description |
|---|---|---|
id * | string | Post id to delete |
get_post_analytics Get Post Analytics
Fetch published posts with their latest performance metrics (impressions, reach, likes, comments, shares). Only returns published posts that have a platform post ID. LinkedIn personal accounts are excluded. Supported: Instagram, Facebook, TikTok, Threads, YouTube, LinkedIn (company pages), Pinterest (Business accounts). Metric counts are returned as strings. Pinterest extras include pin_clicks, outbound_clicks, saves_90d, save_rate_90d (saves are 90-day rolling because Pinterest API does not expose lifetime totals); video pins additionally surface mrc_views, views_10s, avg_watch_time, v50_watc…
| Parameter | Type | Description |
|---|---|---|
endDate * | string | End of date range (ISO 8601, e.g. 2026-01-31T23:59:59.999Z) |
startDate * | string | Start of date range (ISO 8601, e.g. 2026-01-01T00:00:00.000Z) |
platforms | array | Filter by platforms |
socialMediaIds | array | Filter by specific social media account ids |
list_accounts List Accounts
List all social media accounts connected to the workspace. Each account includes connectionStatus (CONNECTED or DISABLED) and disabledReason (null unless DISABLED), plus followerCount (latest stored snapshot, a string; absent for platforms without follower data), followerCountUpdatedAt, and inboxCapable (whether the account can appear in the social inbox, i.e. comment ingestion is supported). A DISABLED account will not publish until the user reconnects it — pre-check before scheduling. For a follower trend over time, use get_follower_history.
list_pinterest_boards List Pinterest Boards
List Pinterest boards for a connected Pinterest account (pass its socialMediaId). Use a returned board’s boardId field as controls.pinterestBoardId in create_posts.
| Parameter | Type | Description |
|---|---|---|
socialMediaId * | string | Pinterest account id (from list_accounts) |
list_youtube_playlists List YouTube Playlists
List YouTube playlists for a connected YouTube account (pass its socialMediaId). Use a returned playlist’s playlistId field as controls.youtubePlaylistId in create_posts.
| Parameter | Type | Description |
|---|---|---|
socialMediaId * | string | YouTube account id (from list_accounts) |
list_gbp_locations List Google Business Profile Locations
List Google Business Profile locations for a connected GBP account (pass its socialMediaId). Use a returned location’s locationId field as controls.gbpLocationId in create_posts.
| Parameter | Type | Description |
|---|---|---|
socialMediaId * | string | GBP account id (from list_accounts) |
get_follower_history Get Follower History
Daily follower-count snapshots for one connected account (pass its socialMediaId from list_accounts). Returns currentFollowerCount, delta (current − first snapshot in range), trackingStartedAt (when PostFast began recording this account), and a series of { capturedAt, followerCount } points. All counts are strings (bigint); currentFollowerCount, delta, and trackingStartedAt may be absent until the account has its first snapshot. Optional from/to bound the range (ISO 8601; default last 90 days, capped at 365). Snapshots are forward-only — no data before trackingStartedAt. Coverage: Facebook…
| Parameter | Type | Description |
|---|---|---|
socialMediaId * | string | Account id (from list_accounts) |
from | string | Range start (ISO 8601, e.g. 2026-03-01T00:00:00.000Z). Defaults to 90 days ago. |
to | string | Range end (ISO 8601). Defaults to now; range is capped at 365 days. |
search_places Search Places
Search for a place to geotag a post. Pass free text (min 2 chars, e.g. a venue name or address); returns matching places, each with an id that works as BOTH controls.facebookPlaceId (Facebook feed posts) and controls.instagramLocationId (Instagram single-media posts). Only Facebook Pages that carry location data are returned.
| Parameter | Type | Description |
|---|---|---|
query * | string | Place search text, min 2 characters (e.g. "eiffel tower") |
generate_connect_link Generate Connect Link
Generate a shareable link for external clients to connect their social accounts to the workspace. Can be scoped to specific platforms and return the user to your own app when done. A one-platform link that your own product opens can skip the PostFast connect page (skipConnectPage).
| Parameter | Type | Description |
|---|---|---|
email | string | Recipient email (required when sendEmail is true) |
expiryDays | integer | Link expiry in days (1-30, default 7) |
externalId | string | Your own reference for this link, echoed back unchanged on the return URL. Letters, digits and - . _ ~ : @ only. |
platforms | array | Restrict the link to these platforms, e.g. ["INSTAGRAM"]. Omit to offer all of them. Enforced server-side, so a scoped link cannot connect any other platform. |
redirectUrl | string | Where the connect page offers to send the user once connecting finishes (with skipConnectPage, the user is sent there directly), with status, platform, accountId and externalId on the query string, pl… |
sendEmail | boolean | Send the link via email |
skipConnectPage | boolean | Skip the PostFast connect page, for a link your own product opens: the user goes straight to the platform's login and, with redirectUrl, straight back to it when done. Needs exactly one platform in pl… |
get_upload_urls Get Upload URLs
Get signed upload URLs for media, caption files and LinkedIn documents. Upload your file to the returned URL via PUT, then use the key in create_posts mediaItems; the key of a caption file (.srt or .vtt) goes in controls.youtubeCaptionKey instead, never in mediaItems; the key of a document (.pdf, .doc, .docx, .ppt or .pptx) goes in controls.linkedinAttachmentKey instead, never in mediaItems.
| Parameter | Type | Description |
|---|---|---|
contentType * | string | MIME type of the file. Supported: image/jpeg, image/png, image/gif, image/webp, video/mp4, video/webm, video/quicktime; for caption files application/x-subrip (.srt) and text/vtt (.vtt); for LinkedIn… |
count | integer | Number of upload URLs (1-8 for images, 1 for videos, caption files and documents) |
upload_media Upload Media
Upload a local file to PostFast and get back a media key for use in create_posts. Handles the full flow: detects content type, gets a signed URL, uploads the file, and returns the key and type. Images and videos come back as IMAGE or VIDEO, for mediaItems; an .srt or .vtt caption file comes back as CAPTION, and its key goes in controls.youtubeCaptionKey, never in mediaItems; a .pdf, .doc, .docx, .ppt or .pptx document comes back as DOCUMENT, and its key goes in controls.linkedinAttachmentKey, never in mediaItems.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Absolute path to the local file (e.g. /Users/me/photo.jpg) |
list_inbox_conversations List Inbox Conversations
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. AL…
| Parameter | Type | Description |
|---|---|---|
assignedToUserId | string | Only conversations assigned to this workspace member |
limit | integer | Conversations per page (max 50) |
page | integer | Page number (0-based) |
platforms | array | Filter by platforms |
socialMediaIds | array | Filter by specific social media account ids (from list_accounts) |
statuses | array | Filter by conversation statuses |
unreadOnly | boolean | Only conversations with unread comments |
get_inbox_conversation Get Inbox Conversation
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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Conversation id (from list_inbox_conversations) |
list_inbox_items List Inbox Items
List the items of one inbox conversation — the comments and the replies sent to them — oldest first by default (order=DESC for newest first). Items carry direction (INBOUND | OUTBOUND), state (VISIBLE | HIDDEN | DELETED), author info, and on Instagram comments canPrivateReply (eligibility for send_inbox_private_reply). Replies sent from PostFast appear exactly once — no duplicates when the platform reports them back.
| Parameter | Type | Description |
|---|---|---|
conversationId * | string | Conversation id (from list_inbox_conversations) |
limit | integer | Items per page (max 50) |
order | string | Sort by comment time. Default ASC (oldest first); DESC for newest first. |
page | integer | Page number (0-based) |
get_inbox_unread_count Get Inbox Unread Count
Total unread comment count across all inbox conversations in the workspace (the sum of per-conversation unreadCount). Use mark_inbox_conversation_read after presenting a conversation to the user.
reply_to_inbox_item Reply to Inbox Comment
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).
| Parameter | Type | Description |
|---|---|---|
itemId * | string | The comment item id to reply under (from list_inbox_items) |
text * | string | Reply text. Must fit the conversation's maxReplyLength. |
send_inbox_private_reply Send Instagram Private Reply
Instagram only: send ONE private reply to a comment — it arrives as a direct message to the commenter and may land in their Message Requests folder. Allowed once per comment, within 7 days of the comment, up to 1,000 bytes (emoji and non-Latin text count multi-byte — roughly 1,000 characters, less with emoji). Check the item's canPrivateReply first (from list_inbox_items). A second attempt on the same comment fails with inbox.privateReplyAlreadySent; other failures include privateReplyWindowExpired and privateReplyNotSupported.
| Parameter | Type | Description |
|---|---|---|
itemId * | string | The Instagram comment item id to reply privately to (canPrivateReply must be true) |
text * | string | Private reply text (max 1,000 bytes) |
set_inbox_item_state Moderate Inbox Comment
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.
| Parameter | Type | Description |
|---|---|---|
action * | string | HIDE, UNHIDE, or DELETE (DELETE is irreversible) |
itemId * | string | The comment item id (from list_inbox_items) |
mark_inbox_conversation_read Mark Inbox Conversation Read
Mark one conversation read (zeroes its unreadCount). Do this after presenting a conversation's comments to the user. Internal to PostFast — nothing changes on the platform.
| Parameter | Type | Description |
|---|---|---|
conversationId * | string | Conversation id (from list_inbox_conversations) |
set_inbox_conversation_status Set Inbox Conversation Status
Triage a conversation: set its status to OPEN, SNOOZED, or CLOSED. Internal to PostFast — nothing changes on the platform.
| Parameter | Type | Description |
|---|---|---|
conversationId * | string | Conversation id (from list_inbox_conversations) |
status * | string | New conversation status |
assign_inbox_conversation Assign Inbox Conversation
Assign a conversation to a workspace member for follow-up, or omit assigneeUserId to unassign. The assignee must be a member of the workspace (inbox.assigneeNotMember otherwise). Internal to PostFast — nothing changes on the platform.
| Parameter | Type | Description |
|---|---|---|
conversationId * | string | Conversation id (from list_inbox_conversations) |
assigneeUserId | string | Workspace member user id to assign. Omit to unassign. |
list_tiktok_sounds List TikTok Sounds
List trending pre-cleared Commercial Music Library tracks for a connected TikTok account. Returns up to 100 trending sounds with musicSoundId, name, artist, duration, and preview/thumbnail URLs. Pass a musicSoundId to create_posts as tiktokMusicSoundId to attach that sound to a TikTok photo, carousel or video post. genre takes raw TikTok values like 'POP', 'HIP_HOP/RAP', 'R&B/SOUL', 'K-POP' (invalid values return the full valid list in the error). The list rotates daily — fetch fresh rather than reusing old ids for display. An unknown countryCode returns an empty list. If the API returns tik…
| Parameter | Type | Description |
|---|---|---|
socialMediaId * | string | TikTok account id (from list_accounts) |
countryCode | string | 2-letter uppercase country code (default US). Unknown codes return an empty list. |
dateRange | string | Trending window (default 7DAY) |
genre | string | Raw TikTok genre value, e.g. 'POP', 'HIP_HOP/RAP', 'R&B/SOUL', 'K-POP'. Omit for all genres; an invalid value returns the full valid list in the error. |
delete_posts Delete Posts
Delete several social media posts by id in one call (up to 100; use delete_post for a single post). This removes each post from PostFast — its record, its schedule, and its stored media. It does NOT delete anything from the social platform: a post that has already published stays live there and must be removed on the platform itself. Deleting a SCHEDULED post that has not published yet does prevent it from publishing. Returns { deletedIds, notFoundIds }; notFoundIds are the ids that don't exist in this workspace, listed once each. The deletion cannot be undone.
| Parameter | Type | Description |
|---|---|---|
ids * | array | Post ids to delete (max 100) |
list_webhook_endpoints List Webhook Endpoints
List the workspace's webhook endpoints: the URLs where PostFast sends a signed JSON event when a post publishes or fails for good, or when an account connects or disconnects. Oldest first, turned-off ones included. Each has id, url, events, description, active, disabledReason (GONE: its receiver answered 410 Gone; FAILING: its deliveries failed for five days and the workspace owner was emailed; null while it is active, or when a user turned it off), lastSuccessAt and lastFailureAt. The signing secret is never listed: create_webhook_endpoint returns it once. To see what was sent and how the rec…
get_webhook_endpoint Get Webhook Endpoint
Fetch one webhook endpoint by id, with the fields list_webhook_endpoints gives (never the signing secret). An id that isn't in this workspace, or was deleted, fails with webhook.notFound.
| Parameter | Type | Description |
|---|---|---|
id * | string | Webhook endpoint id (from list_webhook_endpoints) |
create_webhook_endpoint Create Webhook Endpoint
Register a webhook endpoint: a URL where PostFast sends a signed JSON POST for every event of the chosen types, { id, type, timestamp, workspaceId, data }, where data.post is a post as list_posts returns it and data.account an account as list_accounts returns it. The endpoint gets these events from the whole workspace, for every account; a receiver that wants one account checks data.post.socialMediaId (or data.post.platform) or data.account.id. A workspace can have 5 active endpoints (turned-off ones don't count); one more fails with webhook.limitReached. The answer is the endpoint plus secret…
| Parameter | Type | Description |
|---|---|---|
events * | array | Event types to send, each at most once: post.published (a post was published), post.failed (a post failed for good, with the reason in data.post.lastError; never sent for a failure that will still be… |
url * | string | The receiver's URL: https on port 443, with a public hostname that contains a dot (no IP address, no localhost or internal name, no user:password@) and resolves to public addresses; at most 2,048 char… |
description | string | A note to tell endpoints apart, such as what the receiver is for (max 255 characters) |
update_webhook_endpoint Update Webhook Endpoint
Change a webhook endpoint: its url, events or description, or turn it off (active false) or back on (active true). Fields you omit keep their value; description null removes the description. A new url follows the rules of create_webhook_endpoint, keeps the same signing secret, and starts the endpoint's failure count afresh. active true turns an endpoint back on, whether PostFast turned it off (disabledReason GONE or FAILING) or a user did, and resets its failure count; it fails with webhook.limitReached when the workspace already has 5 active endpoints. Events that happen while an endpoint is…
| Parameter | Type | Description |
|---|---|---|
id * | string | Webhook endpoint id (from list_webhook_endpoints) |
active | boolean | false turns the endpoint off; true turns it back on and resets its failure count |
description | New note (max 255 characters), or null to remove it | |
events | array | The event types to send from now on, replacing the current ones (the values create_webhook_endpoint takes) |
url | string | New receiver URL, under the rules of create_webhook_endpoint |
delete_webhook_endpoint Delete Webhook Endpoint
Delete a webhook endpoint by id. PostFast stops sending to it at once: deliveries still waiting are dropped, and its delivery log and signing secret are deleted with it. To pause an endpoint instead, set active false with update_webhook_endpoint. An id that isn't in this workspace fails with webhook.notFound. Returns { ok: true }. The deletion cannot be undone.
| Parameter | Type | Description |
|---|---|---|
id * | string | Webhook endpoint id (from list_webhook_endpoints) |
test_webhook_endpoint Test Webhook Endpoint
Send one signed test delivery to a webhook endpoint now and report how its receiver answered: { eventId, type, delivered, statusCode, latencyMs, error }. It waits up to 15 seconds for the receiver, and the call succeeds even when the receiver failed, so read delivered, statusCode and error (null when delivered; otherwise timeout, connection, tls, redirect, http_4xx, http_5xx, gone, blocked_address, payload_too_large, or internal, which is PostFast's own failure). Without sampleEvent it sends a webhook.test event, whose data is { webhook: { id, url }, message }. With sampleEvent it sends a fixe…
| Parameter | Type | Description |
|---|---|---|
id * | string | Webhook endpoint id (from list_webhook_endpoints) |
sampleEvent | string | Send a fixed sample of this event type instead of webhook.test |
list_webhook_deliveries List Webhook Deliveries
List a webhook endpoint's delivery log, newest first: every delivery to it from the last 30 days, with how the receiver answered. Use it to find out why an event did or didn't arrive. Each row has eventId (evt_…, the webhook-id header the receiver got), eventType, resourceId (the post id for post events, the account id for account events, the endpoint id for webhook.test, null for a sample), status, attempts (each with n, at, statusCode, latencyMs and error), lastStatusCode, lastErrorCode, nextAttemptAt, completedAt and payload (the body exactly as sent). status is SUCCEEDED, FAILED (every a…
| Parameter | Type | Description |
|---|---|---|
endpointId * | string | Webhook endpoint id (from list_webhook_endpoints) |
getCount | boolean | Count the whole log, which fills totalCount and pageInfo.hasNextPage. Ask for it on the first page only. |
limit | integer | Deliveries per page (max 100; every row carries the full event payload) |
page | integer | Page number (0-based) |