Postwyre
Write, schedule and send social posts to each of your brands' accounts from your AI.
Barındırılan MCP Sunucusu
npx add-mcp 'https://postwyre.com/api/mcp'Claude Code, Codex, Cursor ve daha fazlasına kurulur
Dokümantasyon
Connect your AI (/docs/connect-your-ai)
Your own agent can write posts and queue them in Postwyre over MCP, the Model Context Protocol. Claude.ai and ChatGPT connect by signing in to Postwyre. Other agents use a key you paste into them. Either way the agent can reach every brand you are in.
The address is the same for every agent: https://postwyre.com/api/mcp
Claude.ai and ChatGPT: sign in, no key [#claudeai-and-chatgpt-sign-in-no-key]
- Copy the address.
- Add it as a custom connector.
- Claude.ai: Go to Customize, then Connectors, and click Add custom connector. Paste the address. If Claude asks how to sign in, choose Register automatically. Click Add, then Connect.
- ChatGPT: Go to Settings, then Apps. Under Advanced settings, turn on developer mode and click Create app. Paste the address, choose OAuth, and click Create.
- Postwyre opens. Sign in if it asks. It shows the app's name, the address it will send you back to, what it can do and which brands it reaches. To start with read access only, turn on Read only first. Click Authorize and you are connected.
Connecting needs no plan and no card. If none of your brands has a plan yet, as when you have just signed up, the app can read your brands, accounts, posts and stats, and hold posts for your approval (requireApproval: true), but cannot send or schedule. When you approve its first post, Postwyre shows a link to your plan step: a card for the trial, a plan to choose, or adding the brand to a plan you already have. If a trial or a new plan starts within a day, the last post you approved is then approved, unless it changed. After adding the brand to a plan you already have, approve the post again if it is still waiting. Anyone on the brand who cannot start its plan is told who can. Before a plan, your apps and keys can make up to 200 calls a day for you (see Billing).
Claude may recommend using its published identity. Postwyre accepts both an app's published identity (a Client ID Metadata Document) and apps that register themselves (dynamic client registration). Register automatically is the way we have tested with Claude, so choose it if you are unsure.
The app gets a token that lasts 24 hours and a refresh token it uses to get the next one, so you stay connected without signing in again. Signing out of Postwyre in your browser does not disconnect it; revoking it, changing or resetting your password does. The token acts as you, with your own role in each brand, and only as far as the access the app asked for (see Scopes). Most apps ask for all of it. It works only on this address. Each app you authorize is listed in Settings, Connected apps, and in the Connect your AI panel on the calendar and Accounts screens, with when it connected and when it was last used. Click Revoke there and the app loses access on its next call.
Other agents: four steps [#other-agents-four-steps]
- Copy the address:
https://postwyre.com/api/mcp - Make a key. The Connect your AI step on the calendar, while its setup strip shows, and the Connect your AI card on the Accounts screen both do it in place: pick your app, or Other, and click Create key. The Team page lists your keys. Postwyre shows the key once. It starts with
sk_live_. - Paste the setup for your agent, with your key where it says
YOUR_KEY. Claude Code, Gemini CLI and Antigravity sign in in your browser instead, so they need no key. - Test your connection. Copy a setup in the Connect your AI panel or click Check connection, then start or reload your agent. The panel shows Connected with the app's name once it reaches Postwyre, or with the key's name when it cannot tell which app it is.
Claude Code [#claude-code]
Run this in a terminal.
claude mcp add --transport http postwyre https://postwyre.com/api/mcp
Then run /mcp inside Claude Code, pick postwyre and sign in to Postwyre in your browser. No key needed.
Claude Code signs in the way Claude.ai does, so no key goes on the command line, where it would stay in your shell history.
Cursor [#cursor]
Put this in ~/.cursor/mcp.json, and set the key in your environment.
{
"mcpServers": {
"postwyre": {
"url": "https://postwyre.com/api/mcp",
"headers": {
"Authorization": "Bearer ${env:POSTWYRE_API_KEY}"
}
}
}
}
Set POSTWYRE_API_KEY to your key in your shell profile or system environment, not in the file, then start Cursor again. If Cursor still cannot connect, start it from a terminal so it sees the variable.
VS Code [#vs-code]
Put this in .vscode/mcp.json, or run MCP: Open User Configuration for every project.
{
"inputs": [
{
"type": "promptString",
"id": "postwyre-key",
"description": "Postwyre API key",
"password": true
}
],
"servers": {
"postwyre": {
"type": "http",
"url": "https://postwyre.com/api/mcp",
"headers": {
"Authorization": "Bearer ${input:postwyre-key}"
}
}
}
}
VS Code asks for your key the first time the server starts and keeps it, so the file holds no secret.
Codex CLI [#codex-cli]
Put this in ~/.codex/config.toml, and set the key in your environment.
[mcp_servers.postwyre]
url = "https://postwyre.com/api/mcp"
bearer_token_env_var = "POSTWYRE_API_KEY"
Set POSTWYRE_API_KEY to your key in your shell profile before you start Codex, not on the command line.
Gemini CLI [#gemini-cli]
Run this in a terminal.
gemini mcp add -s user --transport http postwyre https://postwyre.com/api/mcp
Then run /mcp auth postwyre inside Gemini CLI and sign in to Postwyre in your browser. No key needed.
Antigravity [#antigravity]
Put this in ~/.gemini/config/mcp_config.json in your home folder, or .agents/mcp_config.json in a project.
{
"mcpServers": {
"postwyre": {
"serverUrl": "https://postwyre.com/api/mcp"
}
}
}
Then open Customizations in Antigravity, click Authenticate next to postwyre and sign in to Postwyre in your browser. No key needed.
Hermes [#hermes]
Hermes signs in instead of using a key: see Use Postwyre from your agent.
Any other agent [#any-other-agent]
Any MCP client that can send an Authorization: Bearer header to a Streamable HTTP address can connect with a key. A client that registers itself (dynamic client registration, RFC 7591) or names a published identity (a Client ID Metadata Document) can sign in instead, the way Claude.ai and ChatGPT do: it finds Postwyre's sign-in from the address, registers or points to its identity, and asks you to authorize it.
Add the Postwyre skill [#add-the-postwyre-skill]
A skill is a short instruction file that teaches your agent the Postwyre steps: pick a brand, pick the accounts, write a draft, schedule it and check the results. It uses the tools below and needs the connector set up first.
The file is at https://postwyre.com/.well-known/agent-skills/postwyre/SKILL.md. For Claude Code, save it in your skills folder:
mkdir -p ~/.claude/skills/postwyre && curl -o ~/.claude/skills/postwyre/SKILL.md https://postwyre.com/.well-known/agent-skills/postwyre/SKILL.md
Other agents that read SKILL.md files take the same file in their own skills folder. Agents that look skills up find it listed at /.well-known/agent-skills/index.json.
The growth guides have more skills, each a recipe for pairing Postwyre with a picture, video or design tool in your AI app, each telling your AI app to ask for approval on every post.
How it works [#how-it-works]
The connector takes one POST per message and answers with plain JSON. It keeps no session, so with a valid key, opening a stream with GET answers 405. A notification gets 202 with no body, and a batch of messages is refused. It speaks MCP protocol versions 2026-07-28, 2025-11-25, 2025-06-18 and 2025-03-26. A 2026-07-28 client asks server/discover which versions it speaks and sends the version in each request's _meta and its MCP-Protocol-Version header; the earlier versions start with initialize, which answers 2025-11-25 when asked for a version it does not start with. A 2026-07-28 request whose MCP-Protocol-Version, Mcp-Method or Mcp-Name header disagrees with its body gets a 400 with error -32020, and one naming a version Postwyre does not speak gets a 400 with error -32022 and the versions it does. Each key, and each person's sign-in from one app, can make up to 120 requests a minute. Past that it answers 429 with a Retry-After header saying how many seconds to wait.
A key or a sign-in token is the only way in. A browser session does not work here. A missing, wrong, expired or revoked key or token answers 401 with a WWW-Authenticate header that points to https://postwyre.com/.well-known/oauth-protected-resource/api/mcp, which is how a connector finds where to sign in. See Agent keys for how keys work.
A key, or a sign-in, belongs to one person and reaches every brand that person is in. Every tool except list_workspaces takes a workspace_id, and each call checks that you are still in that brand and that the key has not been blocked there. The key's role never goes above yours, and a sign-in acts at your own role in each brand. As in the REST API, posting does not depend on role, so a member key can post. Taking someone out of a brand, or blocking their key there, cuts the agent off at once.
Sign-in, for client builders [#sign-in-for-client-builders]
Postwyre follows the MCP authorization spec (revision 2025-11-25). The 401 points to the protected resource metadata (RFC 9728), whose authorization server is https://postwyre.com/api/auth. Its metadata (RFC 8414) is at https://postwyre.com/.well-known/oauth-authorization-server/api/auth. Clients register at /api/auth/oauth2/register (RFC 7591, no sign-in needed), or use the https address of their Client ID Metadata Document as the client_id (the authorization server metadata says client_id_metadata_document_supported). Postwyre fetches that document over https on the default port only, from a host whose every address is public, with no redirects, and refuses it over 5 KB or after 5 seconds. It must name the app (client_name, up to 200 characters on one line, as for a registration) and its redirect_uris, and its client_id must be its own address. Either way, clients use the authorization code flow with PKCE (S256 only). Send resource=https://postwyre.com/api/mcp (RFC 8707) when you authorize and when you get a token: a token is bound to that address, and the connector refuses any token issued for another one. Ask for the postwyre scope, which allows every tool at the person's own role, or for one level: postwyre:read, postwyre:write, postwyre:send or postwyre:admin (see Scopes). An app that registered before the levels existed keeps the scopes it registered with, so it asks for postwyre as before. The protected resource metadata, the 401 and the Server Card at /.well-known/mcp/server-card.json name only postwyre; the authorization server's metadata also lists the four levels and offline_access, and a connector app gets a refresh token whether or not it asks for offline_access. Refresh tokens rotate on each use. A refresh token sent again within a minute of its use gets the same answer back, so an app that lost the reply stays connected; two refreshes with one token at the same moment get one answer and one invalid_grant. Sent again within that minute asking for a different scope or resource, or used again after that minute, it ends every token the app holds.
The authorization endpoint answers with a 400, not a redirect to your app, when a request asks for another scope or resource, leaves out the S256 challenge, repeats a parameter, or uses prompt=none, a request object, claims, max_age or id_token_hint; Postwyre supports none of those. A registration can list up to 10 redirect addresses and a name of up to 200 characters, and is refused over 16 KB.
When an app connects, Postwyre's answer to initialize carries its name, a one-line description, the address of this page and its 512 pixel icon. The same details, with the sign-in it uses, are public at https://postwyre.com/.well-known/mcp/server-card.json.
Every write goes through the same checks as the app. The plan's monthly allowance, the draft limit, the schedule window, the platform's own text limits and the media storage allowance all hold. A post over the monthly allowance is refused with quota_exceeded. When the person behind the key or sign-in owns the plan, its url is a Billing link where they can change it: the refused brand's Billing, even if the person has another brand open in Postwyre, or the Billing of the brand the plan belongs to when they are not that brand's owner. Anyone else, an admin included, gets no url, since only the plan's owner can change it, and the message ends by naming who to ask, for example "Ask Dana Reyes to change the plan." The name is the plan owner's display name, or their email only when they are on the refused brand; with neither, the message asks the person who owns the plan for that brand. A post refused for unusually high volume names support instead, with no url. A send, a schedule, a file past the few kept before a plan, or anything else a brand with no plan cannot do is refused with setup_required. Its url, the page where a plan starts, goes only to the plan's owner: an owner of the brand who owns its plan. Anyone else gets no url, and the message names who to ask to start a plan. The draft limit and a plan's media storage allowance answer conflict. The schedule window and a platform's text limit answer validation_error.
Tailor each platform [#tailor-each-platform]
A post to several platforms reads best when each one gets its own version. The connector tells agents this when they connect, and get_platform_guide gives them what they need to do it: each platform's post types (feed post, carousel, Reel, Story, Short), its limits, the tone people there respond to, a playbook for each type and, with a workspace_id, the brand's own voice. While a platform's review of Postwyre's app still limits what it can do, such as TikTok posting only as private, the guide's review line says so, and the line goes away the day the review passes. Ask your agent to call it, then write one version per platform in platformOverrides, each with its own body and, where the platform has more than one kind of post, options.postType. To set the voice itself, see Teach your agent your brand.
For example, a launch might go to LinkedIn as a short first-person story with a result in the first line, to Instagram as a carousel with a two-line caption, to TikTok as a vertical video with a short title, and to X as one sentence and a link.
Scopes [#scopes]
Each tool has a scope: read changes no post, setting, file or other record a person made in the brand (list_accounts with with_boards, get_creator_info, find_mention and list_wordpress_categories ask a platform live, and that can renew the account's sign-in with the platform or mark the account as needing to be reconnected, as the app does when it asks), write changes the brand's own records in Postwyre, and send reaches past Postwyre to a platform or a person: it publishes, replies, deletes from a platform, emails, or turns on automatic messages. Postwyre checks the scope, the brand and the role before a tool runs, the same way for every tool.
A key is limited when it is made. The Create key dialog asks for Read only (read tools only, the choice it starts on), Read and write (no send tools) or Read, write and send (every tool), and the list of keys shows which one each key has. Through the API from a signed-in session, send access with POST /api/api-keys as read, write or send (the default there). A limited key is refused every tool above its scope, with an answer that says so, and it does not work on the REST API at all. A key made without access can call every tool its role allows. Some tools need an owner or admin of the brand; a member's key, or a key made at member, gets that tool's own refusal.
A sign-in from an app is limited by the scope it asked for. Each level includes the ones before it:
| Scope | What the app can do |
|---|---|
postwyre:read | Read tools only. |
postwyre:write | Also the write tools. |
postwyre:send | Also the send tools. |
postwyre:admin | Also the tools marked Owner or admin below. The person must still be an owner or admin of that brand. |
postwyre | The same as postwyre:admin. Every app asked for this before the levels existed, and it still works. |
The consent page says in plain words what the scope it is asked for allows. When the app asks for more than reading, the page also has a Read only first switch, off to start with. Turn it on and the app gets postwyre:read only, whatever it asked for, and it keeps refreshing at that level. To let it make changes later, connect it again with the switch off. An app that registered before the levels existed does not get the switch. A tool above the sign-in's scope answers scope_required. At postwyre:read the message starts "This connection is read only. Reconnect and leave Read only first off to let your agent make changes." and names the scope the tool needs; above that, it names the scope to ask for when the app connects again.
So that the switch can narrow the grant, Postwyre adds postwyre:read to an authorize request that asks for postwyre or a level above read, for an app registered with the levels. The token's scope then lists postwyre:read beside what the app asked for. It allows nothing more.
A workspace_id for a brand you are not in gets the same answer as one that does not exist, no_access, and an id of another brand's post, file, signature, link, rule or inbox item gets not_found or the tool's own refusal, never that brand's data.
| Tool | Scope | Who can call it |
|---|---|---|
list_workspaces | read | Any member |
get_credit_history | read | Any member |
list_accounts | read | Any member |
create_post | send (write for a draft) | Any member |
schedule_posts_bulk | send (write for a draft) | Any member |
find_next_slot | read | Any member |
set_account_posting_times | write | Owner or admin |
set_brand_time_zone | write | Owner or admin |
create_brand | write | Any member |
update_brand | write | Owner or admin |
set_posting_slots | write | Owner or admin |
set_link_tracking | write | Owner or admin |
set_business_type | write | Owner or admin |
set_brand_logo | write | Owner or admin |
remove_brand_logo | write | Owner or admin |
list_members | read | Owner or admin |
invite_member | write | Owner or admin |
cancel_invite | write | Owner or admin |
answer_invite | write | Any member |
change_member_role | write | Owner or admin |
remove_member | write | Owner or admin |
list_signatures | read | Any member |
create_signature | write | Any member |
delete_signature | write | Any member |
create_connect_link | write | Owner or admin |
list_connect_links | read | Owner or admin |
revoke_connect_link | write | Owner or admin |
list_webhooks | read | Owner or admin |
add_webhook | send | Owner or admin |
remove_webhook | write | Owner or admin |
disconnect_account | write | Owner or admin |
list_wordpress_categories | read | Any member |
update_post | send | Any member |
shift_posts | send | Any member |
delete_post | write | Any member |
delete_published_post | send | Any member |
duplicate_post | write | Any member |
retry_post | send | Any member |
set_first_comment | send | Any member |
retry_first_comment | send | Any member |
upload_from_url | write | Any member |
create_upload | write | Any member |
confirm_upload | write | Any member |
get_platform_guide | read | Any member |
set_brand_voice | write | Owner or admin |
get_interview | read | Any member |
save_interview | write | Owner or admin |
list_posts | read | Any member |
get_post_results | read | Any member |
get_post_history | read | Any member |
get_post_stats | read | Any member |
get_stats_summary | read | Any member |
get_weekly_report | read | Any member |
get_setup_checklist | read | Any member |
get_autopilot_setup | read | Any member |
upcoming_post_ideas | read | Any member |
list_pending_approvals | read | Any member |
get_creator_info | read | Any member |
find_mention | read | Any member |
These show only while the deployment has their feature switched on:
| Tool | Scope | Who can call it |
|---|---|---|
report_problem | send | Any member |
confirm_email | send | Any member |
list_inbox | read | Any member |
reply_to_comment | send | Any member |
list_reviews | read | Any member |
reply_to_review | send | Any member |
delete_review_reply | send | Owner or admin |
update_inbox_item | write | Any member |
list_dm_rules | read | Any member |
save_dm_rule | send | Owner or admin |
delete_dm_rule | write | Owner or admin |
send_review_request | send | Any member |
list_review_requests | read | Any member |
answer_review_request | write | Any member |
get_review_request_settings | read | Any member |
update_review_request_settings | write | Owner or admin |
confirm_email, shown only while Postwyre can send email, takes no workspace_id and one optional input, code. It confirms the email address of the person behind the key or sign-in, which Postwyre's other products need before "Continue with Postwyre" works for them. Without code, a 6-digit code goes to the account's own address, never another, and the answer gives sentTo and expiresAt. Ask the person to read you the code, then call again with code; the answer is confirmed and email. The code works once, for 10 minutes, with 5 tries, and only through the same key or app that asked for it, so a code asked for in Settings does not work here. Up to 5 codes an hour and 10 a day. Confirming changes nothing else: sign-ins, keys, connected apps and two-step sign-in stay as they are. A refusal's message starts with its case: already_confirmed (nothing to do), elsewhere (asked for through another key, app or browser), no_code, wrong_code or address_changed. Each call without code sends a new code and replaces the last, so do not repeat it to retry.
Tools [#tools]
Call list_workspaces first. Every other tool needs a workspace_id from it, except get_platform_guide, where it is optional. Each call names its brand, so working in another brand only takes another workspace_id; there is nothing to switch.
Every tool has a title and all four MCP hints set: readOnlyHint, destructiveHint, idempotentHint and openWorldHint. create_post, schedule_posts_bulk, update_post, shift_posts, delete_post, delete_published_post, duplicate_post, retry_post, set_first_comment, retry_first_comment, upload_from_url, create_upload, confirm_upload, set_brand_voice, save_interview, set_brand_time_zone, create_brand, update_brand, invite_member, cancel_invite, answer_invite, change_member_role, remove_member, set_posting_slots, set_link_tracking, set_business_type, set_brand_logo, remove_brand_logo, create_signature, delete_signature, create_connect_link, revoke_connect_link, add_webhook, remove_webhook and disconnect_account change something; the rest only read. update_post, shift_posts, delete_post, delete_published_post, set_brand_voice, save_interview, set_brand_time_zone, update_brand, cancel_invite, change_member_role, remove_member, set_posting_slots, set_link_tracking, set_business_type, set_brand_logo, remove_brand_logo, delete_signature, revoke_connect_link, remove_webhook and disconnect_account have destructiveHint true: update_post replaces a post's text, accounts or files, shift_posts replaces send times, delete_post and delete_published_post remove a post for good, set_brand_voice and save_interview replace the voice in use (the old one stays in its versions), set_brand_time_zone and update_brand replace the brand's zone or name, cancel_invite takes an invite back, change_member_role replaces a teammate's role, remove_member takes someone off the brand, the four brand settings tools replace a saved setting and remove_brand_logo takes the logo off, delete_signature removes a saved signature, revoke_connect_link turns a connect link off for good, remove_webhook removes an endpoint, and disconnect_account deletes an account's saved sign-in. A tool that can send a post to a public platform, take one down (delete_published_post, from Google Business Profile), send to an outside address from then on (add_webhook), fetch from the internet (upload_from_url, set_brand_logo) or ask a platform live (list_accounts with with_boards, which asks Pinterest, find_mention, which asks Bluesky or LinkedIn, and list_wordpress_categories, which asks the WordPress site) has openWorldHint true.
Answers are kept short, so they cost an agent little. A write answers with the post's id, state, time and one short result per account, not the text it was given. A list answers 10 posts to a page with a nextCursor for the next one. Empty fields are left out. get_post_results gives the whole post.
list_workspaces [#list_workspaces]
Takes no input. Returns workspaces, a list of the brands this key can reach, each with id, name, role (the lower of the key's role and yours there), timeZone (the brand's IANA time zone from Settings, or null when none was chosen; such a brand also has warnings, saying its posting times are read in UTC until an owner or admin sets one with set_brand_time_zone or in Settings, Brand), access (paid, trial, comp or none), plan (solo, starter, suite_bundle for the Suite bundle, or pro on a plan bought before Pro was retired; null on a complimentary plan from Postwyre that is none of these, where access is comp; when access is none, the plan the brand has for another Postwyre app alone, such as crm_solo, which does not post, or null when it has no plan or its plan has stopped), planWorkspaceId, credits, the plan's credits left (see Credits), and paymentPaused. paymentPaused is true when the plan's payment failed and its grace days are over (see When a payment fails): no new post can be scheduled or sent until the plan's owner updates the card in Billing and the payment goes through, while access and plan still read the plan's. It is false otherwise, including once a plan has stopped for failed payments, which reads access none. Brands with the same planWorkspaceId share one plan and its monthly limits; access and plan are that plan's, except a plan for another app alone, which covers only the brand it is on. It is null when the plan sits on a brand you are not in. A brand the key is blocked in is left out. A brand whose access is none has no posting plan yet, and posts that send or schedule are refused until it has one. When you, the person behind the key, own that brand and the plan it would run on, it also has planUrl, the page in Postwyre where you start a trial or choose a plan for that brand, even if you have another brand open; pass it on. Only the plan's owner can start or restart a plan, so for anyone else planUrl is left out: ask the brand's owner to start one.
get_credit_history [#get_credit_history]
Input: workspace_id. Returns the credits of the plan the brand is on, the same numbers Billing shows: total, included (monthly credits left this month), includedMonthly, purchased, period (the month, as YYYY-MM in UTC), spendOnXOverage and spendOnXOverageApplies, and history, the latest 20 changes, newest first. Each change has at (ISO 8601), kind (top_up, x_post, ai_text, transcript, suite or refund), credits (negative when spent) and detail, the line Billing shows. Brands on one plan share these numbers, so every brand of the plan answers the same. Any member can call it, with a read only key. It reads only; buying credits and turning spending on stay with the plan's owner in Billing. See Credits.
list_accounts [#list_accounts]
Input: workspace_id, and optionally with_boards (true) and include (["avatarUrl"]). Returns accounts, the brand's connected accounts, each with id, platform, handle, displayName, status, statusReason and createdAt. An X account connected through the brand's own X app also has appKeyProblem when Postwyre can't read that app's saved keys: the sentence the Accounts page shows, to pass on to the person. An owner or admin is told to save the keys again with Replace app keys, and anyone else that a brand admin can. Each account's picture link is long and signed, so avatarUrl comes only with include: ["avatarUrl"]. An account whose status is not active has to be reconnected by a person in the app before it can be posted to. With with_boards true, each active Pinterest account also carries boards, a list of { id, name, privacy } read from Pinterest just then, or boardsError, one sentence naming the account and saying what to do next, if Pinterest would not send them. When the problem is on Postwyre's side and asking again later fixes it, the account also has boardsRetryAfterSeconds, the seconds to wait first. An account with no boards yet gets an empty boards list and boardsNote, a sentence naming the account that says to ask the person to make a board on Pinterest (on https://www.pinterest.com/, Create, then Board) and call list_accounts with with_boards again; Postwyre does not make boards. When Pinterest no longer accepts the account's sign-in, that same answer already shows the account as needs_reconnect, as Accounts does; a slow or failing Pinterest leaves the account as it was. A Pinterest post needs one of those ids as options.boardId on that account. A key cannot connect or disconnect accounts, and no credential is ever returned. A brand with no plan can connect up to 3 accounts, counted across every brand its owner has with no plan, and never X (see Billing). Its posts are sent or scheduled only with requireApproval: true, and never to X. Its answer also has note, a sentence to pass on to the person. For an owner of the brand who also owns its plan it says where to start or restart the plan, and the answer has planUrl too. For anyone else planUrl is left out and the note names who to ask.
create_post [#create_post]
Input. Only workspace_id is required, but a call with no text anywhere and no mediaIds is refused rather than saved as an empty draft. A post needs text and at least one account to be sent, and each account can be listed once:
workspace_idbody: the text of the post, up to 5000 characters. Each platform's own limit is checked when the post is scheduled or sent. Emoji go to every platform as written: send them as they are, in UTF-8 or as JSON escapes, and they arrive whole (ZWJ sequences, skin tones and flags included). X counts an emoji as 2, Threads as its size in bytes, and TikTok, Telegram and Discord as 2 or more; Emoji has the table. An @name links an account only when it is also listed in that platform'soptions.mentions(below); Mentions and tags says what each platform does with one.accounts: the accounts to post to, up to 25, each{ "accountId": "..." }from list_accounts. Addbodyto give one account its own text, andoptionsfor platform options.action:draft(the default),scheduleornow. A draft is saved and sent nowhere.nowpublishes before the call returns.scheduledAt: when to send a scheduled post, ISO 8601 with an offset, between now and 366 days ahead. Needed withschedule.platformOverrides: text and fields per platform, for example{ "bluesky": { "body": "..." } }. An account's ownbodywins over this, and this wins overbody. A platform'soptionscarry its own fields.postTypepicks the kind of post: forinstagram,post,carousel(2 to 4 files),reelorstory; forfacebook,post,reel(a vertical video of 3 to 90 seconds) orstory; foryoutube,videoorshort(a vertical or square video of 3 minutes or less); fortiktok,video. Leave it out for the platform's usual post: on Instagram a picture is then a feed post and a video a Reel. A type the platform does not take is refused withvalidation_error: inplatformOverrideswhen the post is saved, and in an account's ownoptionswhen it is scheduled or sent. TikTok photo posts and Stories are refused with the reason. A Story shows no text, so its text is not sent. Foryoutube,title(up to 100 characters; without it the first line of the text is the title),tags(a list, up to 500 characters in all),categoryId,madeForKids(true or false),privacyStatus(public,unlistedorprivate; a new post without it is public, and an update without it keeps the post's own) andchapters(a list like[{ "time": "0:00", "title": "Intro" }, { "time": "2:30", "title": "Setup" }, { "time": "9:05", "title": "Results" }]: at least 3, the first at 0:00, in order, each at least 10 seconds long; Postwyre writes them at the end of the description, and refuses them when the text already has its own list starting at 0:00), with the text as the description; forinstagram,altText(a picture only),userTags(people tagged on a single feed picture, not a carousel, Story or Reel: up to 20, each{ "username": "their.handle", "x": 0.5, "y": 0.5 }, a public Instagram username and where the tag sits, with x and y from 0 to 1 counted from the picture's top left corner) andshareToFeed(a Reel only),storyFit(a Story picture only:blur, the default, orcolourlays a picture that is not 9:16 whole on a 1080 by 1920 screen over a blur of itself or its main colour;offsends it as it is and Instagram decides how it fills the screen), and on a Reel one cover, eitherthumbOffsetMs(the frame that many milliseconds into the video, before its end),coverMediaId(the id of a picture inmediaIds, which is then the cover and not part of the Reel, though other platforms in the post still get it) orcoverUrl(a picture at a public https:// link), andtrialReel(manualorperformance: a trial Reel Instagram shows to people who don't follow the account first, then shared to followers by hand in the Instagram app or automatically when it performs well; it takes noshareToFeed: true). Instagram works only for the people Meta lists as Postwyre's app testers until Meta approves Postwyre's app; forbluesky,replies(a thread: a list of up to 9 texts, each held to Bluesky's limits and sent right after the post, each under the one before; set it here, not in one account'soptions, and Threads and X refuse it with the reason until their replies are switched on); forfacebook,link(a post without files); forgooglebusiness(Google Business Profile),postTypepost(an update),eventoroffer,ctaType(BOOK,ORDER,SHOP,LEARN_MORE,SIGN_UPorCALL; not on an offer, which gets Google's own View offer button) andctaUrl(the button's link, left out forCALL), and on an event or offereventTitle,eventStartandeventEnd(2026-11-20, or2026-11-20T18:30with a time, in the location's own time), and on an offercouponCode,redeemUrlandterms, with one JPEG or PNG at most and no video; fordiscord, an embed (embedTitle,embedDescription,embedUrl,embedColoras#RRGGBB,embedImageMediaId),suppressEmbeds,silent,spoiler, andthreadId(an existing thread) orthreadName(a new post in a forum channel); fortelegram,formatting(true reads**bold**,__italic__,~~strikethrough~~,||spoiler||, code between backticks and[words](https://link); bold, italic, strikethrough and spoiler marks glued to a word, and bare web addresses, stay as typed),silent,linkPreview(false turns it off, on a post without files),protectContent,captionAboveandspoilerMedia; forwhop,title(up to 255 characters),pinned,mention(notifies the forum's members),visibility(members_onlyorglobally_visible; left out, the forum's own setting decides) andpollOptions(2 to 10 different choices, up to 100 characters each), with the text sent as Markdown and each Whop account being one forum; forwordpress,title(up to 200 characters; without it the first line of the text is the title, and a first line written as# Titleis not repeated),excerpt(up to 500 characters),slug(lower case letters, digits and hyphens),status(publish,draft,pending,privateorfuture;publishwhen left out),publishAt(withfuture: an ISO time with a zone, like2026-11-02T09:00:00-05:00; a time already past publishes at once),categories(up to 20 ids or names the site has) andtags(up to 30 ids or names; a tag the site lacks is made, a missing category is refused), andauthorId(a user on the site, only for a user who may edit others' posts), with the text sent as Markdown, up to one picture as the featured image, and each WordPress account being one site and one user on it. A post to Google Business Profile, Pinterest, TikTok or YouTube that a key or the connector asks to send is held for a person to approve, as ifrequireApprovalwere set. Fortiktok,privacyLevelandconsentare required. get_platform_guide lists every platform's options. A field of the wrong type is refused withvalidation_error, and a platform is never sent another platform's fields.mentions, in any platform'soptionsinplatformOverrides(not on one account): up to 20 accounts to @mention, each a handle like"alice.bsky.social"or{ "handle", "id", "name", "kind" }. Write@handlein that platform's text where each mention goes. See Mentions and tags for what each platform does with one; find_mention looks one up first.- Pinterest: put
optionson the Pinterest account inaccounts:boardId(required), and optionallytitle(up to 100 characters),link,altText(up to 500 characters) and, for a video,coverFrameSeconds; the post text is the Pin's description. Pinterest asks that a person chooses each Pin, so a post to Pinterest created through a key is held for approval, and a draft is sent from the app. mediaIds: ids from upload_from_url, in the order they should appear, up to 4.mediaAltText: alt text for each picture, by id frommediaIds, for example{ "<mediaId>": "A red bike against a brick wall" }. It goes to X (up to 1,000 characters), LinkedIn (4,086), Facebook (each picture's own), Threads (1,000, each picture's own), Discord (1,024), the featured picture on WordPress, Bluesky (2,000, each picture's own), Instagram (1,000: each carousel picture's own, and a single picture's when Instagram's ownaltTextoption is empty) and Pinterest (500) when its ownaltTextoption is empty. TikTok, YouTube, Telegram, Whop and Google Business Profile take none, so it is kept and not sent there. Each limit is checked when the post is scheduled or sent, and a post over one is refused with the platform and the picture named. Alt text goes on pictures, and on a video for Bluesky (2,000 characters); no other platform is sent a video's alt text. Every reply listspicturesWithoutAltText, the pictures that have none.idempotencyKey: 8 to 100 characters, not starting withbulk:,duplicate:orrepeat:. Send the same key when you retry, and the call returns the post it already made withreplayedset to true, and never posts twice. The same key sent with a different post (other text, accounts, files, action, time,requireApproval,personApproved,signature_idorrepeat) is refused withconflict; use a new key for a new post.requireApproval:trueholds the post until a person in the brand approves it. Withscheduleornow, the post is checked as if it were being sent, then waits with statuspending_approval; nothing is sent or counted until a person approves it from the link inapproval.url. Withdraft, it is a review hold: accounts can be left out andscheduledAtis the time you propose. Approving it queues it at that time when it has accounts and the time is still ahead, and otherwise keeps it as a draft that only a person can change or send. See Approvals and webhooks.selfReview: withrequireApproval, your own check of the post:{ "verdict": "pass", "reasons": ["Matches the brand voice", "The link is our pricing page"] },passorfailand 1 to 5 reasons of up to 300 characters each. When the brand has the quality bar on, a held post withscheduleornowgoes out on its own only when the bar's checks pass and your verdict ispass; otherwise it waits, andapproval.qualityBarhasoutcomeandreasons. See Quality bar.personApproved:trueonly after you showed the person this exact post (text, files, accounts and time) and they said yes; never on your own judgment, and never on a run with nobody there. Ascheduleornowpost to YouTube, Google Business Profile, Pinterest or LinkedIn then goes out as asked, and Postwyre records the yes on the post (who, through which key or app, and when; get_post_history shows it). Without it, such a post waits aspending_approval, and the answer'snotesays what to do. A TikTok post always waits for the person to approve it in Postwyre. See Posts that need your yes.repeat: sends the post again every few days, for example{ "everyDays": 7, "times": 4 }.everyDaysis 1 to 90.timesis how many more times it goes out after the first, 1 to 12;until(ISO 8601 with an offset) ends it on a date instead, and still stops at 12. Send at least one of the two. See Repeat a post for the platforms that take it and how each copy is counted. It cannot be combined withrequireApproval.signature_id: a signature id from list_signatures. Its text goes at the end ofbodyand of everybodyof its own inplatformOverridesandaccounts, after a blank line. An empty text stays empty, so a post is never the signature alone, except that a post of files with no text gets it as the caption. Each platform's length is checked with it on, so a signature that takes an X post past X's limit is refused with the account and the reason. Left out, no signature is added. An id from another brand is refused withnot_found, the same as one that does not exist.
Returns id, status (draft, pending_approval, not_approved, scheduled, publishing, published, partial or failed), scheduledAt, mediaIds when the post has files, picturesWithoutAltText when a picture has no alt text, approval when requireApproval was set, repeat when the post repeats (everyDays, times, until, nextAt, the time the next copy goes out, done, how many copies were sent or skipped, and endedReason once it ended), deliveries, one per account, replayed, and warnings when an account in the post is also connected under another brand you are in, since a post to both brands goes out twice from that account. A warning never stops the post. Each delivery has id, platform, accountHandle, postType and status, and platformPostUrl once published, or errorCode and errorMessage if it failed. A draft has no time, so each of its deliveries has status not_scheduled: nothing goes out until the post is scheduled. A post a person rejected, or whose approval link ran out, has not_approved instead, and never goes out. approval has status (pending, approved, rejected or expired), action, expiresAt and url, the link to send a person, while it can still be decided. A replay returns the same link. A brand can keep up to 200 drafts and posts waiting for approval, counted together. Before a plan starts, that limit covers every brand its owner has with no plan. While scheduling is paused, schedule is refused with an answer that starts "Scheduling is paused for now." and you can still use draft or now.
A post held on a brand with no plan also carries note, a sentence to pass on saying nothing was sent and what lets it go out. For an owner of the brand who also owns its plan the note names the plan page and the answer has planUrl. For anyone else planUrl is left out and the note names who to ask.
schedule_posts_bulk [#schedule_posts_bulk]
Makes up to 50 posts in one call, each as create_post makes one, so a week or a month of posts goes in at once. Input:
workspace_idposts: 1 to 50 posts, each withbody,accounts,platformOverrides,mediaIds,mediaAltText,scheduledAtandsignature_idas in create_post. Any other field on a post is refused. A post with no text and no files is refused before anything is made. Asignature_idthe brand does not have, or one from another brand, fails that post alone withnot_found; the rest still go in.action:schedule(the default) ordraft. There is nonow: a batch is sent by the scheduler, never inside the call.idempotencyKey: 8 to 80 characters. Each post is made with this key and its place in the list, so when you send the same call again, the posts it already made come back withreplayedset to true, are not counted again, and only the ones that failed are tried again. Send the same list: a post whose text or accounts differ from the one first made at its place is refused withconflict, so use a new key for a new list.requireApproval:trueholds every post until a person in the brand approves it, as in create_post. Each post may carry its ownselfReview, as in create_post.
With schedule, a post with no scheduledAt goes at the brand's next free posting time: 9:00 and 17:00 every day, in the brand's time zone (UTC when the brand has none set), at least 10 minutes from now, and never at a minute another of the brand's posts already waits at. One such call runs at a time per brand, so two at once never give two posts the same time; a call that waits more than 20 seconds for another is refused with quota_exceeded and a retry time, and sending it again with the same idempotencyKey is safe. Posts with their own scheduledAt keep it. Instagram takes 50 posts and Threads 250 per account in any 24 hours; a post that would go past that is refused with validation_error, and the rest still go in. TikTok's limit varies by creator, so a busy TikTok day comes back as a warning instead.
Each post is made on its own: one that is refused (over the plan, a file a platform does not take, a missing account) does not stop the others. Returns timeZone, batchUrl when posts are held with requireApproval (one page where a person approves them all), made, failed and results, one per post in the order sent: index, ok, and either post (as create_post returns it) with replayed and any warnings, or error with its code and message. A post's warnings include the same note create_post gives when one of its accounts is also connected under another brand you are in.
find_next_slot [#find_next_slot]
Input: workspace_id, and optionally count (1 to 10, 3 when left out) and account_ids (ids from list_accounts, up to 20). Returns timeZone and slots, the brand's next free posting times, soonest first, starting with any still left today in the brand's time zone: the times schedule_posts_bulk gives a post with no scheduledAt, worked out by the same code. Each slot has at (ISO 8601 with the brand's offset, ready for scheduledAt), utc and label (for a person, in the brand's time zone). With account_ids, slots are the times for one post to all of those accounts: their own posting times when they share them (see set_account_posting_times), else the brand's, and warnings then says so. A slot can also carry warnings, the daily-limit notes for those accounts, counting the slots before it as if each got a post. accounts lists each account in the order asked, with accountId, handle, platform, usesBrandTimes, postingTimes (its own days and times, or null) and slots, that account's own next free times with its own daily-limit notes. Each account's list is read on its own, so two accounts with the same times show the same first time; to place posts to several accounts without sharing a minute, send them in one schedule_posts_bulk with no times. An account id not in the brand is refused with not_found. note says so when no posting time is left today (for example "No posting times are left today. The next is tomorrow at 9:00 AM. Any other time works as scheduledAt."), and when fewer times were left than asked for; any time you choose yourself still works as scheduledAt. warnings says so when the brand has no time zone set, so its times are read in UTC. The call holds nothing and changes nothing, so the same call answers the same until a post takes a time or the clock passes one.
It only reads, so it holds nothing: the time is still free for anyone until a post takes it. Calling it again answers the same times until a post takes or frees a time, the posting times change, or the clock passes one. Then create the post with create_post and that at as scheduledAt.
set_account_posting_times [#set_account_posting_times]
Input: workspace_id, account_id (from list_accounts) and posting_times: { "days": [0, 2, 4], "times": ["19:00"] }, where days are weekdays, 0 for Monday to 6 for Sunday, and times are times of day as HH:MM, 24 hour, up to 12. Or posting_times null to go back to the brand's times, which every account uses until someone changes it. Owners and admins only: a key acts at the lower of its own role and its maker's, and a connector sign-in acts at your own role, so a member's is refused. The times are read in the brand's time zone. From then on, a post to that account alone that schedule_posts_bulk gives a time takes one of these, and find_next_slot answers them; a post to several accounts with different times takes the brand's, with a warning. Returns accountId, usesBrandTimes, slots (the account's own times, or null) and changed. Sending what is already saved changes nothing and answers changed false. With a key, PUT /api/accounts/{accountId}/posting-slots does the same.
set_brand_time_zone [#set_brand_time_zone]
Input: workspace_id and time_zone, an IANA zone name such as America/New_York or Europe/London, or null to clear it (posting times are then read in UTC). A name that is not a zone is refused. Owners and admins only: a key acts at the lower of its own role and its maker's, and a Claude.ai or ChatGPT sign-in counts as you, so it works when you are an owner or admin of the brand. A member is refused. Returns workspaceId, timeZone (as saved, in the zone's own spelling), previous, changed, scheduledPostsKept and note. A post already scheduled keeps its exact send time; scheduledPostsKept counts the posts still to send, scheduled or waiting for approval, and note says so in a sentence. Posting times, find_next_slot and a bulk post with no time read the new zone from the next call on. Sending the zone already saved changes nothing and answers changed false. With a key, PUT /api/brands/{id}/time-zone with { "timeZone": "America/New_York" } does the same.
create_brand [#create_brand]
Input: name. Makes a brand with you, the person behind the key or sign-in, as its owner, as Create brand in the app does. It joins the plan of a brand you own when that plan has room for another (see Billing); otherwise it has no plan, and the answer carries note to pass on, with planUrl when you own the plan it would run on. Returns workspaceId, name, access, plan and paymentPaused, read as in list_workspaces. A login can make a few brands a day. The same name again within a day answers the brand it made, with replayed true, so a retry never makes two.
update_brand [#update_brand]
Input: workspace_id, and name, time_zone or both. Renames the brand and sets its time zone, as Settings, Brand does; time_zone works as in set_brand_time_zone and comes back as timeZone, that tool's answer. Owners and admins only, as for the time zone. Returns workspaceId, and name and timeZone for what was sent.
list_members [#list_members]
Input: workspace_id. Returns members, everyone on the brand's team, each with userId, name, email, role (owner, admin or member) and joinedAt, and invites, people invited who have not answered yet, each with email, role, expiresAt and usable, and seats: used, the plan's teammates in use, and limit, the plan's room, both counted across every brand on the plan with the owner and open invites (see Billing). usable is false for an invite no one can accept any more, because no login has that email now (the person changed theirs) or whoever sent it is no longer an owner or admin of the brand; it still counts in seats.used until cancel_invite takes it back or it lapses, and nothing is taken back for you. At the limit seats.full holds the sentence invite_member refuses with, and seats.stuckInvitesOn lists the plan's other brands, among those you are an owner or admin of, where an invite no one can accept holds a place, each with workspaceId and brand (its name), leaving out any brand this key or app is blocked from; cancel_invite on that brand frees the place. Owners and admins only: a key acts at the lower of its own role and its maker's, and a Claude.ai or ChatGPT sign-in at your own role in the brand. A member is refused.
invite_member [#invite_member]
Input: workspace_id, email, name and optionally role (member when left out, or admin). Makes a login for someone new and adds them to the brand, as Add teammate on the Team page does. The agent sets no password: the answer has member, signInUrl and note, and the person signs in at signInUrl with that email and a sign-in code sent to it, as in Sign in. An address that already has a Postwyre login gets an invite instead: nothing is made, the answer has pending (email, role, expiresAt), acceptUrl and note, and they join at that role when they accept, signed in at acceptUrl or through their own agent with answer_invite. The answer's note says whether Postwyre emailed them or you should tell them yourself. An invite lasts 14 days, and inviting the same address again replaces it. Someone already on the brand is refused with conflict, and an address sign-up does not allow yet with forbidden. When every teammate the plan has room for is taken, a new person is refused with quota_exceeded and the same sentence the Team page shows, which says what to do next; someone already on another of the plan's brands, or an invite renewed, takes no new room. Up to 10 an hour per person. Owners and admins only, as for list_members.
Postwyre emails the person you add or invite once: who added them, which brand, and a link to sign in. The link holds no code or password, so they still sign in with a code sent to their own address. An invite you take back, or one that has lapsed, shows nothing to join.
cancel_invite [#cancel_invite]
Input: workspace_id and email (from list_members invites). Takes back an invite that has not been accepted. Returns email and removed; an invite already answered, taken back or never sent answers removed false. Owners and admins only, as for list_members.
answer_invite [#answer_invite]
Input: invited_workspace_id (an invite's workspaceId from list_workspaces) and accept, true to join or false to decline. list_workspaces lists invites, the brands that asked the person behind the key or sign-in to join, each with workspaceId, name, role, invitedBy and expiresAt, once that person's email address is confirmed. Accepting adds them at the invited role; either answer uses the invite up. Returns workspaceId, joined and, when joined, role. An invite that does not exist, has run out, was taken back, was sent to another address, or was sent by someone who is no longer an owner or admin of the brand is not_found; already on the brand is conflict. Only the invited person's own key or sign-in can answer, so ask them first.
change_member_role [#change_member_role]
Input: workspace_id, user_id (from list_members) and role, admin or member. Returns userId, role and changed; the same role again changes nothing and answers changed false. The owner's role and your own are refused with conflict: ownership moves only in Settings, Brand. Only the owner can change an admin's role; an admin who tries gets forbidden, and can still make a member an admin. Someone not on this brand is not_found. Owners and admins only, as for list_members.
remove_member [#remove_member]
Input: workspace_id and user_id (from list_members). Takes them off this brand: their keys and connected apps lose it on their next call, and their login and any other brands stay. Returns userId and removed. The owner and you yourself are refused with conflict, and only the owner can remove an admin (forbidden for an admin); someone not on the brand, or already removed, is not_found. Owners and admins only, as for list_members.
Each change these make is recorded on the login that made it with the brand, the person it touched and the key or app that made it; an answer to an invite is recorded on the invited person's login.
set_posting_slots [#set_posting_slots]
Input: workspace_id and posting_times: { "days": [0, 2, 4], "times": ["09:00", "17:30"] }, where days are weekdays, 0 for Monday to 6 for Sunday, and times are times of day as HH:MM, 24 hour, up to 12. Or posting_times null to go back to the default, every day at 9:00 and 17:00. These are the brand's posting times from Settings, Brand: schedule_posts_bulk gives a post with no scheduledAt one of them, and find_next_slot answers them, in the brand's time zone. An account with its own times (set_account_posting_times) keeps those. Days and times are sorted and repeats dropped. A list Settings would refuse is refused with the same sentence. Returns workspaceId, postingTimes (as saved, or the default for null) and changed. Sending what is already saved changes nothing and answers changed false.
set_link_tracking [#set_link_tracking]
Input: workspace_id, utm and short_links, each true or false. utm adds utm_source and utm_medium to each link, and short_links sends each link as a short link that counts clicks, as the Link tracking switches in Settings, Brand do. They apply to posts sent from then on; Instagram and TikTok links are left as written. Returns workspaceId, utm, shortLinks and changed. Sending what is already saved changes nothing and answers changed false.
set_business_type [#set_business_type]
Input: workspace_id and business_type: one of restaurants, salons-spas, real-estate, home-services, local-business or creators, or null to clear it. upcoming_post_ideas and the ideas in Compose follow it. Any other value is refused with the same sentence as Settings, which lists the ones it takes. Returns workspaceId, businessType and changed. The same type again answers changed false.
set_brand_logo [#set_brand_logo]
Input: workspace_id and one of media_id (a picture already in this brand, from upload_from_url, or from create_upload and confirm_upload) or url (a public https address of the picture). Never the file's bytes in the call. A PNG, JPEG, WebP or GIF under 4 MB; Postwyre crops it to the centre square, stores it as a 512 pixel WebP and drops its metadata, as Settings, Brand does. An address is fetched with the same checks as upload_from_url: https only, and an address inside a private network is refused, at every redirect too. A file that is not a picture, or is too large, is refused and the old logo stays. Another brand's media_id is not_found. Returns workspaceId, logoUrl and changed. Each call stores a new file, so it always answers changed true.
remove_brand_logo [#remove_brand_logo]
Input: workspace_id. Takes the logo off; the brand switcher shows the picture of its first connected account, or its initial, instead. Returns workspaceId, logoUrl (null) and changed. A brand with no logo answers changed false.
These five are for owners and admins only: a key acts at the lower of its own role and its maker's, and a Claude.ai or ChatGPT sign-in at your own role in the brand, so a member is refused either way. They call the same code as Settings, Brand, and each change is recorded on your login with the brand, what changed and the key or app that made it. A call that changes nothing records nothing.
list_signatures [#list_signatures]
Input: workspace_id. Returns signatures, the brand's saved signatures, each with id, name and text, by name.
create_signature [#create_signature]
Input: workspace_id, name (up to 60 characters) and text (up to 500 characters). Saves a signature for the brand and returns its id, name, text and replayed. A brand keeps up to 20. Sending the same name and text again returns the saved one with replayed true and makes nothing new; the same name with other text is refused with conflict.
delete_signature [#delete_signature]
Input: workspace_id and signature_id. Deletes the signature and returns deleted. Posts that already have its text keep it. A signature already gone, or one from another brand, answers deleted false.
create_connect_link [#create_connect_link]
Input: workspace_id, and optionally expires_in_days (1 to 30, 7 when left out) and label (who it is for, up to 80 characters, shown only to the brand's team). Makes a link the brand's client opens to connect their own social accounts to this brand, signing in on each platform, with no Postwyre login; see Let a client connect their own accounts. Returns id, label, status, expiresAt, createdAt, createdBy, connected and url. The url is in this answer only, since Postwyre keeps only a hash of it: give it to the person to send on. Postwyre sends nothing. Needs an owner or admin key; a sign-in from Claude.ai or ChatGPT acts as a member, so it is refused. Each call makes a new link, up to 20 on at once per brand, or up to 20 across every brand its owner has with no plan. A brand with no plan can make links too: a link then never offers X, and what it connects counts toward the 3 accounts allowed before a plan (see Billing). While no platform is open to connect from a link, it makes nothing and answers conflict with a sentence that says so and where those platforms are listed.
list_connect_links [#list_connect_links]
Input: workspace_id. Returns links, newest first, each with id, label, status (active, expired, revoked, or off when its maker is no longer an owner or admin), expiresAt, createdAt, revokedAt, createdBy and connected (how many accounts it connected). Never the url. Needs owner or admin.
revoke_connect_link [#revoke_connect_link]
Input: workspace_id and link_id. Turns the link off and returns revoked; a link already off answers revoked false. Its page then says the link is off, and a sign-in still open from it does not finish. Accounts it connected stay connected. Another brand's link answers not_found. Needs owner or admin.
update_post [#update_post]
Input: workspace_id and post_id, and any of body, accounts, platformOverrides, mediaIds, mediaAltText, action, scheduledAt, repeat, signature_id and personApproved, as in create_post. On a post to YouTube, Google Business Profile, Pinterest or LinkedIn, a change to its text, files, accounts or time, or sending a draft, needs personApproved again after you show the person the post as it will go out; without it the call answers conflict and the post stays as it was. A field you send replaces the old one; one you leave out stays as it is. In mediaAltText, a picture you leave out keeps its alt text, and null clears it. It goes through the same checks as Save in the app.
signature_id puts the signature at the end of the texts you send in the same call: body, and each body of its own in platformOverrides and accounts. A text you do not send keeps what it has, so send every text you want signed. Sending the same text and signature_id twice stores the same text, never the signature twice. A call with signature_id and none of those three fields is refused with validation_error, and an id from another brand with not_found, the same as one that does not exist.
- Edit a draft or a scheduled post: send the new fields.
- Reschedule: send
scheduledAtfor a scheduled post. - Send a draft:
actionschedulewithscheduledAt, ornow. - Back to draft:
actiondrafton a scheduled post. Its monthly count is given back. - Turn a repeat off:
repeatnull, on its own. It works on a post that already went out too: no more copies are sent, copies still waiting to go are deleted, and the ones that went out stay. Sending it twice changes nothing.
A post that has started sending, one waiting for approval, and one that was approved cannot be changed, and answer conflict. Sending or rescheduling a post to Google Business Profile or Pinterest answers conflict too: those platforms need a person to send each post, so leave it as a draft and send it from Postwyre. Changing the accounts or files of a scheduled post counts it again under the plan you have now. Returns the post as create_post does.
shift_posts [#shift_posts]
Input: workspace_id, post_ids (1 to 50 post ids, each once), days (a whole number from -30 to 30, not 0; negative moves earlier) and idempotency_key (8 to 80 characters). Moves each scheduled post that many days, keeping its time of day in the brand's time zone (so 9:00 stays 9:00 across a daylight saving change), as Select and Move on the calendar does, and through the same code: each post gets the same checks as update_post, and the daily limits are read for the whole list at once. Any member can call it, with a key that can send, as for update_post, since moving a post earlier sends it sooner.
Each post answers on its own in results, in the order sent: postId, ok, and from and to when it moved, or error and message when it stayed. A draft (it has no send time; give it one with update_post), a post that has started sending, a post waiting for approval or approved, another brand's post (not_found, the same as a post that does not exist) and a post whose new time would already have passed, or be less than two minutes away, stay where they are. The posts cannot move in one all-or-nothing step, because each change is saved on its own, so read moved, notMoved and complete (true only when every post moved) rather than assuming they all went. The same idempotency_key again within a day answers the first call's result with replayed true and moves nothing twice, also after a call an error stopped partway, which answers what moved; the same key with other posts or days is refused with conflict. Each call is recorded on your login with the brand, the key or app, and how many posts moved.
delete_post [#delete_post]
Input: workspace_id and post_id. Deletes a draft, a post waiting for approval (which withdraws the request) or a scheduled post that has not started sending. A scheduled post's monthly count is given back. A finished post whose every account failed can be deleted too. It cannot be undone. A post with a copy that went out answers conflict and names delete_published_post; one still sending answers conflict too. Returns deleted, the post's id, and an empty platforms.
delete_published_post [#delete_published_post]
Input: workspace_id, post_id and remove_from_platform, which must be sent as true or false.
With true, it takes a sent post down from every platform it went to that Postwyre can remove from: X, LinkedIn (profiles and Pages), Facebook Pages, Pinterest, Discord, Telegram and Google Business Profile, the same as Remove in the Library. The post stays in the history, each copy marked Removed. Returns post_id, message and platforms, one entry per copy that went out, each with deliveryId, platform, accountHandle, status, removed and message. status is removed, already_removed (taken down before; the platform is not asked again), not_removable (the message says where to delete it, such as "Delete it in the TikTok app.") or failed (the message says why, such as a rate limit or an account that needs reconnecting). A platform that no longer has the post counts as removed. Calling it again changes nothing and answers already_removed for every copy already down, so a retry is safe. Only an owner or admin of the brand can: a member's key, a key made without Can change the brand voice turned on, and a sign-in by a member get forbidden, with nothing asked of any platform. A post with no copy out answers conflict and names delete_post; one still sending answers conflict too. A post whose first comment is posting right now answers comment_sending, with nothing asked of any platform; call again in a few minutes, once the comment has gone out or stopped. One another request is removing right now answers conflict; call again in a minute.
With false, it deletes Postwyre's record and leaves the post live, for a finished post whose copies that went out are all on Google Business Profile; any other sent post stays in the history and answers conflict. Returns deleted, the post's id, and an empty platforms.
Neither can be undone and neither gives the monthly count back, so ask the user first.
duplicate_post [#duplicate_post]
Input: workspace_id, post_id, and optionally idempotency_key (8 to 100 characters). Copies any post, sent or not, into a new draft with the same text, each platform's text and settings, the same accounts and copies of its files, as Duplicate does in the app. Nothing is sent. An account that needs reconnecting is left out and counted in accountsLeftOut. Send the same idempotency_key on a retry and you get the copy the first call made, with replayed true and the accountsLeftOut the first call gave, and no second copy is made. That still works after the original post is deleted: the answer is the first copy, with sourceDeleted true. Without a copy to hand back, a deleted post answers not_found and nothing is copied. Returns the new draft as create_post does, plus accountsLeftOut and replayed.
retry_post [#retry_post]
Input: workspace_id, post_id, and optionally delivery_id to retry one account's result. Sends every failed result of the post again, before the call returns. Each retry counts its media again. A post older than 30 days, one that was never approved, or one to Google Business Profile or Pinterest answers conflict. Returns the post as create_post does.
set_first_comment [#set_first_comment]
Input: workspace_id, post_id, platform (linkedin or bluesky), text (the comment, or null to remove it) and optionally delay_minutes: 0 (right after the post, the default), 5, 15 or 60. Sets the first comment on a draft or scheduled post for that platform's accounts, the same as the First comment box in Compose, and leaves the rest of the post as it was. A post that has started sending answers conflict, and so does a post someone changed between the moment Postwyre read it and the moment it saved the comment; that change is kept, so call again. Sending the same values twice changes nothing. The same fields go in create_post and update_post as firstComment and firstCommentDelayMinutes in that platform's options. Once the post is out, each result in get_post_results has a comment with its status (waiting, sending, posted or failed), dueAt, url and errorMessage. While a comment waits for another try, errorMessage is the same sentence the app shows, ending with "Postwyre will try again.", and dueAt says when. Once that time has passed and the comment has not been sent yet, dueAt is null and errorMessage says it goes out on Postwyre's next run. While posting to that platform is switched off, errorCode is platform_off and dueAt is null: the comment goes out on the next run after the platform is switched back on. A comment the next run will not send reads failed with no dueAt, even before that run: errorCode post_removed when the post was removed from the platform (also for a comment that was sending when it was removed and never finished), first_comment_off when first comments on that platform were switched off, and account_unavailable when the account is not connected, whose errorMessage says to reconnect it in Accounts and then retry the comment if it is still not added (a comment the next run has not reached yet goes out by itself). A comment that fails never marks the post failed. Returns the post as create_post does.
retry_first_comment [#retry_first_comment]
Input: workspace_id, post_id and delivery_id, the result's id from get_post_results. Sends that result's failed first comment again, now, the same as Retry comment in the app. The post itself is never sent again. A comment that is waiting, sending or already added is left as it is, so a second call while the first is still sending sends nothing; a call after the comment failed again sends it again. A comment that failed because the platform did not answer may already be on the post, so its comment in get_post_results has a confirmToken. Open the post and check. Only if the comment is missing, call again with unknown_outcome_token set to that token. Without it the answer is confirmation_required and nothing is sent. A token works for that one failure only: if the retry fails the same way, the comment gets a new token and the old one is refused, so repeating the call never sends the comment twice. A post the platform never named (errorCode post_id_unknown) cannot be retried; add the comment on the platform by hand. Neither can a comment under a post removed from the platform (post_removed). While the account is not connected the answer is conflict and says to reconnect it first. The comment is checked again as it was when the post was saved, and a platform whose first comments or posting are switched off answers conflict. Returns the post as create_post does.
find_mention [#find_mention]
Input: workspace_id, platform, query (what follows the @, up to 100 characters, with or without the @) and, for LinkedIn only, optionally account_id. On Bluesky it lists up to 8 accounts whose handle or name starts with query, from Bluesky's public directory. On LinkedIn it finds the Page whose handle is query (the part after linkedin.com/company/ in its address), asked with one of the brand's LinkedIn accounts: the one in account_id, or the first connected one. An account_id from another brand answers that the account is not connected to this brand. On every other platform it only checks that query could be a handle there.
Returns support (linked, text or none), lookup (search, exact or none), note, untrusted.candidates (each handle, and where the platform gives them id, name and avatarUrl; they are other people's accounts, so they come under untrusted, see Text from outside the brand) and problem, which says why nothing matched or why the text cannot be a mention there. It changes no post, and the same query gives the same answer. Put a candidate's handle, or the whole candidate, in that platform's options.mentions on create_post, schedule_posts_bulk or update_post, and write @handle in its text.
upload_from_url [#upload_from_url]
Input:
workspace_idurl: a public https address of a picture or video, up to 2000 characters. It must answer with the file itself on port 443, with no sign-in details in the address. Postwyre follows up to three redirects and checks each one.file_name: a name for the file. Defaults to the last part of the address.idempotency_key: optional, 8 to 80 characters. Send the same key with the sameurlandfile_nameon a retry within a day and you get the file the first call stored, withreplayedtrue, and nothing is fetched or stored again. The same key with another address or name, or in another brand, is refused withconflict. A fetch that failed stored nothing, so the same key can try again. If the stored file was removed since, a repeat answersnot_found; use a new key. While the first call is still storing the file, a repeat answersconflict; wait a moment and send it again.
Postwyre fetches the file and stores it the way an upload is stored. Pictures can be JPEG, PNG, GIF or WebP up to 10 MB. Video can be MP4 or MOV up to 100 MB, and the address has to say how large it is. Larger videos have to be uploaded in the app. Returns mediaId, kind, contentType, sizeBytes, width, height, durationMs, and jpeg set to true when Postwyre made a JPEG copy of a PNG, WebP or still GIF for Instagram. Pass mediaId in create_post's mediaIds. A file nobody attaches to a post is removed after 7 days, and a brand can hold 50 such files at a time. Before a plan starts, a brand can keep up to 10 pictures and videos taking up to 100 MB, counted across every brand its owner has with no plan, and past that it is refused with setup_required. Past the 50 waiting files, or past its plan's media storage allowance, it is refused with conflict.
Pictures and video can only be attached once a platform that takes them is switched on. Until then upload_from_url answers not_configured. Bluesky takes up to 4 pictures (JPEG, PNG or WebP, 2 MB each) with their alt text, or one MP4 video of up to 300 MB and 10 minutes with its alt text. upload_from_url takes video up to 100 MB, so use create_upload for a larger one.
create_upload [#create_upload]
Input: workspace_id, file_name, content_type and size_bytes. For a file on the agent's own machine, the way the app uploads one. Returns mediaId, uploadUrl and kind. PUT the file's bytes to uploadUrl with the same Content-Type within 10 minutes, then call confirm_upload. Pictures can be up to 10 MB and video up to 512 MB here. The same plan, storage and waiting-file limits hold as for upload_from_url. With the optional idempotency_key (8 to 80 characters), a retry within a day with the same key, name, type and size answers the same mediaId with replayed true and starts no second file. It comes with a new uploadUrl while the bytes are still to come, and with ready true and no uploadUrl once confirm_upload has checked them. The same key with another file, or in another brand, is refused with conflict.
confirm_upload [#confirm_upload]
Input: workspace_id and media_id. Checks the uploaded file is there at the size announced, reads its size, shape and length from the file itself, and makes it usable in mediaIds. Returns the file as upload_from_url does. Before the file has arrived it answers conflict; call it again once the PUT is done. Calling it on a file already confirmed returns the file again.
get_platform_guide [#get_platform_guide]
Input: optionally platform, such as instagram, post_type, such as reel, and workspace_id. With no platform, returns platforms, each with platform, name and types, the post types an app can send it. With a platform, returns that platform's platform, name, types (each with id, label, available, why when it is not, summary, textSent and media), limits (each with what, value, source and read, the date the source was read), options (each with name, value and types when it applies to some types only), tone, works, avoid and playbook: Postwyre's advice on hooks, length and format for each post type, as markdown, with its version and the date it was updated. With post_type too, only that type, its file limits, the options it takes and its part of the playbook. The limits are the ones Postwyre checks when a post is scheduled or sent. The tone, the playbook and the format notes are Postwyre's advice, not platform rules.
With workspace_id, the answer also carries brandVoice: the brand's voice as its owners and admins saved it (version, savedAt, setBy and voice), or null when nobody has set one, and warnings when the brand has no time zone set. Without a platform and with workspace_id, it also lists voiceVersions, the saved versions newest first, each with version, savedAt, savedBy, app (the name of the connected app, such as Claude, when a Claude.ai or ChatGPT sign-in saved it; the name is the one the app registered itself with) and restoredFrom when it brought an older one back. See Teach your agent your brand.
set_brand_voice [#set_brand_voice]
Input: workspace_id, and either voice or restore_version. Saves the brand's voice as a new version; only an owner or admin of the brand can, so a sign-in from Claude.ai or ChatGPT works when the person signed in is an owner or admin of that brand and is refused when they are a member, and a member's key is refused too. A sign-in's change is saved with the app's name. voice takes any of audience, tone and cta (text), wordsToUse, wordsToAvoid, bannedClaims, brandHashtags and examples (lists), emoji (none, sparing or free) and hashtags (none, few or platform); the fields sent replace those fields and the rest stay. restore_version brings back one of the versions get_platform_guide lists. Returns version, changed (false when the voice was already exactly that, and nothing new was saved) and voice. The limits are on Teach your agent your brand.
list_posts [#list_posts]
Input: workspace_id, and optionally status (one of the post states above), platforms (a list such as ["instagram"]), limit (1 to 50, 10 when left out) and cursor. Returns posts, newest first, and nextCursor: pass it as cursor for the next page, or it is null on the last one. Each post has id, status, scheduledAt, excerpt (its text, cut to at most 160 characters at a word break; get_post_results has the whole text), mediaIds when it has files, partlyPosted when some accounts did not get it (didNotGo lists them, and retry_post sends them again), approval when it has one (with a note once its time has passed, saying what approving it then does), and deliveries as in create_post.
With from and to (ISO 8601 with an offset, at most 92 days apart) it reads the calendar instead: posts due or sent in that range, soonest first, the same posts the Calendar shows except drafts. Drafts and posts that were not approved are left out.
get_post_results [#get_post_results]
Input: workspace_id and post_id. Returns the post with one entry in deliveries for each account: platform, accountHandle, status (queued, publishing, published or failed, or not_scheduled and not_approved as in create_post), attempts, platformPostUrl once it is published, and errorCode and errorMessage when it failed, or while it waits to be tried again: errorMessage says why in Postwyre's words (never the platform's raw text), and errorCode is one of Postwyre's own codes (for example rate_limited, platform_unavailable, platform_refused, media_refused or permission_missing), never the platform's own error name. The app shows the same words. A post that failed before 2026-11-06 can still carry the platform's code from then. A post made with requireApproval also has approval, as in create_post. A repeating post also has repeat, as in create_post, and repeatOccurrences: one entry per copy so far, with occurrence (1 for the first copy), dueAt, status (sent or skipped), copyPostId (the copy's own post, which get_post_results reads like any other) and reason (why it was skipped, or which accounts were left out).
get_post_history [#get_post_history]
Input: workspace_id and post_id. Returns postId and history: the post's last 10 changes to its schedule or state, newest first. Each has at, kind (drafted, edited_draft, scheduled, rescheduled, moved_to_drafts, sent_for_approval, approved, approved_through_agent (sent through a key or app with personApproved; by names the person), rejected, expired, account_disconnected or removed; how each account's copy was sent is in get_post_results, not here), from and to (each { status, scheduledAt }, or null), by (type: user, api_key, agent or system; userId and name for the person; label, the key's or connected app's name as it was then; staff, { name } when Postwyre staff signed in as that person made the change, with name null once they have left, and null otherwise) and via (app, rest, mcp or system). It answers after the post was deleted, so "who removed my post?" has an answer. An id with no history in this brand is refused. It only reads. With a key, GET /api/posts/{id}/history does the same.
get_post_stats [#get_post_stats]
Input: workspace_id, and either post_id for one post, or from and to (ISO 8601 with an offset) for every post the brand published in that range, with page. Left out, the range is the last 30 days; it can cover at most 92 days. Returns deliveries, one per account a post was published to, each with deliveryId, postId, platform, accountHandle, platformPostUrl, publishedAt, postType (text, image, images or video), status, snapshot, fetchedAt, errorCode, platformMessage, counts and engagement. A range also returns from, to, total, page and pageSize (50).
status is ok with counts, waiting before the first read, or unavailable when the platform gave no counts, with errorCode saying why and platformMessage holding what Facebook, Instagram or Threads said, if it said anything (shortened, with anything that looks like a key or an email address taken out). snapshot is 1h, 24h or 7d: Postwyre reads each post about 1 hour, 24 hours and 7 days after it goes out, then stops. A post whose 7-day read was missed gets one catch-up read instead, between 8 and 30 days after it went out, with snapshot late. counts has views, likes, comments, shares, saves and extras (counts only one platform has, such as Bluesky quotes and Instagram reach); each is null when that platform does not give it. engagement is likes plus comments plus shares plus saves. sourceFields names the platform's own field behind each count: on X, views holds impression_count, so an X view is an impression; say so before adding it to another platform's views. reason says why a post has no counts, null when it has them: the read's errorCode, or too_new (under an hour old), not_read_yet, no_reader (Postwyre reads no stats from that platform), not_measurable (the platform gives apps no post counts: Discord and Telegram), stats_off or missed. Which platforms are read is on Post stats.
get_stats_summary [#get_stats_summary]
Input: workspace_id, and optionally days: 7 (the default), 30 or 90. Returns the brand's last days days: published and withStats (how many results went out and how many have counts), noStats (the rest, as platform, reason, posts and platformMessage, what the platform said, from the newest of them that has a message), failed (results that failed, counted at their last try), successRate (published over published plus failed, 0 to 1), totals (views, likes, comments, shares, saves and engagement added up; null when no result was given that count), topPosts, deliveries, byPlatform, byPostType, byHashtag and byTimeUtc. Each entry in deliveries and topPosts is a result as in get_post_stats plus excerpt (its text), hashtags, score, median and medianOf. score is its engagement over the brand's median for the same platform at the same snapshot, from the last 90 days, so 1 is typical; it is null without counts or when the median comes from fewer than 3 results. Each group has key, posts, scored, averageScore and medianEngagement. A byPlatform entry also has sent, failed, successRate, totals and viewsFrom, how many of its results have a views count (its totals.views adds up only those). A byTimeUtc entry also has dayUtc (0 is Sunday) and hourUtc, the UTC hour of the week its results went out in.
get_weekly_report [#get_weekly_report]
Input: workspace_id. Returns the brand's last full week, Monday 00:00 to the next Monday 00:00 in the brand's time zone (UTC when none is set), against the week before: the same numbers as the weekly summary email. sent, failed and engagement each have now, before and percent (the rounded change, null when before is 0). totals adds up last week's counts as in get_stats_summary, and withStats says how many of last week's posts have counts. topPosts has up to 3 posts with the most engagement, each with postId, platform, accountHandle, excerpt, url (the live post, null when the platform gave none), engagement and views. notMeasured lists sent posts with no counts, as platform, reason (a code as in get_post_stats), posts and line, the reason in one plain sentence. nextStep is one sentence picked by fixed rules from those numbers: nothing sent, posts that failed, an account to reconnect, the best post, or a platform Postwyre reads. It also has brandId, brandName, timeZone, firstDay and lastDay (the Monday and Sunday, YYYY-MM-DD), from and to.
get_interview [#get_interview]
Takes no input. Returns the 8 questions of the free interview at /start, each with id, ask, help, options, pick (one or many), max and required, plus the answers shape and what save_interview takes. Ask the person the questions one at a time, write their voice, topics, offer and 7 drafts yourself (read get_platform_guide for each platform), then save. Any member can call it, and it changes nothing. See Start from an interview.
save_interview [#save_interview]
Input: workspace_id, interview_id (your own id, 8 to 64 letters, numbers, - or _), answers (in the shape get_interview gives), voice (the fields set_brand_voice takes), topics (3 to 5 of { title, why }), offer ({ name, promise, forWho, firstStep }) and drafts (exactly 7 of { platform, day, text }). Saves the answers, the voice as a new version (fields sent and not empty replace those fields; the rest stay) and the 7 drafts as posts held for approval with no accounts: nothing is scheduled or sent. Only an owner or admin of the brand can, as with set_brand_voice. The same interview_id again makes nothing new and answers replayed true. Postwyre makes no model call for it and spends no credits.
get_setup_checklist [#get_setup_checklist]
Input: workspace_id. Returns the brand's setup checklist, the same steps the strip above the calendar ticks, read from the same data: complete (true when every step is done), nextStep (the step to do now, or null) and steps, in order, each with id (account, agent, post or published), done, now, title, tool (the tool an agent can use for it, or null when only a person can do it or nothing needs doing), agentCan (what an agent does about it, in one sentence), setIn and url (where a person does it in Postwyre) and ownerOrAdmin. A step ticks itself: account once an account is connected, agent once an AI app signed in to the brand or a teammate's API key was used, post once a post was scheduled (a draft does not count), and published once a post went out to at least one account. An agent cannot connect an account itself: with create_connect_link an owner or admin's agent makes a link the person opens to connect it. Any member can call it, and it changes nothing.
get_autopilot_setup [#get_autopilot_setup]
Input: workspace_id. Returns what an agent drafting the brand's week needs in one read, the same as Settings, Autopilot shows: ready, true when every step is done, and steps, each with id (accounts, voice, timeZone or agent), done, title, why, tool (the tool an agent can use for it, or null when only a person can do it in Postwyre), setIn, href and ownerOrAdmin. Also voice (the saved brand voice with its version, or null), timeZone (null when the brand has none), postingTimes (the brand's own days, times and isDefault, as Settings, Brand shows them), weekTimes (the days and times week was filled from, and from: accounts when the accounts' own posting times were used, else brand), accounts (active accounts only, each with id, platform, handle and needsTapInPostwyre), week (the free posting times in the next 7 days for one post to every account in accounts, as schedule_posts_bulk fills them: the accounts' own posting times when they all share the same ones, else the brand's; up to 50; each with at and utc), qualityBar (autoSend and dailyLimit) and waitingForApproval. Any member can call it, and it changes nothing. See Posting autopilot.
upcoming_post_ideas [#upcoming_post_ideas]
Input: workspace_id. Returns up to 3 post ideas for the next 14 days, the same ones the calendar and Compose show, from US holidays (such as Thanksgiving, Mother's Day and Small Business Saturday) and the time of year (such as wedding season for a salon, fall cleanup for home services, or the season itself for any business). They fit the brand's type of business, set in Settings, Brand; businessType is null when it is not set, and the ideas are then the ones for any business. Ideas a person hid in the app are still returned. Each idea has id, occasion, kind (holiday or season), startsOn and endsOn, postOn (the day to post it, in the brand's time zone, as today is), title, text (a post with what only the brand knows in [brackets], such as its hours) and brief (what the post is about). Postwyre fills the brackets a brand setting answers, by rule: every bracket on how to book, order, buy, reach the business or find out more takes the call to action (cta) from the brand voice, word for word. filled lists each bracket filled and the setting it came from, and open lists the brackets still in text or brief, which no setting holds. scheduledThatDay counts the brand's posts already scheduled or waiting for approval on postOn, in the brand's time zone, so you can skip the idea or pick another day. missing lists each brand setting that is not set and would fill or fit more, with field (cta, businessType or timeZone), why, tool (set_brand_voice, set_business_type or set_brand_time_zone) and setIn (Settings, Brand voice or Settings, Brand); owners and admins set them. The ideas are written by rules, not by AI, and the call is free and changes nothing. Write the post in the brand's voice from the brief, and fill in what is in open with the person before it goes out.
list_pending_approvals [#list_pending_approvals]
Input: workspace_id, and optionally limit and cursor, as in list_posts. Returns approvals, the posts still waiting for approval, newest first, 10 to a page, batchUrl, one page where a person reviews and approves all of them (see Approve several at once), and nextCursor. Each has postId, approvalUrl, status, action (schedule or now), scheduledAt, expiresAt, a note once its time has passed (approving it then posts it now, or for a draft hold only saves a draft and posts nothing, so send it now or pick a new time) and accounts, each with platform, accountHandle and text, the text that account gets. A post the quality bar checked and held also has heldBecause, its reasons. The answer also carries qualityBar, the brand's setting: autoSend and dailyLimit (see Quality bar); only a person signed in can change it. When it lists held posts on a brand with no plan, the answer also has note, and planUrl only for the plan's owner, as create_post gives them. A link past its time shows status expired and no approvalUrl until the scheduler marks the post not approved. Only a person can approve or reject; delete_post withdraws a request.
get_creator_info [#get_creator_info]
Input: workspace_id and account_id, a TikTok account from list_accounts. Asks TikTok what the next post from that account may use, as the app's TikTok post screen does each time it opens. Returns nickname, username, avatarUrl, privacyLevelOptions, commentDisabled, duetDisabled, stitchDisabled, maxVideoSeconds and cannotPost, a sentence when TikTok will not take a post from the account right now. An account on another platform answers not_found, and one on a platform that is switched off answers conflict.
list_webhooks [#list_webhooks]
Input: workspace_id. Returns endpoints, the brand's webhook endpoints, newest first, each with id, url, events, createdAt, and the last delivery's lastAttemptAt, lastStatusCode, lastError and lastSuccessAt. Never a signing secret. Owners and admins only, as for list_members. See Approvals and webhooks for what is sent.
add_webhook [#add_webhook]
Input: workspace_id, url and events (one or more of post.published, post.failed and post.approval_requested). Adds an endpoint, as Add webhook on the Team page does, with the same checks: a public https address on port 443 with no sign-in details in it, judged by what its name resolves to now and again on every send, so local and private network addresses are refused with validation_error. The brand needs a plan, a plan has up to 3 endpoints across its brands (conflict past that), and a deployment whose scheduler is off answers not_configured. Returns endpoint, secret and note. The secret signs every request and is in this answer only, since Postwyre keeps only a sealed copy: give it to the person to keep. If it is lost, remove the endpoint and add it again. Each call adds a new endpoint. Owners and admins only, with a key that can send, since an endpoint receives post text from then on.
remove_webhook [#remove_webhook]
Input: workspace_id and endpoint_id (from list_webhooks). Removes it and anything still waiting to go to it. Returns endpointId and removed; one already gone, or not this brand's, answers removed false. Owners and admins only.
disconnect_account [#disconnect_account]
Input: workspace_id, account_id (from list_accounts) and confirm, which must be true: ask the person first. Disconnects the account as Disconnect on the Accounts page does: its saved sign-in is deleted, and each scheduled post's copy for it fails with the reason, the same as in the app. A YouTube channel also loses the data Postwyre read from YouTube, and Google is asked to end Postwyre's access (see TikTok and YouTube). Returns accountId, disconnected, postsStopped (scheduled posts left with nothing to send) and note. An account already disconnected answers disconnected false; another brand's account answers not_found. Connecting it again needs a person in a browser: an owner or admin on the Accounts page, or anyone with a link from create_connect_link. Owners and admins only.
list_wordpress_categories [#list_wordpress_categories]
Input: workspace_id, account_id (a WordPress account from list_accounts) and optionally search. Asks the site for its categories, as the WordPress panel in Compose does, and returns accountId and categories, each with id, name and count (its posts): up to 100, the most used first, or those matching search. Put an id or name in options.categories for that account on create_post or update_post. An account that is not a WordPress site of this brand answers not_found, and one whose site no longer takes its password answers conflict and is marked to reconnect. Any member.
Each change add_webhook, remove_webhook and disconnect_account make is recorded on your login with the brand and the key or app that made it. For a webhook that is its id, host and events, never its secret or its full address.
Example calls [#example-calls]
One call for each tool, as the arguments of tools/call. Ids are placeholders.
| Tool | Arguments |
|---|---|
| list_workspaces | {} |
| get_credit_history | { "workspace_id": "ws_1" } |
| list_accounts | { "workspace_id": "ws_1" } |
| get_platform_guide | { "platform": "instagram", "post_type": "reel", "workspace_id": "ws_1" } |
| set_brand_voice | { "workspace_id": "ws_1", "voice": { "tone": "Friendly and plain. No hype.", "emoji": "none" } } |
| find_next_slot | { "workspace_id": "ws_1", "count": 3 } |
| set_account_posting_times | { "workspace_id": "ws_1", "account_id": "acc_1", "posting_times": { "days": [0, 1, 2, 3, 4, 5, 6], "times": ["19:00"] } } |
| set_brand_time_zone | { "workspace_id": "ws_1", "time_zone": "America/New_York" } |
| create_brand | { "name": "Corner Bakery" } |
| update_brand | { "workspace_id": "ws_1", "name": "Corner Bakery Downtown", "time_zone": "America/Chicago" } |
| list_members | { "workspace_id": "ws_1" } |
| invite_member | { "workspace_id": "ws_1", "email": "sam@bakery.example", "name": "Sam", "role": "member" } |
| cancel_invite | { "workspace_id": "ws_1", "email": "sam@bakery.example" } |
| answer_invite | { "invited_workspace_id": "ws_2", "accept": true } |
| change_member_role | { "workspace_id": "ws_1", "user_id": "user_1", "role": "admin" } |
| remove_member | { "workspace_id": "ws_1", "user_id": "user_1" } |
| set_posting_slots | { "workspace_id": "ws_1", "posting_times": { "days": [0, 1, 2, 3, 4], "times": ["09:00", "17:30"] } } |
| set_link_tracking | { "workspace_id": "ws_1", "utm": true, "short_links": false } |
| set_business_type | { "workspace_id": "ws_1", "business_type": "restaurants" } |
| set_brand_logo | { "workspace_id": "ws_1", "url": "https://bakery.example/logo.png" } |
| remove_brand_logo | { "workspace_id": "ws_1" } |
| list_webhooks | { "workspace_id": "ws_1" } |
| add_webhook | { "workspace_id": "ws_1", "url": "https://hooks.yourbrand.example/postwyre", "events": ["post.published", "post.failed"] } |
| remove_webhook | { "workspace_id": "ws_1", "endpoint_id": "whk_1" } |
| disconnect_account | { "workspace_id": "ws_1", "account_id": "acc_1", "confirm": true } |
| list_wordpress_categories | { "workspace_id": "ws_1", "account_id": "acc_2", "search": "recipes" } |
| get_post_history | { "workspace_id": "ws_1", "post_id": "post_1" } |
| list_signatures | { "workspace_id": "ws_1" } |
| create_signature | { "workspace_id": "ws_1", "name": "Shop sign-off", "text": "Open 7 to 3 every day." } |
| delete_signature | { "workspace_id": "ws_1", "signature_id": "sig_1" } |
| create_connect_link | { "workspace_id": "ws_1", "expires_in_days": 7, "label": "Acme's owner" } |
| list_connect_links | { "workspace_id": "ws_1" } |
| revoke_connect_link | { "workspace_id": "ws_1", "link_id": "link_1" } |
| create_post | { "workspace_id": "ws_1", "accounts": [{ "accountId": "acc_1" }], "mediaIds": ["med_1"], "platformOverrides": { "instagram": { "body": "New menu", "options": { "postType": "reel", "thumbOffsetMs": 2000 } } }, "action": "schedule", "scheduledAt": "2026-11-02T09:00:00-05:00" } |
| schedule_posts_bulk | { "workspace_id": "ws_1", "idempotencyKey": "november-week-1", "posts": [{ "body": "Soup of the day: lentil", "accounts": [{ "accountId": "acc_1" }] }, { "body": "Friday hours: 8 to 6", "accounts": [{ "accountId": "acc_1" }], "scheduledAt": "2026-11-06T08:00:00-05:00" }] } |
| update_post | { "workspace_id": "ws_1", "post_id": "post_1", "scheduledAt": "2026-11-03T09:00:00-05:00" } |
| shift_posts | { "workspace_id": "ws_1", "post_ids": ["post_1", "post_2"], "days": 7, "idempotency_key": "move-week-45" } |
| delete_post | { "workspace_id": "ws_1", "post_id": "post_1" } |
| delete_published_post | { "workspace_id": "ws_1", "post_id": "post_1", "remove_from_platform": true } |
| duplicate_post | { "workspace_id": "ws_1", "post_id": "post_1" } |
| retry_post | { "workspace_id": "ws_1", "post_id": "post_1" } |
| set_first_comment | { "workspace_id": "ws_1", "post_id": "post_1", "platform": "linkedin", "text": "Sign up at yourbrand.example", "delay_minutes": 5 } |
| retry_first_comment | { "workspace_id": "ws_1", "post_id": "post_1", "delivery_id": "del_1" } |
| upload_from_url | { "workspace_id": "ws_1", "url": "https://yourbrand.example/clip.mp4" } |
| create_upload | { "workspace_id": "ws_1", "file_name": "clip.mp4", "content_type": "video/mp4", "size_bytes": 18452011 } |
| confirm_upload | { "workspace_id": "ws_1", "media_id": "med_1" } |
| list_posts | { "workspace_id": "ws_1", "from": "2026-11-01T00:00:00-05:00", "to": "2026-12-01T00:00:00-05:00" } |
| get_post_results | { "workspace_id": "ws_1", "post_id": "post_1" } |
| get_post_stats | { "workspace_id": "ws_1", "post_id": "post_1" } |
| get_stats_summary | { "workspace_id": "ws_1", "days": 30 } |
| get_weekly_report | { "workspace_id": "ws_1" } |
| get_setup_checklist | { "workspace_id": "ws_1" } |
| get_interview | {} |
| save_interview | { "workspace_id": "ws_1", "interview_id": "bakery-2026-11-25", "answers": { "kind": "postwyre-interview-answers", "version": 1, "answers": [] }, "voice": { "tone": "Warm and plain" }, "topics": [], "offer": {}, "drafts": [] } |
| get_autopilot_setup | { "workspace_id": "ws_1" } |
| upcoming_post_ideas | { "workspace_id": "ws_1" } |
| list_pending_approvals | { "workspace_id": "ws_1" } |
| get_creator_info | { "workspace_id": "ws_1", "account_id": "acc_2" } |
| find_mention | { "workspace_id": "ws_1", "platform": "bluesky", "query": "alice" } |
In the browser (WebMCP) [#in-the-browser-webmcp]
Postwyre's pages also offer tools to an agent that works inside the browser, through WebMCP, a draft web standard. Only browsers that have it see them: today that is Chrome's early preview. In other browsers the pages do nothing different.
On every page: get_pricing (the plan, its price, the brands it covers and the price of each brand after that), start_signup (opens sign-up) and read_docs (these docs, as markdown).
Signed in to the app: list_brands, switch_brand, list_accounts, list_posts, get_post, create_post, schedule_posts_bulk, update_post, delete_post, delete_published_post, retry_post, set_first_comment, retry_first_comment and get_stats_summary. create_post, each post in schedule_posts_bulk, and update_post take signatureId, the REST name for signature_id, and apply it the same way. They work in the brand you have open, the one you last switched to in any tab, through the app's own routes and your own sign-in, so the same checks hold as when you click. No key is ever in the page. list_accounts returns each account's id, platform, handle and status, plus the connector's statusReason (why an account is not active) and appKeyProblem (on an X account connected through the brand's own X app, when Postwyre can't read that app's saved keys), in the same words. An account with nothing wrong has neither. As with the connector, none of them approves or rejects a post. delete_post and delete_published_post split deletes the same way the connector's do: delete_post refuses a post with a copy that went out, and delete_published_post needs remove_from_platform sent as true or false.
Refusals [#refusals]
A tool that cannot do what you asked answers with an error result (isError true). Its text is JSON with the same fields every time: error, a fixed code to act on; code, one of the short list every Postwyre product answers with (below); message, a sentence to pass on to the person; and url, the page that fixes it, when a page can. A rate limit adds retryAfterSeconds and retry_after_seconds, the same number. For example, a post scheduled in a brand with no plan yet answers:
{ "error": "setup_required", "message": "This brand has no plan yet. Start a trial or choose a plan at https://postwyre.com/welcome/brand/k3x9q2m7, or add this brand to a plan you already have there.", "url": "https://postwyre.com/welcome/brand/k3x9q2m7", "code": "not_configured" }
error | What it means | What to do |
|---|---|---|
setup_required | The brand has no plan yet, so it can read, save drafts and hold posts for approval, but not send or schedule. For an owner of the brand who owns its plan, message says what approving leads to there: adding a card to start a trial, choosing a plan, adding the brand to a plan they already have, or why that plan cannot take it yet. Also past the few accounts or files a person keeps before a plan. When the brand's plan stopped because its last payment did not go through, message says that instead, with the same url, where the plan's owner updates the card. If Stripe closed the plan, message says to choose a plan again at the same url. Only an owner of the brand who owns its plan gets the url. For anyone else there is no url, and message names who to ask: to start a plan, to update the card, or to choose a plan again for a closed plan. | Give the person url when there is one. It opens the plan step in that brand, where they start a trial or choose a plan. Without one, pass on who to ask. To post now, call create_post again with requireApproval: true. Once the brand has a plan, the same call works. |
no_access | Not a brand this key or sign-in reaches. A brand that does not exist gets the same answer. | Call list_workspaces and use an id from it. |
blocked | An owner or admin blocked this key, or this app, in that brand. | Ask the person. Only someone in that brand can lift it. |
scope_required | The key is read only, or cannot send, and the tool needs more. | Give the person url. It opens Connected apps, where they make a key with that access, in the brand the key was made in when that brand has a plan. When none of their brands has a plan yet, Settings opens only after one starts, so url is the plan step instead and the message says to start a plan first. Only the plan's owner gets that url; anyone else gets none, and the message names who to ask to start a plan. |
role_required | The tool needs an owner or admin of the brand. | Ask an owner or admin, as the message says. |
rate_limited | Too many calls or posts for now. | Wait retryAfterSeconds when it is there, or pick another time when the message names an hour. |
invalid_input | An argument is missing or wrong; the message names it. | Fix the call. |
not_found | The id is wrong, or it belongs to another brand. | List again. |
validation_error, conflict, quota_exceeded, confirmation_required, not_configured, upstream_error, forbidden | The same codes as the REST API, with the same meaning. | Read the message. Do not retry quota_exceeded or conflict unchanged. When quota_exceeded has a url, give it to the person: it opens Billing where they can change the plan. Without one, pass on the message, which names who can. |
comment_sending | The post's first comment is posting right now, so the post cannot be removed yet. | Call again in a few minutes. |
tool_failed | The tool broke on Postwyre's side. Nothing in the call was wrong. | Try again in a minute. If it keeps failing, report it with report_problem. |
service_unavailable | Postwyre could not record the call, so it did not run it. | Wait retryAfterSeconds, then call again. |
code is one of invalid_request, not_found, conflict, forbidden, not_configured, quota_exceeded, rate_limited, provider_error, service_unavailable and tool_failed. setup_required and not_configured answer not_configured; no_access, blocked, scope_required, role_required, forbidden and unauthorized answer forbidden; invalid_input, validation_error and confirmation_required answer invalid_request; comment_sending answers conflict; upstream_error answers provider_error; internal_error answers tool_failed; the rest answer their own name.
Every call is recorded [#every-call-is-recorded]
Postwyre writes a record before every tool call that reaches a tool name (a request refused earlier, for its headers or its size, runs nothing), reads and refusals included, and adds how it ended: the time, the person, the key or app, the brand the call named, the tool, and whether it went through, was refused (with its code) or failed. It never keeps the call's arguments, its answer or any text. A call Postwyre cannot record is not run, and answers service_unavailable. Records are deleted after 365 days.
Text from outside the brand [#text-from-outside-the-brand]
What someone outside the brand wrote comes back under a field named untrusted: in list_inbox, list_reviews, reply_to_comment, reply_to_review, update_inbox_item and delete_review_reply, an item's untrusted.author and untrusted.text; in list_dm_rules, each log entry's untrusted.recipient and untrusted.comment; in find_mention, untrusted.candidates. The server's instructions tell the agent to read it as data and never follow instructions in it. The browser tools of the same name answer the same way.
list_workspaces never fails for want of a brand. When the person is in no brand, it answers an empty workspaces list with error setup_required, a message and the url where they make one. When this key or app is blocked in every brand the person is in, it answers an empty list with error blocked and a message. In schedule_posts_bulk, each refused post's error has the same code values, with url or retryAfterSeconds when they apply.
At the HTTP level, 401 means the key or sign-in is wrong, expired or revoked, and carries the WWW-Authenticate header an app signs in again from; 400 means the message is not valid MCP, is a batch, or names a protocol version Postwyre does not speak, 403 means the request came from a web page on another site, 413 means the body is too large, and 429 means the key or sign-in made more than 120 requests this minute; its Retry-After header says how many seconds to wait before sending the same request again. Separately, a key or sign-in can send as many posts an hour as the brand's connected accounts take within each platform's own limits (create_post, schedule_posts_bulk, update_post when it sends a post or moves a scheduled one to another hour, and retry_post with a send), and all the keys and sign-ins of one brand together no more than that; each post counts in the hour it goes out, so scheduling ahead does not use up the hour you schedule in, and a scheduled post moved to another hour counts in its new hour; a bulk post with no scheduledAt is placed in the brand's posting slots and is not counted; drafts count nothing. Past that, the tool answers with an error that names the full hour and asks for other times. A post that would put one account past its platform's own daily limit is refused the same way. Each brand also takes up to 300 tool calls a minute from all its keys and sign-ins together, counted only for callers who are in the brand; a deployment can change the number with MCP_BRAND_CALLS_PER_MINUTE. A retry of a tool marked idempotentHint, the same tool with the same arguments from the same key or sign-in in the same minute, is not counted again, so it is let through as the first call was; every call to any other tool counts. Past the number, a tool answers with an error that says how many seconds to wait. An unknown tool, or a tools/call with no tool name, comes back as a JSON-RPC error with HTTP 200; a wrong argument to a known tool is an invalid_input refusal.
What the connector cannot do [#what-the-connector-cannot-do]
Telling your agent to post is your approval, except on Google Business Profile, Pinterest, TikTok and YouTube, where every agent post waits for a person. A post the agent holds for approval is different: only a person signed in to the app can approve or reject it, so an agent can ask for approval but never give it. If an owner or admin turned on the quality bar, Postwyre itself approves a held post that passes it (see Approvals and webhooks). It also cannot connect or reconnect an account, make or revoke keys, authorize or revoke apps, delete a brand, hand a brand to a new owner, add someone who already has a login, or open checkout. Those need a person signed in to the app.