Skip to main content
Every request to the REST API needs an API key, sent as a Bearer token, except the two that give a person their first key (agent sign-up). The MCP server takes the same key, or an OAuth connector instead. A key works on the REST API (/api/v1), the MCP server and OAuth delegation. The PostSyncer app’s own routes answer it 403, with "error": "api_key_not_allowed".

Make a key

Only a workspace owner can make keys: Settings → API isn’t shown to other roles. It works on every plan, Free included.
  1. Open Settings → API and click New key.
  2. Name it. Under Start from, pick what the key may do (see Presets). Everything is picked to begin with.
  3. Optionally set an expiry date. After it, the key answers 401.
  4. Create the key and copy it. It’s shown once.
Edit a key’s name, permissions or expiry date there at any time, or delete it. A deleted key answers 401 from then on. An AI agent in a terminal can also get a key for a person, with a code emailed to them: see Sign up from an AI agent. Its two routes, POST /agent-signup/code and POST /agent-signup/verify, are the only ones that need no key. The key has every permission, is named after the agent, and shows in Settings → API like any other.

Send the key

Send the key on every request as Authorization: Bearer YOUR_API_KEY. The base URL is https://postsyncer.com/api/v1. Upload a file is the one exception: it uses https://upload.postsyncer.com/api/v1, with the same key.
Keep the key on your server. Anyone who has it can act as you.

Who a key acts as

A key acts as the owner who made it. It reaches every workspace that person owns or joined, and in each one it can do only what their role there allows. A request needs both: the key’s permission and the person’s role. When the role doesn’t allow it, the answer is 403:
403
The plan that applies is the workspace owner’s, not the key’s: a key used in someone else’s workspace gets that owner’s plan limits.

Permissions

Every permission is a resource:action pair, and every endpoint needs one. An MCP tool needs the permission of the endpoint it mirrors: list-posts needs posts:read, create-post needs posts:create. Without it, the answer is 403 and nothing is done:
403
Paths are relative to https://postsyncer.com/api/v1. Google reviews use the comments permissions. Two read permissions can spend AI credits on paid plans: POST /posts/analyze-twitter (posts:read) and POST /media/analyze-video (media:read). On Free, both answer 403 with "limit": "ai".

Presets

Start from ticks permissions for you. You can change them on the next step.
For an AI agent, start from An agent that drafts. Without posts:schedule, posts:publish and posts:approve it can’t send anything to a network, and without posts:update and posts:delete it can’t change or remove a post you already scheduled.

Older keys

Keys keep the permissions they were made with.
  • A key made with Everything has *: every permission, including ones added later.
  • Keys made before permissions were split into actions hold one permission per resource. Each still works as before:
No older permission covers brand, snippets or webhooks. To use those, edit the key and pick them.

Connect an AI client with OAuth

Claude, ChatGPT and other MCP clients can connect to https://postsyncer.com/mcp as a connector instead of using a key: you sign in to PostSyncer and approve it once. Client setup has the steps. PostSyncer has no setting that ends a connector’s access. Removing the connector in your client stops that client using it, but the tokens it was given stay valid until they run out: the access token after 15 days, the refresh token after 30. Each time the client renews, it gets new ones. To end a connector’s access sooner, write to support@postsyncer.com.

When a request is refused

Error handling lists every other answer.

Quickstart

Make a key and schedule your first post.

Test safely

A draft-only key, and what can’t be undone.