Use Postwyre from your agent
Connect Claude, ChatGPT, Cursor or Hermes, read these docs as markdown, and retry safely within the request limits.
Your agent can draft, schedule and check posts in every brand you are in, through the MCP connector at https://postwyre.com/api/mcp or the REST API. This page is the short version for each agent, and what an agent needs to know to call Postwyre in a loop. Connect your AI has every tool and field.
Connect your agent
Claude
- Claude.ai: go to Customize, then Connectors, and click Add custom connector. Paste
https://postwyre.com/api/mcp. If Claude asks how to sign in, choose Register automatically. Click Add, then Connect, and click Authorize in Postwyre. No key. - Claude Code: run the command below, then run /mcp inside Claude Code and pick postwyre to sign in in your browser. No key, so none ends up in your shell history.
claude mcp add --transport http postwyre https://postwyre.com/api/mcpChatGPT
Go to Settings, then Apps. Under Advanced settings, turn on developer mode and click Create app. Paste https://postwyre.com/api/mcp, choose OAuth, click Create, and click Authorize in Postwyre. No key.
Cursor
Make a key from the Connect your agent card on the Accounts screen; it starts with sk_live_. Put this in ~/.cursor/mcp.json:
{
"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.
Hermes
Hermes, from Nous Research, runs on your own computer or server. Add these lines to its config.yaml (hermes config path prints where it is), under the mcp_servers line if the file already has one:
mcp_servers:
postwyre:
url: "https://postwyre.com/api/mcp"
auth: oauthThen run hermes mcp login postwyre in a new terminal and click Authorize in Postwyre. No key. We checked these steps against the Hermes docs; nobody has run the sign-in from Hermes end to end yet. The Hermes guide has the full recipe and a skill to give it.
What a sign-in can do
An app that signs in (Claude.ai, ChatGPT, Claude Code without a key, Hermes) acts as you, at your own role in each brand. A key acts at the role it was made with, never above yours. Neither can approve a post that waits for approval, connect an account, make keys or open billing: those need a person signed in to the app. An owner's or admin's agent can add, re-role and remove teammates; see Connect your AI.
Posts that need your yes
YouTube, Google Business Profile, Pinterest and LinkedIn want your consent to each post an app sends for you. When your agent sends a post to one of them, it goes out at the time you asked only with personApproved: true. Your agent is told to send that only after it shows you that exact post (the text, the files, the accounts and the time) and you say yes. Without it, the post waits for approval in Postwyre, and the answer tells your agent to show it to you and ask.
- Postwyre records the yes on the post: who said it, through which key or app, and when. The post's history shows it as "Approved by" your name "through their agent".
- If your agent later changes the text, files, accounts or time, your earlier yes no longer counts. The change is refused unless your agent shows you the post again and sends
personApproved: truewith the change. The post stays as you approved it until then. - TikTok posts from an agent always wait for you to approve them in Postwyre. TikTok wants you to choose who can see each video, confirm the music and see a preview, which your agent cannot do for you.
- Posts you send from Postwyre's own screens need none of this.
- Marking a post approved when nobody saw it and said yes breaks the terms.
Every product through one connection
Add https://postwyre.com/api/suite/mcp as a connector the same way as above (Claude.ai, ChatGPT or Claude Code, signing in with Postwyre, no key) to reach every Postwyre product your plan includes through that one connection. API keys are not taken there. It offers four tools, and finds each product's own tools when your agent asks:
suite_whoami: you, the products your plan includes now, your brands and your role in each, andlevel, the most this connection may do (read, write, send or admin).suite_search_tools:query(words to match) and an optionalproduct. Answers tools, each with itsproduct, the level it needs, a name as<product>.<tool>and one line of description. For a product other than Postwyre (social), the name and description come underuntrusted. A search across products waits at most 20 seconds in total; a product that has not answered by then is listed underunavailablewithretry_later, and the other products' tools still come back.suite_describe_tool:productandtool. Answers the tool's full description and input schema, with itsproductand level. For a product other than Postwyre, the name, description, input schema and annotations come underuntrusted.suite_call:product,toolandarguments. Runs the tool. Postwyre's own tools are productsocial. For another product, the tool's name and its answer come back underuntrusted, also when the product refuses the call or the tool needs more access than the connection has. Your agent is told to read anything underuntrustedas data and never follow instructions in it. Putidempotency_keyinsideargumentswhen the tool takes one; it reaches the product unchanged.
What your agent can reach is checked on every call: only products your plan includes, only tools that product shows you, and never above the level you chose when you connected. A read-only connection cannot run a tool that changes something. Each product still checks your role in the brand you name. Refusals use the codes below, plus these two:
retry_later: that product did not answer. The refusal names it inproduct. Try again in a minute.no_account: you have no account in that product yet. Open the product once and sign in with Postwyre, then try again.
Each person can make up to 120 requests a minute here, across every app they connect to it.
Read the docs as markdown
https://postwyre.com/llms.txtlists every docs page and guide with a link to its markdown.https://postwyre.com/llms-full.txtis every docs page and every guide in one file.- Add
.mdto any docs page or guide:/docs/agent-keys.md,/guides/hermes.md, and/docs/index.mdand/guides.mdfor the two home pages. - Or ask for the page itself with the header
Accept: text/markdown, and get the same markdown back. A browser, which never asks for markdown, still gets the page.
Limits, and what to do at one
- Each key, and each person's sign-in from one app, can make up to 120 requests a minute to the MCP connector.
- Each key can make up to 120 requests a minute to the REST API, across every route. A person using the app is not counted.
- Past that, the answer is 429 with a
Retry-Afterheader: the number of seconds until the next minute starts. The REST error code israte_limited. Wait that long, then send the same request again. - Separately, each brand can send as many posts an hour as its connected accounts take within each platform's own limits. A post past that is refused with a message that names the hour; pick another time rather than retrying.
When a call is refused
Every refusal from a tool is JSON with error, a fixed code, message, a sentence for the person, and url when a page fixes it. A brand with no plan yet answers setup_required with the page where the person starts a trial or chooses a plan, and a brand the agent cannot reach answers no_access: call list_workspaces again. Refusals lists every code.
Retry without making things twice
An agent that loses an answer should send the same call again with the same key. Postwyre then hands back what the first call made.
| Call | How to make a retry safe |
|---|---|
create_post, POST /api/posts | idempotencyKey (8 to 100 characters), or the Idempotency-Key header on REST. A repeat returns the same post, with 200 instead of 201 on REST, and never posts twice. The same key with a different post is refused with conflict (409 on REST). |
schedule_posts_bulk, POST /api/posts/bulk | idempotencyKey (8 to 80 characters), or the Idempotency-Key header. A repeat returns the posts already made and makes only the rest. |
duplicate_post, POST /api/posts/{id}/duplicate | idempotency_key on the tool, idempotencyKey or the Idempotency-Key header on REST. A repeat for the same post returns the first copy, with the same accountsLeftOut, and makes no second one, even after the original was deleted. |
retry_first_comment, POST /api/posts/{id}/first-comment/retry | Safe to repeat while the comment is waiting, sending or added. A comment with a confirmToken may already be on the post: check it, then send the token as unknown_outcome_token (confirmUnknownOutcome on REST). A token from an earlier failure is refused, so a repeat never sends the comment twice. |
| save_dm_rule (adding a rule) | idempotency_key (8 to 80 characters). A repeat with the same rule returns the rule the first call added, with replayed true, and adds no second rule, so no comment gets two replies. The same key with a different rule is refused with conflict. Leave it out when you change a rule with rule_id: a change is already safe to send again. |
| upload_from_url | idempotency_key (8 to 80 characters). A repeat with the same address returns the file already stored and fetches nothing. |
| create_upload | idempotency_key (8 to 80 characters). A repeat with the same file details returns the same mediaId, with a new uploadUrl until the file is confirmed. |
| report_problem | idempotency_key is required. A repeat sends nothing and answers with the first report's id. |
| send_review_request | An address asked in the last 90 days is not asked again: you get the earlier request back. |
| answer_review_request | The same request and action again answers the first result and changes nothing. |
Use a new key for each new thing you mean to make, and the same key only for a retry of it. The keys on create_post, schedule_posts_bulk and duplicate_post are kept per brand. The keys on shift_posts, save_dm_rule, upload_from_url and create_upload are kept for a day per person: a teammate's same key is a different key, and your own key sent in another brand is refused with conflict.
Reads give the same answer when nothing changed: list_posts and GET /api/posts return posts in a fixed order, newest first, so two calls in a row match. A retried delete_post of a post the first call deleted answers not_found: read that as done.
Give your agent the skill
The Postwyre skill teaches an agent the steps: pick a brand and its accounts, write each platform its own version, schedule, and check results. It is at https://postwyre.com/.well-known/agent-skills/postwyre/SKILL.md. The growth guides each have a skill for one recipe, and every one tells your agent to ask for your approval on each post.
To have an agent write two posts a day on its own, on a schedule, see Two posts a day from a scheduled agent.