> ## Documentation Index
> Fetch the complete documentation index at: https://juicer.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List webhook events



## OpenAPI

````yaml /openapi/v1.yaml get /webhook_events
openapi: 3.1.0
info:
  title: Juicer API v1
  version: 1.0.0
  description: >
    The Juicer API provides two products under one API key:


    1. **Integration API** — Programmatically manage feeds, sources, posts, and
    moderation

    2. **Data API** — Query social posts for a handle or hashtag without
    creating a feed


    ## Authentication

    All requests require a Bearer token in the Authorization header:

    ```

    Authorization: Bearer jcr_your_api_key_here

    ```

    API keys can be created on the API dashboard in Juicer,

    **or** programmatically via `POST /v1/authorize` — see step 0 of the

    Quick Start below. No prior signup or dashboard access is required.


    A key acts as its user. Owners and managers reach every feed in the account;
    a

    collaborator's key reaches only the feeds assigned to them, as in the
    dashboard, and

    other feeds answer `404`.


    ## Quick Start


    Create a feed, add a source, and get the embed code:


    ```bash

    # 0. Get an API key (no dashboard needed)

    curl -X POST https://api.juicer.io/v1/authorize \
      -H "Content-Type: application/json" \
      -d '{"email": "you@example.com", "client_name": "My Tool"}'
    # New email → returns `api_key` immediately (temporary until email
    confirmed).

    # Existing user → returns an `authorization_url` (user approves) and a

    # `poll_url`; GET the poll_url until it returns the `api_key`.


    # 1. Check your account

    curl https://api.juicer.io/v1/account \
      -H "Authorization: Bearer jcr_your_key"

    # 2. See available platforms

    curl https://api.juicer.io/v1/platforms \
      -H "Authorization: Bearer jcr_your_key"

    # 3. Create a feed

    curl -X POST https://api.juicer.io/v1/feeds \
      -H "Authorization: Bearer jcr_your_key" \
      -H "Content-Type: application/json" \
      -d '{"name": "My Brand Feed"}'

    # 4. Add a YouTube source

    curl -X POST https://api.juicer.io/v1/feeds/{feed_id}/sources \
      -H "Authorization: Bearer jcr_your_key" \
      -H "Content-Type: application/json" \
      -d '{"platform": "YouTube", "term": "NASA", "term_type": "username"}'

    # 5. Get embed code for your website

    curl https://api.juicer.io/v1/feeds/{feed_id}/embed \
      -H "Authorization: Bearer jcr_your_key"
    ```


    The embed endpoint returns ready-to-use snippets:


    - **JavaScript** — `<script>` tag for any website

    - **iframe** — For platforms that don't allow JavaScript

    - **WordPress shortcode** — `[juicer name='your-feed']`

    - **WordPress PHP** — `<?php juicer_feed('name=your-feed'); ?>`


    ## Discovering Platforms


    Use `GET /platforms` to see all available social media platforms and their

    supported term types (username, hashtag, mentions, etc.) before creating
    sources.

    Each term type includes its OAuth connection requirements, so you know
    upfront

    whether the user needs to connect an account first.


    ## Connecting Social Accounts


    Several platforms require a connected social account before you can create

    sources. The exact list and the per-term-type requirement depend on the

    caller's account configuration — always discover requirements at runtime

    from `GET /platforms` (the `requires_connection` field on each term type)

    or `GET /social_accounts/status`. The flow when a connection is needed:


    1. `GET /social_accounts/status` — check which platforms need connecting

    2. `POST /social_accounts/connect_url` with `{"provider": "facebook"}` —
    generates a magic link

    3. User clicks the link — it signs them in and starts the authorization flow
    (no Juicer login needed)

    4. `GET /social_accounts` — verify the account is now connected

    5. Create sources for that platform as normal


    The magic link expires in 30 minutes and can only be used once. This makes

    it suitable for AI agents and CLI tools that need to walk a user through

    social account setup.


    **Note:** If you try to create a source that requires a connected account

    and none is available, the API returns a `422` error with

    `error.code = "social_account_required"` and an `error.action` containing

    a magic link the user can click to complete the connection.


    ## Plan Limits


    One plan governs all of an account's feeds and sources, whether they were
    created in the dashboard,

    through this API or through the MCP:


    - **A paid feed plan** (any plan other than Free and Trial) governs whenever
    the account has one, whatever its API plan.

    - **Free or Trial** governs while the account has no paid API plan (only
    Sandbox).

    - **A paid API plan** (Launch and up) governs a Free or Trial account.


    Under a feed plan (the first two), feeds and sources count toward that
    plan's limits and use no API

    credits. If you hit a limit, the API returns a `422` error with `error.code
    = "feed_limit_reached"`

    or `"source_limit_reached"`, along with an `error.action` of type
    `"upgrade_plan"` that includes a

    magic link to the upgrade page with the correct plan pre-selected. Every
    feed plan but Enterprise, Custom

    and Archive also caps how many sources the account can create: per rolling
    24 hours (`"daily_source_creation_limit_reached"`) and

    per rolling 30 days, three times the daily cap
    (`"monthly_source_creation_limit_reached"`). Both caps count

    sources that were deleted since, and sources on deleted feeds.


    Under a paid API plan, feeds and sources have no plan limits or creation
    caps, only a source limit the

    feed's owner or manager set on the feed, refused with
    `"source_limit_reached"` and no

    `error.action`, since no upgrade lifts it. Each source's first

    fetch and each successful sync use API credits instead; a create the balance
    can't cover is refused

    with `402` and `error.code = "insufficient_credits"`. Data API lookups use
    credits under every plan.
servers:
  - url: https://api.juicer.io/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Quickstart
    description: Get an API key with just an email, no dashboard required
  - name: Account
    description: Account info, usage, and limits
  - name: Platforms
    description: Discover available platforms and term types
  - name: Social Accounts
    description: Manage OAuth social account connections needed for certain platforms
  - name: Feeds
    description: Manage feeds (create, update, delete, list)
  - name: Sources
    description: Manage sources within feeds
  - name: Posts
    description: Read, search, and moderate posts
  - name: Embed
    description: Get embed code snippets for your website
  - name: Search
    description: Search posts across all feeds
  - name: Analytics
    description: Feed engagement analytics and performance
  - name: Webhooks
    description: Webhook subscriptions and event delivery
  - name: Data API
    description: One-off post lookups for a handle or hashtag without creating a feed
  - name: Publishing
    description: >
      Publish to connected social accounts (channels) from your own app.
      Connecting a

      channel is a browser round-trip the end customer completes on the network;
      each

      connected channel is billed from the moment it connects to the end of the
      publishing

      billing cycle (which starts with the first channel) and monthly after
      that, with no

      refunds for partial months. See the [Publishing guide](/publishing).
paths:
  /webhook_events:
    get:
      tags:
        - Webhooks
      summary: List webhook events
      operationId: listWebhookEvents
      parameters:
        - $ref: '#/components/parameters/Page'
        - $ref: '#/components/parameters/PerPage'
        - name: event_type
          in: query
          schema:
            type: string
            enum:
              - post.created
              - social_account.expiring
              - social_account.expired
              - publishing.post.published
              - publishing.post.failed
              - publishing.channel.expired
      responses:
        '200':
          description: Events listed
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/WebhookEvent'
                  meta:
                    $ref: '#/components/schemas/PaginationMeta'
components:
  parameters:
    Page:
      name: page
      in: query
      schema:
        type: integer
        default: 1
    PerPage:
      name: per_page
      in: query
      schema:
        type: integer
        default: 25
        maximum: 100
  schemas:
    WebhookEvent:
      type: object
      description: |
        An event as returned by the API. Note the field names differ from the
        delivered webhook body: `event_type` is `event` there, and `payload` is
        the `data` member. See `WebhookDeliveryBody`.
      properties:
        id:
          type: integer
          description: |
            Also sent as `id` in the delivered body, where it is the idempotency
            key. Use it to look this event up and reconcile a delivery.
        event_type:
          type: string
          enum:
            - post.created
            - social_account.expiring
            - social_account.expired
            - publishing.post.published
            - publishing.post.failed
            - publishing.channel.expired
        payload:
          description: >
            The event's data. Delivered as the `data` member of the webhook
            body,

            not as the whole body.
          oneOf:
            - $ref: '#/components/schemas/PostCreatedData'
            - $ref: '#/components/schemas/SocialAccountExpiryData'
            - $ref: '#/components/schemas/PublishingPostEventData'
            - $ref: '#/components/schemas/PublishingChannelEventData'
            - $ref: '#/components/schemas/WebhookTestData'
        resource_type:
          type: string
          nullable: true
        resource_id:
          type: integer
          nullable: true
        created_at:
          type: string
          format: date-time
        deliveries:
          type: array
          description: Present only on single event endpoint
          items:
            $ref: '#/components/schemas/WebhookDelivery'
    PaginationMeta:
      type: object
      properties:
        page:
          type: integer
        per_page:
          type: integer
        total_count:
          type: integer
        total_pages:
          type: integer
    PostCreatedData:
      type: object
      description: >
        Sent for `post.created`. One event covers a whole sync, so `posts` holds

        every post that sync newly created — a source's first sync commonly

        carries tens of posts. Posts the sync merely updated (refreshed

        engagement counts, edited captions) are not included.


        Posts held for moderation are included; check `moderation_status` if you

        only want ones visible in the feed.


        **`moderation_status` is the state at ingestion, not a settled
        verdict.**

        A post queued for AI moderation is delivered as `moderated` and is

        commonly approved a few seconds later; a human can approve or reject at

        any time after that. Neither sends another event — `post.created` is the

        only post event Juicer emits. A subscriber that keeps only `public`

        posts from this payload therefore drops posts that did become public, so

        re-read them through `GET /feeds/{feed_id}/posts` for the settled
        status.
      required:
        - posts
        - feed
        - source
      properties:
        posts:
          type: array
          items:
            $ref: '#/components/schemas/FeedPost'
        feed:
          type: object
          properties:
            id:
              type: integer
            name:
              type: string
        source:
          type: object
          properties:
            id:
              type: integer
            platform:
              type: string
    SocialAccountExpiryData:
      type: object
      description: >
        Sent for `social_account.expiring` (the token expires within five days)

        and `social_account.expired` (it already has). Each fires at most once
        per

        token; reconnecting or refreshing the connection arms them again.


        **Do not treat `expiring` as a guaranteed precursor to `expired`.** A

        connection that breaks outright skips straight to `expired`, and so can

        one that lapses between two scans.


        Timing: when a sync discovers a dead token, `expired` is sent

        immediately. Tokens that simply lapse are picked up by the next hourly

        scan. That scan only considers tokens that died within the last seven

        days, so a webhook registered long after a token died receives nothing

        for it.


        Connections whose provider issues no expiry date, such as Twitter, only

        ever produce `social_account.expired`, and only once a sync discovers
        the

        token is dead.
      required:
        - social_account
      properties:
        social_account:
          $ref: '#/components/schemas/SocialAccount'
    PublishingPostEventData:
      type: object
      description: |
        Sent for `publishing.post.published` (every channel the post was sent to
        has it live) and `publishing.post.failed` (at least one channel refused
        it; the others may be live). Each fires once per post, when its status
        settles, not once per channel: read `post.targets` for the per-channel
        outcome. A retry that settles again fires again.
      required:
        - post
      properties:
        post:
          $ref: '#/components/schemas/PublishingPost'
    PublishingChannelEventData:
      type: object
      description: >
        Sent for `publishing.channel.expired`: the channel's authorization at
        the

        network has lapsed or been revoked, and posts sent to it will fail until

        it is reconnected. Fires once per lapse; reconnecting arms it again.
      required:
        - channel
      properties:
        channel:
          $ref: '#/components/schemas/PublishingChannel'
    WebhookTestData:
      type: object
      description: |
        Sent only by `POST /webhooks/{id}/test`, under whichever event you
        subscribed to first. Present so you can exercise your endpoint and
        signature verification before any real event fires.
      required:
        - test
        - message
        - timestamp
      properties:
        test:
          type: boolean
          const: true
          description: Always true. Use this to tell a test delivery from a real one.
        message:
          type: string
        timestamp:
          type: string
          format: date-time
    WebhookDelivery:
      type: object
      properties:
        id:
          type: integer
        webhook_id:
          type: integer
        webhook_event_id:
          type: integer
        status:
          type: string
          enum:
            - pending
            - success
            - failed
          description: |
            `pending` while this attempt is queued or in flight. `failed` is
            final only on attempt 6 — below that, the retry arrives as a new
            `pending` row for the same event.
        http_status:
          type: integer
          nullable: true
        response_body:
          type: string
          nullable: true
        error_message:
          type: string
          nullable: true
        attempt_number:
          type: integer
          description: |
            Which attempt of this delivery it is, 1 through 6. A redelivery you
            trigger starts a new delivery at 1.
        duration_ms:
          type: integer
          nullable: true
        attempted_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
    FeedPost:
      type: object
      properties:
        id:
          type: integer
        external_id:
          type: string
        platform:
          type: string
        url:
          type: string
          nullable: true
        message:
          type: string
          nullable: true
        external_created_at:
          type: string
          format: date-time
        poster:
          $ref: '#/components/schemas/Poster'
        media:
          type: array
          items:
            $ref: '#/components/schemas/Medium'
        like_count:
          type: integer
          description: >
            Like/reaction count. Present for every platform that has a concept
            of engagement. Omitted entirely for platforms that report none
            (RSS/blog feeds, Google reviews).
        comment_count:
          type: integer
          description: >
            Comment/reply count. Present for every platform that has a concept
            of engagement. Omitted entirely for platforms that report none
            (RSS/blog feeds, Google reviews).
        share_count:
          type: integer
          description: >
            Public share/repost count. Present only for platforms that collect
            it (Facebook, TikTok, X, Bluesky). Omitted entirely for other
            platforms.
        view_count:
          type: integer
          description: >
            Video view count. Present only for YouTube and TikTok. Omitted for
            platforms that don't collect it.
        quote_count:
          type: integer
          description: >
            Number of times the post has been quoted. Present only for X and
            Bluesky. Omitted for platforms that don't collect it.
        bookmark_count:
          type: integer
          description: >
            Bookmark count. Present only for X. Omitted for platforms that don't
            collect it.
        impression_count:
          type: integer
          description: >
            Impression count. Present only for X. Omitted for platforms that
            don't collect it.
        tagged_users:
          type: string
          nullable: true
        moderation_status:
          type: string
          enum:
            - public
            - moderated
            - deleted
            - rejected
            - unavailable
          description: >
            - `public` — visible in the feed

            - `moderated` — held in moderation queue (auto-filtered by
            profanity, text filter, AI moderation, etc.)

            - `deleted` — manually deleted by a user

            - `rejected` — explicitly rejected. May also have been removed by
            the source
              platform, in which case approving or rejecting it returns `post_unavailable`.
            - `unavailable` — removed by the source platform, or its account
            became private.
              Not returned by any `status` filter, and cannot be approved or rejected; it
              returns on its own if the platform serves the post again.
        ai_sentiment:
          type: string
          nullable: true
          enum:
            - positive
            - neutral
            - negative
            - none
          description: >
            AI-classified sentiment of the post. Populated only when AI
            moderation ran for this post; null otherwise.
        ai_decision_reason:
          type: string
          nullable: true
          enum:
            - harmful_content
            - custom_rule
            - sentiment
            - multiple
          description: >
            Why AI moderation held this post: `harmful_content` (OpenAI flag),
            `custom_rule` (failed an `ai_moderation_rules` rule), `sentiment`
            (sentiment not in `ai_sentiment_filter`), or `multiple`. Null when
            AI moderation did not act on the post.
        ai_moderation_reasoning:
          type: string
          nullable: true
          description: >
            Free-text AI explanation for the moderation decision. Null when AI
            moderation did not act on the post.
        pinned:
          type: boolean
        referenced_post:
          $ref: '#/components/schemas/ReferencedPost'
          nullable: true
        reshared_by:
          $ref: '#/components/schemas/Poster'
          nullable: true
        created_at:
          type: string
          format: date-time
    SocialAccount:
      type: object
      properties:
        id:
          type: integer
        provider:
          type: string
          description: OAuth provider identifier
          example: facebook
        name:
          type: string
          description: Account name from the provider
        platforms:
          type: array
          description: Source platforms this account enables
          items:
            type: string
          example:
            - Facebook
            - Instagram
        expired:
          type: boolean
        expires_at:
          type: string
          format: date-time
          nullable: true
          description: >-
            Best estimate of when this connection's stored credential stops
            working, or null when no estimate is recorded (which does not imply
            the token never expires — some older facebook connections have a
            null value). What it reflects varies by provider and is not always
            the access token's true expiry: for facebook it is a Juicer-set
            fallback roughly 60 days from the last refresh; for tiktok it is the
            refresh token's lifetime (~365 days), not the shorter access
            token's; for login-only connections such as google_oauth2 it is
            typically about an hour after sign-in. A value in the past does not
            pinpoint when the feed broke: a revoked or invalidated credential is
            only detected on a later sync, and the timestamp is set at
            detection, so the connection may have stopped working earlier. Read
            `expired` for the current known state.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        instagram_business_accounts:
          type: array
          description: Present only for Facebook provider accounts
          items:
            type: object
            properties:
              id:
                type: integer
              username:
                type: string
    PublishingPost:
      type: object
      description: A post created over the Publishing API, with its outcome per channel.
      required:
        - id
        - status
        - targets
        - created_at
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - scheduled
            - publishing
            - published
            - failed
            - removed
          description: |
            `scheduled` until its time comes, `publishing` while channels are
            being sent to, then `published` or `failed` once every channel has
            answered; `removed` once deleted through the API.
        text:
          type: string
          nullable: true
        media:
          type: array
          items:
            type: object
            required:
              - url
              - kind
            properties:
              url:
                type: string
                format: uri
              kind:
                type: string
                enum:
                  - image
                  - video
        first_comment:
          type: string
          nullable: true
        scheduled_at:
          type: string
          format: date-time
          nullable: true
        published_at:
          type: string
          format: date-time
          nullable: true
        failed_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
        targets:
          type: array
          description: One entry per channel the post was sent to.
          items:
            $ref: '#/components/schemas/PublishingPostTarget'
    PublishingChannel:
      type: object
      description: A social network account connected through the Publishing API.
      required:
        - id
        - network
        - network_name
        - status
      properties:
        id:
          type: string
          format: uuid
          description: The channel id posts are addressed to.
        network:
          type: string
          enum:
            - instagram
            - facebook
            - linkedin
            - tiktok
            - twitter
            - reddit
            - youtube
            - bluesky
            - pinterest
            - gmb
            - snapchat
            - telegram
            - threads
        network_name:
          type: string
          description: The network's display name, e.g. `LinkedIn`.
        handle:
          type: string
          nullable: true
          description: The account's handle on the network, as the network reports it.
        display_name:
          type: string
          nullable: true
        account_type:
          type: string
          nullable: true
          description: >-
            The kind of account linked, in our own words, e.g. `Professional
            account` or `Page`. A LinkedIn channel is `Page` for a company page
            and `Profile` for a member's own profile; `Page or profile` until
            the network has said which. The `handle` of a LinkedIn page can be
            the username of the member who connected it.
        profile_url:
          type: string
          format: uri
          nullable: true
        avatar_url:
          type: string
          format: uri
          nullable: true
        status:
          type: string
          enum:
            - connected
            - expiring_soon
            - needs_reconnecting
          description: |
            `needs_reconnecting` when the network wants a fresh authorization or
            the one it had has expired; `expiring_soon` when it expires within
            the next seven days; `connected` otherwise.
        expires_at:
          type: string
          format: date-time
          nullable: true
          description: When the authorization lapses, on networks that say.
        connected_at:
          type: string
          format: date-time
          nullable: true
        last_synced_at:
          type: string
          format: date-time
          nullable: true
    Poster:
      type: object
      properties:
        display_name:
          type: string
        name:
          type: string
        url:
          type: string
          nullable: true
        image:
          type: string
          nullable: true
        platform_id:
          type: string
          nullable: true
    Medium:
      type: object
      properties:
        type:
          type: string
          description: >-
            `link` is a shared article rather than a picture: `url` is the
            destination article and `preview_image_url` is its preview image
            (null when the source offered none, or only one too small to show).
          enum:
            - image
            - video
            - link
        url:
          type: string
        preview_image_url:
          type: string
          nullable: true
        width:
          type: integer
          nullable: true
        height:
          type: integer
          nullable: true
        alt_text:
          type: string
          nullable: true
        platform_id:
          type: string
          nullable: true
    ReferencedPost:
      type: object
      properties:
        poster:
          $ref: '#/components/schemas/Poster'
        message:
          type: string
          nullable: true
        url:
          type: string
          nullable: true
        platform_id:
          type: string
          nullable: true
        post_created_at:
          type: string
          format: date-time
          nullable: true
        media:
          type: array
          items:
            $ref: '#/components/schemas/Medium'
    PublishingPostTarget:
      type: object
      required:
        - channel_id
        - network
        - status
      properties:
        channel_id:
          type: string
          format: uuid
          nullable: true
          description: Null once the channel has been disconnected; the outcome is kept.
        network:
          type: string
          enum:
            - instagram
            - facebook
            - linkedin
            - tiktok
            - twitter
            - reddit
            - youtube
            - bluesky
            - pinterest
            - gmb
            - snapchat
            - telegram
            - threads
        status:
          type: string
          enum:
            - pending
            - scheduled
            - published
            - failed
            - removed
          description: >
            `removed` is a channel a delete took down while another channel of
            the post kept it

            up (`422 delete_refused`); it is out of the post's status, and a
            later `DELETE`

            leaves it alone.
        post_url:
          type: string
          format: uri
          nullable: true
          description: Where the post lives on the network, once published.
        scheduled_at:
          type: string
          format: date-time
          nullable: true
        published_at:
          type: string
          format: date-time
          nullable: true
        error:
          type: object
          nullable: true
          description: >-
            Why this channel failed, in the network's own terms where it gave
            any.
          properties:
            code:
              type: string
              nullable: true
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |
        API key prefixed with `jcr_`. To obtain a key programmatically
        (no dashboard required), see `POST /v1/authorize`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.