Skip to main content

Authentication

All PostSyncer API requests require authentication using an API key. This guide explains how to obtain and use your API key.
Don’t have an API key yet? Get one here.

Getting Your API Key

  1. Sign in to your PostSyncer account at app.postsyncer.com
  2. Navigate to Settings → API Integration
  3. Click “Create”
  4. Copy the key immediately - it won’t be shown again
Keep your API key secure and never share it publicly. If your key is compromised, regenerate it immediately.

Using Your API Key

Include your API key in the Authorization header of all requests:

Example Request

JavaScript Example

Python Example

Python Example

PHP Example

Permissions

When you create a key, All permissions is on by default: the key can do everything the API and the MCP server expose. Turn it off to scope the key. Every permission is a resource:action pair, and each endpoint needs exactly one of them (the same permission gates the matching MCP tool). The action follows the HTTP verb unless noted above: GET needs read, POST needs create, PUT/PATCH need update, DELETE needs delete.
For an AI assistant that should only draft content you approve in the app, a key with workspaces:read, accounts:read, posts:read, posts:create and media:create is enough: without posts:schedule and posts:publish every post it creates is a draft, and without posts:update and posts:delete a leaked key cannot change or remove anything you already scheduled.
Keys created before granular permissions existed keep working unchanged. Keys that were created with the older per-resource scopes keep them: the legacy posts scope still covers media, folders, comments and analytics, exactly as it did before. You can move any key to granular permissions by editing it.
A request without the required permission returns 403 Forbidden:

Error Responses

If authentication fails, you’ll receive a 401 Unauthorized response:
Common authentication errors: