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
- Sign in to your PostSyncer account at app.postsyncer.com
- Navigate to Settings → API Integration
- Click “Create”
- Copy the key immediately - it won’t be shown again
Using Your API Key
Include your API key in theAuthorization 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 aresource: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.
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.403 Forbidden:
Error Responses
If authentication fails, you’ll receive a401 Unauthorized response: