PostEverywhere Webhooks API

Subscribe to real-time post lifecycle events (published, failed, updated) with signed deliveries and automatic retries.

GitHub OpenAPI

Operations 6

GET /webhooks List webhook subscriptions #
POST /webhooks Create a webhook subscription #
GET /webhooks/{id} Get a webhook subscription (without secret) #
PATCH /webhooks/{id} Update a webhook subscription #
DELETE /webhooks/{id} Delete a webhook subscription #
POST /webhooks/{id}/test Send a signed test payload to a webhook URL #

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-webhooks-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-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostEverywhere API Reference Webhooks 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: Webhooks
  description: Subscribe to real-time post lifecycle events (published, failed, updated) with signed deliveries and automatic retries.
paths:
  /webhooks:
    get:
      operationId: listWebhooks
      x-scope: read
      tags:
      - Webhooks
      summary: List webhook subscriptions
      description: The signing secret is never included; it is returned only on creation.
      responses:
        '200':
          description: Webhooks
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - error
                - meta
                properties:
                  data:
                    type: object
                    required:
                    - webhooks
                    properties:
                      webhooks:
                        type: array
                        items:
                          $ref: '#/components/schemas/Webhook'
                  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'
    post:
      operationId: createWebhook
      x-scope: write
      tags:
      - Webhooks
      summary: Create a webhook subscription
      description: 'PostEverywhere POSTs event payloads to your URL, signed with

        HMAC-SHA256 in the `X-PostEverywhere-Signature` header (the value is

        `sha256=` followed by the hex HMAC of the raw body, keyed with the

        returned `secret`).

        Delivery headers also include `X-PostEverywhere-Event`,

        `X-PostEverywhere-Event-Id`, `X-PostEverywhere-Timestamp` and

        `X-PostEverywhere-Delivery-Id`. The `secret` is returned ONLY on

        creation. URLs are SSRF-validated (no localhost/private/metadata

        addresses). Max 25 webhooks per organization

        (`400 limit_reached`). Unknown events → `400 invalid_event_type`.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - url
              - events
              properties:
                url:
                  type: string
                  format: uri
                events:
                  type: array
                  minItems: 1
                  items:
                    $ref: '#/components/schemas/WebhookEventType'
                name:
                  type: string
                  maxLength: 100
                description:
                  type: string
                  maxLength: 500
            example:
              url: https://example.com/hooks/posteverywhere
              events:
              - post.published
              - post.failed
              name: Production notifier
      responses:
        '201':
          description: Created. Includes the one-time signing secret
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - error
                - meta
                properties:
                  data:
                    allOf:
                    - $ref: '#/components/schemas/Webhook'
                    - type: object
                      required:
                      - secret
                      properties:
                        secret:
                          type: string
                          description: whsec_-prefixed signing secret, shown exactly once
                        secret_warning:
                          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'
  /webhooks/{id}:
    get:
      operationId: getWebhook
      x-scope: read
      tags:
      - Webhooks
      summary: Get a webhook subscription (without secret)
      description: 'Fetch one webhook subscription: URL, subscribed events, active

        state, and delivery stats. The signing secret is only returned at

        creation time.'
      parameters:
      - $ref: '#/components/parameters/WebhookId'
      responses:
        '200':
          description: Webhook
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - error
                - meta
                properties:
                  data:
                    $ref: '#/components/schemas/Webhook'
                  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'
    patch:
      operationId: updateWebhook
      x-scope: write
      tags:
      - Webhooks
      summary: Update a webhook subscription
      description: 'At least one of url, events, name, description, is_active is required.

        Setting `is_active: true` on a disabled webhook clears the

        auto-disabled marker and resets its failure counter. URL changes are

        re-validated with the same SSRF rules as creation.'
      parameters:
      - $ref: '#/components/parameters/WebhookId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              minProperties: 1
              properties:
                url:
                  type: string
                  format: uri
                events:
                  type: array
                  minItems: 1
                  items:
                    $ref: '#/components/schemas/WebhookEventType'
                name:
                  type:
                  - string
                  - 'null'
                  maxLength: 100
                description:
                  type:
                  - string
                  - 'null'
                  maxLength: 500
                is_active:
                  type: boolean
      responses:
        '200':
          description: Updated webhook
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - error
                - meta
                properties:
                  data:
                    $ref: '#/components/schemas/Webhook'
                  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'
    delete:
      operationId: deleteWebhook
      x-scope: write
      tags:
      - Webhooks
      summary: Delete a webhook subscription
      description: Cascades to stored deliveries.
      parameters:
      - $ref: '#/components/parameters/WebhookId'
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - error
                - meta
                properties:
                  data:
                    type: object
                    required:
                    - id
                    - deleted
                    properties:
                      id:
                        type: string
                        format: uuid
                      deleted:
                        type: boolean
                        const: true
                  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'
  /webhooks/{id}/test:
    post:
      operationId: testWebhook
      x-scope: write
      tags:
      - Webhooks
      summary: Send a signed test payload to a webhook URL
      description: 'Sends a synthetic ping (payload has `data.test: true`) so you can

        verify signature validation end-to-end. The delivery result is

        returned inline; no delivery row is stored. Always responds 200;

        check `data.ok` for the delivery outcome.'
      parameters:
      - $ref: '#/components/parameters/WebhookId'
      responses:
        '200':
          description: Test delivery result (ok=false means your endpoint failed)
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - error
                - meta
                properties:
                  data:
                    type: object
                    required:
                    - ok
                    properties:
                      ok:
                        type: boolean
                      status:
                        type:
                        - integer
                        - 'null'
                        description: HTTP status your endpoint returned
                      duration_ms:
                        type: integer
                      error:
                        type:
                        - string
                        - 'null'
                      message:
                        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
    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
    WebhookEventType:
      type: string
      description: 'Events you can subscribe to. These fire today: post.scheduled (a post was created in the app or through the API, to publish now or later, or a draft was scheduled), post.published, post.failed, post.partially_failed, post.warning, post.deleted, post.approval_requested, post.approved, post.changes_requested, account.disconnected, account.reconnect_needed, media.uploaded (a direct upload finished with POST /media/ID/complete; not sent for upload-from-url) and media.deleted. post.publishing, post.updated and account.connected are accepted but never sent yet.'
      enum:
      - post.scheduled
      - post.publishing
      - post.published
      - post.failed
      - post.partially_failed
      - post.warning
      - post.updated
      - post.deleted
      - account.connected
      - account.disconnected
      - account.reconnect_needed
      - media.uploaded
      - media.deleted
      - post.approval_requested
      - post.approved
      - post.changes_requested
    Webhook:
      type: object
      required:
      - id
      - url
      - events
      - is_active
      - created_at
      - updated_at
      properties:
        id:
          type: string
          format: uuid
        url:
          type: string
          format: uri
        events:
          type: array
          items:
            $ref: '#/components/schemas/WebhookEventType'
        name:
          type:
          - string
          - 'null'
        description:
          type:
          - string
          - 'null'
        is_active:
          type: boolean
        consecutive_failures:
          type: integer
        auto_disabled_at:
          type:
          - string
          - 'null'
          format: date-time
          description: Set when repeated delivery failures auto-disabled the webhook
        last_delivery_at:
          type:
          - string
          - 'null'
          format: date-time
        last_success_at:
          type:
          - string
          - 'null'
          format: date-time
        last_failure_at:
          type:
          - string
          - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        updated_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:
    WebhookId:
      name: id
      in: path
      required: true
      description: Webhook UUID
      schema:
        type: string
        format: uuid
  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.

        '