PostEverywhere Platform Rules API
Per-platform composer rules (character limits, media constraints, and feature support) so clients can validate before publishing.
Per-platform composer rules (character limits, media constraints, and feature support) so clients can validate before publishing.
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-platform-rules-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 Platform Rules 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: Platform Rules
description: Per-platform composer rules (character limits, media constraints, and feature support) so clients can validate before publishing.
paths:
/platform-rules:
get:
operationId: getPlatformRules
x-scope: read
x-status: planned
tags:
- Platform Rules
summary: Get platform composer rules
description: 'Server-authoritative composer rules for every supported platform:
character limits, image/video constraints, and feature support
(threads, carousels, reels, alt text, blog posts). WordPress also
carries `blog`: the platform_content.wordpress fields, their limits
and defaults. Google Business Profile carries `local_post`: the
platform_content.google_business fields (post types, buttons, event
and offer fields). Check before composing for an
unfamiliar platform; limits span 300 characters (Bluesky) to 63,206
(Facebook), and some constraints are enforced platform-side only.
Served with an ETag; a newly supported platform appears here with no
client update. Live since 2026-08-17.'
responses:
'200':
description: Map of platform → rules
content:
application/json:
schema:
type: object
required:
- data
- error
- meta
properties:
data:
type: object
description: Keys are platform identifiers (instagram, facebook, x, ...)
additionalProperties:
$ref: '#/components/schemas/PlatformRule'
error:
type: 'null'
meta:
$ref: '#/components/schemas/Meta'
examples:
rules:
value:
data:
x:
characterLimit: 280
mediaTypes:
- image
- video
- gif
maxImages: 4
maxVideoBytes: 536870912
features:
- threads
- polls
instagram:
characterLimit: 2200
mediaTypes:
- image
- video
maxImages: 10
maxVideoBytes: 104857600
features:
- carousels
- reels
- cover_photo
error: null
meta:
request_id: 5d6e7f8a
timestamp: '2026-07-08T09:00:00.000Z'
'401':
$ref: '#/components/responses/Unauthorized'
'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
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
PlatformRule:
type: object
description: Composer rules for one platform
required:
- characterLimit
- mediaTypes
- maxImages
- maxVideoBytes
- features
properties:
characterLimit:
type: integer
mediaTypes:
type: array
items:
type: string
maxImages:
type: integer
maxVideoBytes:
type: integer
features:
type: array
items:
type: string
description: 'WordPress: blog_posts, featured_image, inline_images, tags, categories, post_status. Google Business Profile: local_posts, event_posts, offer_posts, call_to_action_button.'
blog:
type: object
description: WordPress only. The blog post fields (platform_content.wordpress), their limits and defaults.
additionalProperties: true
local_post:
type: object
description: Google Business Profile only. The post fields (platform_content.google_business), their limits and defaults.
additionalProperties: true
ErrorEnvelope:
type: object
required:
- data
- error
- meta
properties:
data:
type: 'null'
error:
$ref: '#/components/schemas/ErrorBody'
meta:
$ref: '#/components/schemas/Meta'
responses:
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.
'