The flow
- The agent checks whether PostSyncer is already connected, through the Claude plugin or a connector: PostSyncer’s tools, such as
list-workspaces, are in its tool list. If they are, the person is already set up, so it uses those tools and stops, without signing in again or adding the server a second time. If a server namedpostsyncer(or one athttps://postsyncer.com/mcp) is waiting for a sign-in (in Claude Code,/mcpshows it needs authentication), it asks the person to finish that sign-in and stops, instead of signing up again and adding a second server. Apostsyncerserver whose tools fail for another reason, such as a saved key that was deleted, doesn’t stop it: the sign-up goes on, and the new key replaces that server. - The agent says: “By signing up you agree to PostSyncer’s Terms and Privacy Policy.” Then it asks for the person’s email, and nothing else.
- It asks for a code, with the email, its own name and the computer’s time zone.
- The person reads the code from their inbox. The agent sends it back and gets the key.
- It saves the key in its own secret store or MCP settings (the shell’s profile only when it has neither), then connects the person’s social accounts.
Send a code
202
- The answer is the same whether or not the address has an account, and no account is made yet.
agentis the agent’s own name. When PostSyncer knows it (Claude Code, Codex, Cursor, OpenClaw, Gemini CLI, Claude, ChatGPT, VS Code, Windsurf, Hermes, Grok Bot, Grok), the email says “Enter it in Claude Code” and the key is named after it. Any other name is “your AI agent” in the email and “AI agent” on the key.- Read
timezonefrom the system; don’t ask. A new account’s workspace gets it. A name that isn’t an IANA time zone (such as Windows’Eastern Standard Time) is left out, not refused. - A code works for 10 minutes and once. Asking again replaces it.
Your PostSyncer code is 482913.
Verify the code
200
- A new address gets a new account, with its own workspace and the email marked verified (
new_account: true). - An address with an account gets a new key on it, and nothing else on the account changes (
new_account: false). PostSyncer emails the account’s owner that a key was added for the agent, with the key’s name and where to delete it. workspaceis where the agent connects accounts and saves posts.- While a new account is in its first week,
first_week_ends_atsays when the week ends, and the agent says: “For your first 7 days you get 10 accounts, unlimited posts and Analytics. After that you keep Free: 2 accounts and 20 posts a month.”
Save the key
Saveapi_key in the agent’s own secret store or its user-level MCP settings first, never in a project file or anything that could be committed, and never repeat the full key in a reply to the person. Only an agent with neither keeps the key in an environment variable such as POSTSYNCER_API_KEY, set in the shell’s profile (~/.zshrc or ~/.bashrc).
-
Claude Code:
-
Cursor: add the server to
~/.cursor/mcp.json, not the project’s.cursor/mcp.json: -
Codex: in
~/.codex/config.toml, name an environment variable for the key. Codex has no secret store of its own, so set that variable in the shell’s profile (~/.zshrcor~/.bashrc): -
Any other agent: add
https://postsyncer.com/mcpas a remote server with the headerAuthorization: Bearer YOUR_API_KEYin its user-level settings (see Connect with a Bearer token). If its settings read the key from an environment variable instead, setPOSTSYNCER_API_KEYfrom its own secret store, or else in the shell’s profile.
Authorization: Bearer …. Later chats use the MCP tools.
Next: connect accounts and read how posts did
- Ask which networks the person posts on. Make a connect link for each, give the links, and check List accounts until the accounts show up.
- Once an account is connected, PostSyncer reads its past posts, then learns the brand from them. Read Get the brand until it’s done:
importing_postsistruewhile the posts are still being read, andstatusisbuildingwhile the brand is being learned. - When both are done,
accounts[].numbershas each account’s best posts, times and formats. Empty numbers mean there were no past posts to read: ask the person what they do instead.
schedule_type: draft) and schedule them only when the person says yes. See Publish a post.
Limits
Over a limit, nothing is sent or made, and the answer is
429 with error: rate_limited. Wait Retry-After seconds when it’s given: the day’s limits on new accounts from one IP address and on the codes PostSyncer sends give none, and say to try again tomorrow. These two requests carry no X-RateLimit-* headers.
Errors
Every error haserror, a code to branch on, and a plain message to pass on to the person.
Related
- Send a sign-up code and Verify a sign-up code: the two requests.
- Authentication: keys and permissions.
- Client setup: adding the MCP server to each agent.