PostEverywhere Accounts API

List and inspect connected social accounts across all 13 platforms, including per-account publish health and reconnect status.

GitHub OpenAPI

Operations 6

GET /accounts List connected social accounts #
GET /accounts/{id} Get a single connected social account #
GET /accounts/{id}/health Get a detailed health report for an account #
POST /accounts/connect-credential Connect telegram, discord, bluesky or wordpress directly with credentials #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/posteverywhere-ai:posteverywhere-ai-accounts-api"
All apis
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.

Get an API 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 Specification

posteverywhere-ai-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostEverywhere API Reference Accounts 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: Accounts
  description: List and inspect connected social accounts across all 13 platforms, including per-account publish health and reconnect status.
paths:
  /accounts:
    get:
      operationId: listAccounts
      x-scope: read
      tags:
      - Accounts
      summary: List connected social accounts
      description: 'Returns all active social accounts in the organization with a brief

        health block per account. Not paginated. Facebook-flow Instagram rows

        that have an Instagram-direct sibling are excluded (they are hidden in

        the dashboard too).'
      responses:
        '200':
          description: Accounts
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - error
                - meta
                properties:
                  data:
                    type: object
                    required:
                    - accounts
                    properties:
                      accounts:
                        type: array
                        items:
                          $ref: '#/components/schemas/SocialAccount'
                  error:
                    type: 'null'
                  meta:
                    $ref: '#/components/schemas/Meta'
              examples:
                accounts:
                  value:
                    data:
                      accounts:
                      - id: 2280
                        platform: instagram
                        account_name: acme.co
                        avatar_url: https://cdn.posteverywhere.ai/avatars/2280.jpg
                        is_active: true
                        created_at: '2026-05-01T10:00:00.000Z'
                        health:
                          status: healthy
                          can_post: true
                          needs_reconnection: false
                    error: null
                    meta:
                      request_id: 9f2c1a3b
                      timestamp: '2026-07-08T09:00:00.000Z'
        '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'
  /accounts/{id}:
    get:
      operationId: getAccount
      x-scope: read
      tags:
      - Accounts
      summary: Get a single connected social account
      description: 'Account IDs are integers (as returned by `GET /accounts`), not UUIDs.

        Non-numeric IDs return `400 invalid_id`.'
      parameters:
      - $ref: '#/components/parameters/AccountId'
      responses:
        '200':
          description: Account
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - error
                - meta
                properties:
                  data:
                    $ref: '#/components/schemas/SocialAccount'
                  error:
                    type: 'null'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
  /accounts/{id}/health:
    get:
      operationId: getAccountHealth
      x-scope: read
      tags:
      - Accounts
      summary: Get a detailed health report for an account
      description: 'Tells clients whether an account is currently usable (token alive, no

        reconnection required, recent publish activity). `status` verdicts:

        `healthy` (post away), `warning` (`recent_permanent_failures` or

        `token_expiring_soon`; posting still allowed), `broken`

        (`account_inactive`, `needs_reconnection` or `token_expired`;

        `can_post` is false).'
      parameters:
      - $ref: '#/components/parameters/AccountId'
      responses:
        '200':
          description: Health report
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - error
                - meta
                properties:
                  data:
                    $ref: '#/components/schemas/AccountHealthReport'
                  error:
                    type: 'null'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
  /accounts/connect-link:
    post:
      operationId: createConnectLink
      x-scope: write
      tags:
      - Accounts
      summary: Mint an OAuth connect link for a new social account
      description: 'Returns a short-lived (10 minute) authorization URL for connecting a

        NEW account on an OAuth platform: `x`, `instagram`, `facebook`,

        `youtube`, `pinterest`, `threads`, `linkedin`, `tiktok`,

        `google_business`. For `google_business` (Google Business Profile) the

        owner signs in with the Google account that owns or manages the

        business; if it manages several businesses, they choose which to

        add, and each one becomes its own account. Hand the URL

        to the account owner; they approve in any browser (logged in to

        PostEverywhere or not, identity is carried in the signed state), and

        the account lands in this organization. Poll `GET /accounts` until it

        appears. For `telegram`, `discord`, `bluesky`, `wordpress` use

        `POST /accounts/connect-credential` instead, no browser needed.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - platform
              properties:
                platform:
                  type: string
                  enum:
                  - x
                  - instagram
                  - facebook
                  - youtube
                  - pinterest
                  - threads
                  - linkedin
                  - tiktok
                  - google_business
      responses:
        '200':
          description: Connect link minted
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - error
                - meta
                properties:
                  data:
                    type: object
                    properties:
                      platform:
                        type: string
                      url:
                        type: string
                        description: Authorization URL to open in a browser
                      expires_in_seconds:
                        type: integer
                        example: 600
                      instructions:
                        type: string
                  error:
                    type: 'null'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '400':
          $ref: '#/components/responses/BadRequest'
        '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'
  /accounts/connect-credential:
    post:
      operationId: connectCredentialAccount
      x-scope: write
      tags:
      - Accounts
      summary: Connect telegram, discord, bluesky or wordpress directly with credentials
      description: 'Connects a credential-based platform entirely through the API, no

        browser involved. Credentials are validated live against the platform

        before saving; invalid credentials return a 400 with the reason.

        Re-submitting credentials for an already-connected account updates it

        in place (this is also how these platforms reconnect).

        Required fields by platform: telegram needs `bot_token` (from

        @BotFather; the bot must be an admin of the channel) and `channel`

        (@username or numeric chat id); discord needs `webhook_url`; bluesky

        needs `handle` and `app_password` (an app password, never the main

        account password); wordpress needs `site_url`, `username` and

        `app_password` (a WordPress Application Password from the WordPress user profile page,

        never the login password; WordPress 5.6+). WordPress.com sites

        connect in the PostEverywhere app (browser sign-in), not through

        this endpoint.

        Error codes: `missing_credentials` (a required field is empty),

        `invalid_platform` (not a credential platform),

        `credential_connect_failed` (the platform refused the credentials;

        the message says why, e.g. a wrong Application Password or a site

        with the REST API turned off).'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - platform
              properties:
                platform:
                  type: string
                  enum:
                  - telegram
                  - discord
                  - bluesky
                  - wordpress
                bot_token:
                  type: string
                  description: telegram only
                channel:
                  type: string
                  description: 'telegram only: @username or chat id'
                webhook_url:
                  type: string
                  description: discord only
                handle:
                  type: string
                  description: bluesky only, e.g. me.bsky.social
                app_password:
                  type: string
                  description: bluesky or wordpress
                site_url:
                  type: string
                  format: uri
                  description: wordpress only, e.g. https://example.com
                username:
                  type: string
                  description: 'wordpress only: the WordPress login name'
            examples:
              wordpress:
                summary: Self-hosted WordPress site
                value:
                  platform: wordpress
                  site_url: https://example.com
                  username: editor
                  app_password: abcd efgh ijkl mnop qrst uvwx
              bluesky:
                summary: Bluesky
                value:
                  platform: bluesky
                  handle: me.bsky.social
                  app_password: xxxx-xxxx-xxxx-xxxx
      responses:
        '200':
          description: Account connected
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - error
                - meta
                properties:
                  data:
                    type: object
                    properties:
                      platform:
                        type: string
                      connected:
                        type: boolean
                      account:
                        type: object
                        nullable: true
                      instructions:
                        type: string
                  error:
                    type: 'null'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '400':
          $ref: '#/components/responses/BadRequest'
        '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'
  /accounts/{id}/reconnect:
    post:
      operationId: createReconnectLink
      x-scope: write
      tags:
      - Accounts
      summary: Mint an OAuth link to repair an existing broken account
      description: 'Returns a short-lived (10 minute) authorization URL that repairs an

        EXISTING OAuth account whose token died (`needs_reconnection` or

        `token_expired` from the health endpoint). The owner must approve

        while logged in to the platform as that same profile; matching is by

        the platform''s account id, so authorizing as a different profile

        creates a new account instead. Verify with

        `GET /accounts/ID/health` afterwards. Credential platforms

        (telegram, discord, bluesky, wordpress) reconnect by re-submitting credentials

        via `POST /accounts/connect-credential`.'
      parameters:
      - $ref: '#/components/parameters/AccountId'
      responses:
        '200':
          description: Reconnect link minted
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - error
                - meta
                properties:
                  data:
                    type: object
                    properties:
                      account_id:
                        type: integer
                      platform:
                        type: string
                      account_name:
                        type: string
                      url:
                        type: string
                      expires_in_seconds:
                        type: integer
                        example: 600
                      instructions:
                        type: string
                  error:
                    type: 'null'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '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
    SocialAccount:
      type: object
      required:
      - id
      - platform
      - account_name
      - is_active
      - created_at
      - health
      properties:
        id:
          type: integer
          description: Integer account ID. Use this in account_ids and path params
        platform:
          type: string
          description: 'Known values: instagram, facebook, x, linkedin, youtube, tiktok, threads, pinterest, bluesky, telegram, discord, wordpress, google_business'
        account_name:
          type: string
        avatar_url:
          type:
          - string
          - 'null'
        is_active:
          type: boolean
        created_at:
          type: string
          format: date-time
        health:
          type: object
          required:
          - status
          - can_post
          properties:
            status:
              type: string
              enum:
              - healthy
              - unhealthy
              - expired
              - needs_reconnection
              description: needs_reconnection appears only in listAccounts (getAccount reports healthy/unhealthy/expired)
            can_post:
              type: boolean
            needs_reconnection:
              type: boolean
              description: Present in listAccounts only
        wordpress_site:
          type: object
          description: getAccount only, WordPress accounts only. The site blog posts publish to (never credentials).
          properties:
            url:
              type:
              - string
              - 'null'
              format: uri
            name:
              type:
              - string
              - 'null'
            kind:
              type:
              - string
              - 'null'
              description: self_hosted (Application Password) or wpcom (WordPress.com)
        google_business:
          type: object
          description: getAccount only, Google Business Profile accounts only. The business posts publish to (never tokens).
          properties:
            title:
              type:
              - string
              - 'null'
            address:
              type:
              - string
              - 'null'
            maps_uri:
              type:
              - string
              - 'null'
              format: uri
            verified:
              type:
              - boolean
              - 'null'
            can_post:
              type:
              - boolean
              - 'null'
              description: false when Google does not allow posts on this business yet (usually not verified).
    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
    AccountHealthReport:
      type: object
      required:
      - account_id
      - platform
      - status
      - can_post
      - reasons
      - is_active
      - needs_reconnection
      - token
      - activity
      properties:
        account_id:
          type: integer
        platform:
          type: string
        account_name:
          type: string
        platform_account_id:
          type:
          - string
          - 'null'
          description: The account's ID on the platform itself
        status:
          type: string
          enum:
          - healthy
          - warning
          - broken
        can_post:
          type: boolean
        reasons:
          type: array
          description: Why status is not healthy
          items:
            type: string
            enum:
            - account_inactive
            - needs_reconnection
            - token_expired
            - recent_permanent_failures
            - token_expiring_soon
        is_active:
          type: boolean
        needs_reconnection:
          type: boolean
        needs_reconnection_since:
          type:
          - string
          - 'null'
          format: date-time
        token:
          type: object
          properties:
            expires_at:
              type:
              - string
              - 'null'
              format: date-time
            last_refresh:
              type:
              - string
              - 'null'
              format: date-time
            expired:
              type: boolean
            expiring_soon:
              type: boolean
              description: Expires within 7 days
        activity:
          type: object
          properties:
            last_published_at:
              type:
              - string
              - 'null'
              format: date-time
            failures_last_7d:
              type: integer
            permanent_failures_last_7d:
              type: integer
            queued_count:
              type: integer
        connected_at:
          type: string
          format: date-time
    ErrorEnvelope:
      type: object
      required:
      - data
      - error
      - meta
      properties:
        data:
          type: 'null'
        error:
          $ref: '#/components/schemas/ErrorBody'
        meta:
          $ref: '#/components/schemas/Meta'
  responses:
    BadRequest:
      description: Validation error; see error.code and error.details
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            data: null
            error:
              message: account_ids is required and must be a non-empty array. Use GET /accounts to find your account IDs.
              code: account_ids_required
              retryable: false
            meta:
              request_id: 1a2b3c4d
              timestamp: '2026-07-08T09:00:00.000Z'
    NotFound:
      description: Resource not found in your organization/workspace (not_found)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            data: null
            error:
              message: Post not found. Verify the post ID belongs to your organization.
              code: not_found
              retryable: false
            meta:
              request_id: 1a2b3c4d
              timestamp: '2026-07-08T09:00:00.000Z'
    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'
  parameters:
    AccountId:
      name: id
      in: path
      required: true
      description: Social account ID (integer, as returned by listAccounts)
      schema:
        type: integer
        minimum: 1
  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.

        '