Skip to main content

Authentication

All API requests require a Bearer token in the Authorization header. If you have not set up your account yet, start with the Quick Start guide.

Getting Your API Key

  1. Sign in to PostEverywhere
  2. Go to Settings > Developers
  3. Click Generate API Key
  4. Copy your key — it starts with pe_live_
Keep Your Key Secret

Your API key grants full access to your account. Never expose it in client-side code, public repositories, or browser requests.

Using Your Key

Include the key in every request:

curl https://app.posteverywhere.ai/api/v1/accounts \
-H "Authorization: Bearer pe_live_abc123def456..."

Or with the Node.js SDK:

import { PostEverywhere } from 'posteverywhere';

const client = new PostEverywhere({
apiKey: process.env.POSTEVERYWHERE_API_KEY,
});

Response Format

All responses follow a consistent envelope:

{
"data": { },
"error": null,
"meta": {
"requestId": "req_abc123",
"timestamp": "2026-04-01T10:00:00Z"
}
}

On error:

{
"data": null,
"error": {
"code": "unauthorized",
"message": "Invalid or expired API key"
},
"meta": {
"requestId": "req_abc123"
}
}

Error Codes

StatusCodeDescription
400bad_requestInvalid request body or parameters
401unauthorizedMissing or invalid API key
404not_foundResource doesn't exist
429rate_limitedToo many requests (see Rate Limits)
500internal_errorServer error — retry with backoff

Next Steps

Once your API key is set up, explore the platform guides and API reference: