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

Error Responses

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