> ## 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.

# Create a new feed

> Creates a new feed.

Returns `422` with:

- `error.code = "feed_limit_reached"` and an upgrade action when your plan's feed limit is reached.
- `error.code = "validation_failed"` when the feed can't be assigned to its users, for example
  because another request took the last feed slot. Nothing is created, and `details` lists the
  assignment's errors (`feed_count`, `user_id`) rather than feed fields.
- `error.code = "invalid_template"` when `template` is blank or not a template your account can
  use; `details.available_templates` lists the ones it can. Nothing is created.
- `error.code = "template_not_supported"` when `template` is sent and your account's new feeds
  are not Feeds 2.0 feeds. Nothing is created.

**Safe retries.** Send an `Idempotency-Key` header. After a timeout or a `5xx`, retry with the
same key and body: the feed may have been created anyway, and the retry returns it with `200`
and `meta.replayed: true` instead of creating a second one.

- `409` `idempotency_request_in_progress`: the first request is still running. Wait
  `Retry-After` seconds and retry.
- `422` `idempotency_key_reused`: the key was already used for a different request. The same
  body for another `user_id` counts as a different request.
- A request rejected with a `4xx` doesn't use up the key, so you can fix it and retry with the
  same key.

Keys are UTF-8 text of up to 255 characters, belong to your account and don't expire. One key
can create one feed and one source. Deleting the feed frees its key.




## OpenAPI

````yaml /openapi/v1.yaml post /feeds
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:
  /feeds:
    post:
      tags:
        - Feeds
      summary: Create a new feed
      description: >
        Creates a new feed.


        Returns `422` with:


        - `error.code = "feed_limit_reached"` and an upgrade action when your
        plan's feed limit is reached.

        - `error.code = "validation_failed"` when the feed can't be assigned to
        its users, for example
          because another request took the last feed slot. Nothing is created, and `details` lists the
          assignment's errors (`feed_count`, `user_id`) rather than feed fields.
        - `error.code = "invalid_template"` when `template` is blank or not a
        template your account can
          use; `details.available_templates` lists the ones it can. Nothing is created.
        - `error.code = "template_not_supported"` when `template` is sent and
        your account's new feeds
          are not Feeds 2.0 feeds. Nothing is created.

        **Safe retries.** Send an `Idempotency-Key` header. After a timeout or a
        `5xx`, retry with the

        same key and body: the feed may have been created anyway, and the retry
        returns it with `200`

        and `meta.replayed: true` instead of creating a second one.


        - `409` `idempotency_request_in_progress`: the first request is still
        running. Wait
          `Retry-After` seconds and retry.
        - `422` `idempotency_key_reused`: the key was already used for a
        different request. The same
          body for another `user_id` counts as a different request.
        - A request rejected with a `4xx` doesn't use up the key, so you can fix
        it and retry with the
          same key.

        Keys are UTF-8 text of up to 255 characters, belong to your account and
        don't expire. One key

        can create one feed and one source. Deleting the feed frees its key.
      operationId: createFeed
      parameters:
        - $ref: '#/components/parameters/IdempotencyKeyOptional'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: Feed name
                  example: My Brand Feed
                template:
                  $ref: '#/components/schemas/FeedTemplate'
                sync_interval:
                  type: integer
                  nullable: true
                  description: >
                    How often the feed's sources are synced, in minutes. Allowed
                    values are the standard sync frequencies `1`, `5`, `10`,
                    `30`, `60`, `240`, and `1440` (once a day). Use `0` to
                    archive the feed (stop updating it). Omit the field or send
                    `null` to use your plan's default sync frequency (once a day
                    on most plans). Setting it requires a plan that supports
                    per-feed sync frequency; on other plans the request returns
                    `422` with `error.code = "sync_interval_not_available"`. On
                    an account a paid API plan governs (see Plan Limits) an
                    invalid value is rejected with `422` (`error.code =
                    "invalid_sync_interval"`), and each successful sync of a
                    source consumes API credits, so a faster interval consumes
                    credits proportionally faster (an hourly feed spends roughly
                    24x what a daily feed does); when the balance runs out the
                    feed's sources pause until it is topped up.
                  example: 60
      responses:
        '200':
          description: Replay of an earlier request with the same Idempotency-Key and body
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Feed'
                  meta:
                    type: object
                    properties:
                      replayed:
                        type: boolean
        '201':
          description: Feed created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Feed'
        '409':
          $ref: '#/components/responses/IdempotencyRequestInProgress'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
components:
  parameters:
    IdempotencyKeyOptional:
      name: Idempotency-Key
      in: header
      required: false
      schema:
        type: string
        maxLength: 255
      description: >
        Optional. A unique string per record you intend to create; reuse it on
        retries of the same

        request so a retry cannot create a second one. Without it, a retried
        request is not

        deduplicated and may create a second record.
  schemas:
    FeedTemplate:
      type: string
      description: >
        The feed's look, by template name: picking one does what picking it in
        the dashboard does, and it goes live at once. The template's layout and
        style and its content settings (post order, photo/video filter, display
        filter, poll) replace the feed's own. Expanded posts are cleared, and
        the hero post is the template's (the first post for the Highlights
        templates, none otherwise). Colours are decided separately for the live
        and the draft settings: each keeps all its colours, light/dark mode
        included, when any of them differs from its current template's preset
        colours, and otherwise (or when it has no template) takes the new
        template's. A feed showing an AI design switches back to the standard
        layout. Send a template name; `null` or an empty value is refused
        (`invalid_template` on a feed that takes templates,
        `template_not_supported` otherwise). Pending dashboard changes to these
        settings, including a different pending template, are replaced too.
        Standard templates are listed first and premium themes after them;
        premium themes need a paid plan or the trial (or support enabling them),
        and otherwise answer `invalid_template`.
      enum:
        - Grid Masonry
        - Grid Default
        - Grid Minimal
        - Grid Highlights
        - Grid Dark
        - Slider Default
        - Slider Minimal
        - Slider Highlights
        - Slider Widget
        - Slider Dark
        - List Default
        - List Dark
        - Admissions
        - Arena
        - Campus
        - Clinic
        - Field Notes
        - Front Page
        - Hot board
        - Newsroom
        - Spotlight
        - Stay
        - Storefront
        - Studio
      example: Slider Dark
    Feed:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        slug:
          type: string
        sources_count:
          type: integer
        created_via_api:
          type: boolean
          readOnly: true
          description: >
            `true` when the feed was created through this API. A label only:
            limits and credits follow the plan that governs the account (see
            Plan Limits), wherever the feed was created.
        sync_interval:
          type: integer
          nullable: true
          description: >
            The per-feed sync frequency override in minutes, or `null` when the
            feed uses its plan's default. `0` means the feed is archived and not
            updated.
        update_frequency:
          type: integer
          nullable: true
          description: >
            The effective sync frequency in minutes applied to the feed: the
            `sync_interval` override when one is set, otherwise the plan's
            default. `null` when the plan has no default frequency configured.
        template:
          type: string
          nullable: true
          description: >
            The template the feed's live settings are on (one of
            `FeedTemplate`). A feed showing an AI design reports the template it
            falls back to. `null` when the feed's embed is not on Feeds 2.0 or
            the feed has no template set.
        moderation:
          type: object
          properties:
            enabled:
              type: boolean
            allowed:
              type: string
              nullable: true
            disallowed:
              type: string
              nullable: true
            profanity_filter:
              type: boolean
            prevent_duplicates:
              type: boolean
            deduplication_strategy:
              type: string
              enum:
                - prioritize_top_source
                - distribute_across_sources
            ai_moderation_available:
              type: boolean
              description: >-
                Whether the account's plan supports AI moderation (Pro or
                higher).
            ai_moderation:
              type: boolean
              description: Whether AI moderation is enabled for this feed.
            ai_harmful_content_filter:
              type: boolean
              description: Whether the OpenAI harmful-content check is enabled.
            ai_moderation_rules:
              type: string
              nullable: true
              description: Natural-language AI moderation rules, or null if unset.
            ai_sentiment_filter:
              type: array
              description: Allowed post sentiments. Empty when sentiment filtering is off.
              items:
                type: string
                enum:
                  - positive
                  - neutral
                  - negative
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: >
                Machine-readable error code. Possible values:

                - `unauthorized` — Missing or invalid API key

                - `forbidden` — Caller is not permitted (see `message`)

                - `not_found` — Resource not found

                - `parameter_missing` — Required parameter not provided

                - `validation_failed` — Model validation failed (see `details`)

                - `feed_limit_reached` — Plan's feed limit exceeded (see
                `action`)

                - `source_limit_reached` — Feed's source limit exceeded (see
                `action`; none for an owner-set limit under a paid API plan)

                - `daily_source_creation_limit_reached` — The account created as
                many sources as its plan allows in 24 hours (see `action`)

                - `monthly_source_creation_limit_reached` — The account created
                as many sources as its plan allows in 30 days (see `action`)

                - `insufficient_credits` — The API credit balance can't cover
                the request (`402`)

                - `user_limit_reached` — Plan doesn't include team members (see
                `action`)

                - `social_account_required` — OAuth connection needed (see
                `action`)

                - `invalid_platform` — Platform not supported

                - `invalid_provider` — Unknown OAuth provider

                - `invalid_status` — Invalid post status filter

                - `invalid_action_type` — Invalid bulk moderation action

                - `post_unavailable` — Post no longer available on the source
                platform

                - `query_required` — Search query not provided

                - `search_too_broad` — Search timed out; narrow it with
                `feed_ids`, a shorter date range or a more specific query

                - `user_has_connections_in_use` — Removing the user would stop
                feeds that sync on their connections (see `details`)

                - `multi_user_not_enabled` — The account no longer allows
                multiple users, so its users can't be removed

                - `rate_limit_exceeded` — This key's rate limit; wait
                `Retry-After` seconds

                - `supplier_busy` — The publishing supplier's shared budget is
                spent; wait `Retry-After` seconds

                - `supplier_error` — The publishing supplier refused part of the
                request (see `details`)

                - `payment_required` — Publishing billing must be settled first
                (see `action`)

                - `invalid_network` — Network not supported for publishing

                - `invalid_redirect_url` — `redirect_url` is not an absolute
                http(s) URL

                - `channel_needs_reconnecting` — A channel's authorization
                lapsed (see `action.connection_url`)

                - `network_slot_taken` — The connection link's slot was taken
                meanwhile; ask for a new link

                - `invalid_state` — The connection link expired or was already
                used

                - `idempotency_key_missing` — The `Idempotency-Key` header is
                required

                - `idempotency_key_too_long` — The `Idempotency-Key` header is
                over 255 characters

                - `idempotency_key_invalid` — The `Idempotency-Key` header is
                not valid UTF-8 text

                - `idempotency_key_reused` — The key was used for a different
                request (see `details.post_id`; for feeds and sources,
                `details.feed_id` or `details.source_id` once the earlier
                request's record exists)

                - `idempotency_request_in_progress` — A request with the same
                `Idempotency-Key` is still running; retry after `Retry-After`
                seconds

                - `channels_required` — No channel ids were sent

                - `unknown_channel` — A channel id is not one of the account's
                (see `details.channel_id`)

                - `content_required` — Neither text nor media was sent

                - `invalid_media` — A media URL is not an absolute public
                http(s) URL, or its kind is unknown

                - `invalid_scheduled_at` — Not an ISO 8601 time with a timezone
                offset, in the future

                - `invalid_format` — Not a content format the channel's network
                has (see `details.formats`)

                - `x_daily_cap_reached` — 50 X posts per account per 24 hours,
                deleted posts that went out on X included (see
                `details.resets_at`)

                - `post_not_reschedulable` — Only a post still waiting for its
                time can be moved

                - `post_not_deletable` — The post is being sent, or was already
                removed

                - `post_in_handoff` — The post is still being handed to the
                networks; try again in a moment

                - `delete_refused` — A network kept the post live (see
                `details.channels`)

                - `post_not_retryable` — No channel of the post can be retried

                - `invalid_template` — `template` is empty or not one the
                account can use (see `details.available_templates`)

                - `template_not_supported` — `template` was sent for a feed (or,
                on create, an account) not on Feeds 2.0
              example: feed_limit_reached
            message:
              type: string
              description: Human-readable error message
              example: Your Free plan allows 1 feed(s). Upgrade to create more.
            details:
              type: object
              nullable: true
              description: >
                What the error is about, by code. For a model
                `validation_failed` (feeds, sources,

                webhooks...): field-level messages, `{ "name": ["can't be
                blank"] }`. When `code` is

                `user_has_connections_in_use`, `social_accounts` lists the
                connections (`id`,

                `provider`, `name`, `feed_names`) that feeds still sync on. For
                the

                publishing endpoints: `validation_failed` carries

                `channels: [{ id, network, errors: [...], warnings: [...] }]`;
                `delete_refused` and

                `supplier_error` carry `channels: [{ channel_id, network,
                message }]` (and

                `supplier_error` the `post` as it now stands);
                `idempotency_key_reused` carries

                `post_id` (publishing), or `feed_id` / `source_id` (feed and
                source creates, once the earlier

                request's record exists); `unknown_channel` and
                `channel_needs_reconnecting` carry `channel_id`;

                `invalid_media` carries the `index` of the offending item;
                `invalid_template` carries

                `available_templates`, the template names the account can use;
                `x_daily_cap_reached`

                carries `cap`, `used`, `requested` and `resets_at`.
              additionalProperties: true
              example:
                name:
                  - can't be blank
            action:
              nullable: true
              description: >
                Actionable fix for the error. Present when the error can be
                resolved

                by the user taking a specific action (upgrading plan, topping up
                credits or connecting a

                social account). The `type` field tells you what kind of action
                is needed.
              oneOf:
                - $ref: '#/components/schemas/UpgradePlanAction'
                - $ref: '#/components/schemas/ConnectSocialAccountAction'
                - $ref: '#/components/schemas/PaymentRequiredAction'
                - $ref: '#/components/schemas/ReconnectPublishingChannelAction'
                - $ref: '#/components/schemas/TopUpCreditsAction'
    UpgradePlanAction:
      type: object
      description: >
        Returned when a plan limit is hit (feed limit, source limit, or a
        source-creation cap).

        The `upgrade_url` is a magic link — the user clicks it, gets signed in

        automatically, and lands on the upgrade page with the right plan
        pre-selected.
      properties:
        type:
          type: string
          enum:
            - upgrade_plan
        current_plan:
          type: string
          example: small
        current_plan_display_name:
          type: string
          example: Free
        required_plan:
          type: string
          description: The minimum plan that unlocks this feature
          example: large
        required_plan_display_name:
          type: string
          example: Pro
        upgrade_url:
          type: string
          description: >-
            Magic link — signs user in and redirects to the upgrade page.
            Expires in 30 minutes.
        expires_at:
          type: string
          format: date-time
    ConnectSocialAccountAction:
      type: object
      description: >
        Returned when a source requires an OAuth-connected social account.

        The `connection_url` is a magic link — the user clicks it, gets signed
        in

        automatically, and starts the OAuth authorization flow.
      properties:
        type:
          type: string
          enum:
            - connect_social_account
        provider:
          type: string
          description: OAuth provider to connect
          example: facebook
        connection_url:
          type: string
          description: >-
            Magic link — signs user in and starts OAuth flow. Expires in 30
            minutes.
        expires_at:
          type: string
          format: date-time
    PaymentRequiredAction:
      type: object
      description: >
        Returned with `payment_required`. Open `checkout_url` to save a card. On
        a first

        connect nothing is charged until a channel connects; while publishing is
        paused over a

        declined charge, the open publishing invoices are paid with the new card
        at once.
      required:
        - checkout_url
      properties:
        checkout_url:
          type: string
          format: uri
    ReconnectPublishingChannelAction:
      type: object
      description: >-
        Returned with `channel_needs_reconnecting`. Open `connection_url` to
        authorize the channel again.
      required:
        - channel_id
        - connection_url
      properties:
        channel_id:
          type: string
          format: uuid
        connection_url:
          type: string
          format: uri
        expires_at:
          type: string
          format: date-time
    TopUpCreditsAction:
      type: object
      description: >
        Returned with `402 insufficient_credits` when adding a source: the
        account's API credit

        balance can't cover the source's first fetch. Top up or upgrade the API
        plan, then retry.
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - top_up_credits
  responses:
    IdempotencyRequestInProgress:
      description: >
        A request with the same `Idempotency-Key` is still being processed

        (`error.code = "idempotency_request_in_progress"`). Wait `Retry-After`
        seconds and retry with

        the same key and body to get its result.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait before retrying.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnprocessableEntity:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  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.