PostEverywhere Introspection API
Ask the API who you are: key scopes, organization, quota, and usage. Lets SDKs, CLIs, and AI agents self-configure from a bare API key.
Ask the API who you are: key scopes, organization, quota, and usage. Lets SDKs, CLIs, and AI agents self-configure from a bare API key.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/posteverywhere-ai:posteverywhere-ai-introspection-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PostEverywhere API Reference Introspection API
version: 1.0.1
description: 'Public v1 API for PostEverywhere: schedule and publish content across
13 platforms: X (Twitter), Google Business Profile, Instagram, Facebook, LinkedIn, YouTube,
TikTok, Threads, Pinterest, Bluesky, Telegram, Discord and WordPress.
New here? Start with the Quick Start (first post in 5
minutes) and Authentication. Platform-specific
behavior lives in the Platform Guides, and
media constraints in Media Requirements.
## Authentication
All endpoints (except the device-login pair under `/auth/device`) accept an
API key in the `Authorization` header:
```
Authorization: Bearer pe_live_...
```
Keys are created in the dashboard (Developers) or minted by the CLI device
flow (`POST /auth/device` → `POST /auth/device/token`). Keys carry scopes
(`read`, `write`, `ai`); each operation''s required scope is noted via
`x-scope`. A missing scope returns `403 insufficient_scope`. A browser
session cookie also works as a fallback for interactive testing; scopes are
then implicitly `read, write, ai` and API-key rate limits are skipped.
Auth failures return `401` with codes `invalid_api_key`, `api_key_revoked`,
or `api_key_expired`. Organizations without an active subscription receive
`402 subscription_required` (the error object additionally carries
`subscription_status`).
## Response envelope
Every endpoint responds with the same JSON envelope: a `data` object, an
`error` object and a `meta` object (`meta.request_id`, an 8-character
correlation id, and `meta.timestamp`, ISO 8601). On success `error` is
`null`. On failure `data` is `null` and `error` carries `message`, `code`
(for example `validation_error`), `retryable` and an optional `details`
object.
`error.retryable` is `true` for transient failures (HTTP 5xx and 429) and
`false` for permanent ones; clients should not blindly retry 4xx.
Exception: the auth layer''s own 401/402 responses omit `retryable` and
`meta.request_id` (they carry only `meta.timestamp`).
## Rate limiting
API keys are limited to 60 requests/minute and 1,000 requests/hour.
When the API-key limit is hit the `429` response includes
`X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`
(unix seconds) headers. Every `429` (including posting-budget and
AI-budget limits, which are separate from the API-key limit) includes a
`Retry-After` header (seconds, default 30).
Posting budgets (per user): immediate publishes 60/min, 200/hour,
1,000/day; scheduled posts 100/min, 1,000/hour with no daily cap.
Media uploads: 500/hour, 2,500/day, counted when an upload finishes
(`/media/ID/complete`, a direct upload, or `/media/upload-from-url`),
not at presign.
X: scheduled posts are limited to 100 a day per organisation. A post over
the limit is held and sent when the window reopens; it is not failed.
During a free trial each X account can post 15 times a day.
## Timestamps
All timestamps are ISO 8601. `scheduled_for` request values without an
explicit offset are interpreted as UTC. The `timezone` field is display
metadata only. It never changes when a post fires.'
contact:
name: PostEverywhere Developers
url: https://posteverywhere.ai/docs
servers:
- url: https://app.posteverywhere.ai/api/v1
description: Production
security:
- apiKey: []
tags:
- name: Introspection
description: 'Ask the API who you are: key scopes, organization, quota, and usage. Lets SDKs, CLIs, and AI agents self-configure from a bare API key.'
paths:
/me:
get:
operationId: getMe
x-scope: read
tags:
- Introspection
summary: Get current API key context, organization, quota and usage
description: 'Returns who the key belongs to, its scopes, the organization''s
subscription state, quota usage (accounts, AI credits, storage,
seats) and post counts. Lets SDK/MCP clients self-configure without
being handed `organization_id` etc.'
responses:
'200':
description: Current context
content:
application/json:
schema:
type: object
required:
- data
- error
- meta
properties:
data:
$ref: '#/components/schemas/Me'
error:
type: 'null'
meta:
$ref: '#/components/schemas/Meta'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
components:
schemas:
Meta:
type: object
description: Response metadata. request_id is an 8-char correlation id (absent on auth-layer 401/402).
properties:
request_id:
type: string
timestamp:
type: string
format: date-time
required:
- timestamp
Me:
type: object
required:
- scopes
- user
- organization
- workspace
- quota
- stats
properties:
api_key:
type:
- object
- 'null'
description: null when authenticated via session cookie
properties:
id:
type: string
format: uuid
key_prefix:
type: string
name:
type:
- string
- 'null'
scopes:
type: array
items:
type: string
last_used_at:
type:
- string
- 'null'
format: date-time
created_at:
type: string
format: date-time
expires_at:
type:
- string
- 'null'
format: date-time
scopes:
type: array
items:
type: string
enum:
- read
- write
- ai
user:
type: object
properties:
id:
type: integer
email:
type: string
name:
type:
- string
- 'null'
organization:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
subscription_plan:
type: string
description: 'Uppercased internal plan key: LITE, SOLO (display name Starter), STARTER (display name Growth), GROWTH (display name Scale) or TRIAL; PRO only on legacy organisations'
subscription_status:
type:
- string
- 'null'
subscription_source:
type:
- string
- 'null'
trial_end:
type:
- string
- 'null'
format: date-time
current_period_end:
type:
- string
- 'null'
format: date-time
cancel_at_period_end:
type:
- boolean
- 'null'
entitled:
type: boolean
description: true when subscription_status is active or trialing
workspace:
type: object
properties:
id:
type:
- string
- 'null'
format: uuid
name:
type:
- string
- 'null'
quota:
type: object
properties:
accounts:
type: object
properties:
used:
type: integer
limit:
type: integer
ai_credits:
type: object
properties:
used:
type: integer
limit:
type: integer
bonus:
type: integer
storage_bytes:
type: object
properties:
used:
type: integer
limit:
type: integer
team_seats:
type: object
properties:
limit:
type: integer
stats:
type: object
properties:
posts_last_30d:
type: integer
total_posts:
type: integer
ErrorBody:
type: object
required:
- message
properties:
message:
type: string
code:
type: string
description: Machine-readable error code (e.g. validation_error, not_found, rate_limit_exceeded)
retryable:
type: boolean
description: true for transient failures (5xx, 429). Absent on auth-layer 401/402 errors.
details:
description: Optional structured context specific to the error code
subscription_status:
type: string
description: Present only on 402 subscription_required
additionalProperties: true
ErrorEnvelope:
type: object
required:
- data
- error
- meta
properties:
data:
type: 'null'
error:
$ref: '#/components/schemas/ErrorBody'
meta:
$ref: '#/components/schemas/Meta'
responses:
RateLimited:
description: 'Rate limit exceeded (rate_limit_exceeded, or plan budgets
post_limit_reached / daily_limit_reached on schedulePost). All 429s
carry Retry-After. The API-key limiter additionally sets the
X-RateLimit-* headers and error.details (limit, remaining, reset_at).
'
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
X-RateLimit-Limit:
description: Requests allowed in the window (API-key limiter only)
schema:
type: integer
X-RateLimit-Remaining:
description: Requests remaining (API-key limiter only)
schema:
type: integer
X-RateLimit-Reset:
description: Unix seconds when the window resets (API-key limiter only)
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
data: null
error:
message: API rate limit exceeded (60 requests/min). Please slow down.
code: rate_limit_exceeded
retryable: true
details:
limit: 60
remaining: 0
reset_at: '2026-07-08T09:01:00.000Z'
meta:
request_id: 1a2b3c4d
timestamp: '2026-07-08T09:00:00.000Z'
PaymentRequired:
description: 'No active subscription (code subscription_required; the error object
also carries subscription_status), or insufficient AI credits
(insufficient_credits) / paid plan required (upgrade_required).
'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
data: null
error:
message: Your free trial has ended. Please upgrade to a paid plan to continue using the API.
code: subscription_required
subscription_status: expired
meta:
timestamp: '2026-07-08T09:00:00.000Z'
Forbidden:
description: API key missing the required scope (insufficient_scope), storage quota exceeded (storage_quota_exceeded), or account limit reached (account_limit_reached)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
data: null
error:
message: 'API key missing required scope: ''write''. Your key has scopes: [read]'
code: insufficient_scope
retryable: false
details:
required_scope: write
current_scopes:
- read
meta:
request_id: 1a2b3c4d
timestamp: '2026-07-08T09:00:00.000Z'
ServerError:
description: Internal error (internal_error and endpoint-specific 5xx codes). Retryable.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
data: null
error:
message: Failed to create post. Verify content, account_ids, and optional media_ids/scheduled_for are valid, then retry.
code: internal_error
retryable: true
meta:
request_id: 1a2b3c4d
timestamp: '2026-07-08T09:00:00.000Z'
Unauthorized:
description: 'Missing/invalid/revoked/expired API key (codes invalid_api_key,
api_key_revoked, api_key_expired, api_key_required, auth_failed).
Auth-layer 401s omit error.retryable and meta.request_id.
'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
data: null
error:
message: 'Invalid API key format. Expected: Bearer pe_live_...'
code: invalid_api_key
meta:
timestamp: '2026-07-08T09:00:00.000Z'
securitySchemes:
apiKey:
type: http
scheme: bearer
bearerFormat: pe_live_...
description: 'API key created in the dashboard (Developers) or via the device-login
flow. Keys start with `pe_live_` and carry scopes (read, write, ai);
only a SHA-256 hash is stored server-side. See each operation''s
`x-scope` for the scope it requires.
'