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

# Import post groups in bulk

> Creates up to 500 post groups (one per row), each with one post per network in `social_network_types`. Each post gets the row's text, title, link, media and first comment, plus its `network_overrides`. Groups get no title or tags.

- `schedule_mode: draft` creates drafts (`draft: true`, `auto_publish: false`) and ignores `schedule_at`. With `queue` or `csv_dates`, rows with `schedule_at` are scheduled and the others queued.
- A row is refused if TikTok is selected and it has no media link, or over 35 image links and no video; or if Pinterest is selected and it has no media link.
- `media_urls` download in the background, once per post (public images or videos, 50 MB max, about 3 every 4 seconds per host). A post waits for them up to `media_fetch_until` (2 hours 5 minutes after its last download was due), then goes out with what arrived. Failed links are listed in `status_message.media_fetch_failures`; if all fail on Instagram, TikTok, Pinterest or YouTube, the post is `error`.
- A `schedule_at` too early for the downloads is moved later (`publish_at_adjusted: true`).
- **Plan limits** (plans with a monthly API post limit): unless `draft`, every post (rows times networks) counts, checked for the whole import first. `402` means nothing was imported. `twitter` gets `422`.

The answer is `200` with one result per row, even if every row failed. Track downloads with `GET /companies/{company_id}/postGroups?paginate=false&include=posts`.

Roles: owner, admin, user.




## OpenAPI

````yaml /api-reference/openapi.json post /companies/{company_id}/postGroups/bulk
openapi: 3.1.0
info:
  title: Followr API
  version: 1.0.0
  summary: Publish, schedule and create social media content programmatically.
  description: >
    The Followr REST API gives your code the same engine as the Followr app:
    brands, social accounts, posts and scheduling, the media library, AI
    generation, music and the social inbox.


    Send every request over HTTPS to `https://api.followr.ai/api`, with an API
    key as a Bearer token. Bodies are JSON.
  contact:
    name: Followr Support
    email: hello@followr.ai
    url: https://followr.ai
  termsOfService: https://followr.ai/terms
servers:
  - url: https://api.followr.ai/api
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Users
    description: |
      The person behind an API key. Use `me` as the ID for the key's user.
  - name: Companies
    description: >
      Brands or client workspaces. Each uses the plan of the account that
      created it (`user_id`).
  - name: Team
    description: |
      Company members and their roles: invite, change roles, remove.
  - name: Brand style
    description: >
      How a company's AI pictures look, and the default brand sound for AI
      videos.
  - name: API keys
    description: |
      REST API keys, MCP keys and app sign-ins.
  - name: Social accounts
    description: >
      A social account is a profile, Page or channel a company has connected,
      such as an Instagram professional account or a LinkedIn page. A company
      has at most one per network. Most networks connect by browser sign-in in
      the Followr app; Bluesky and Medium can also connect through this API.
  - name: Pinterest
    description: >
      Every pin is published to a board. List or create boards here, then set
      the board ID on the Pinterest post.
  - name: YouTube
    description: >
      Video categories and playlists of a connected YouTube channel, for YouTube
      posts.
  - name: Canva
    description: >
      Canva connects like a social account (browser sign-in in the app) but
      doesn't publish. List the connected user's designs and export them as
      files for your posts.
  - name: Post groups
    description: >
      One piece of content and its schedule, with one post per network. The
      group decides when; each post decides what.
  - name: Posts
    description: >
      What goes out on one network (text, media, settings) and its publishing
      status.
  - name: Scheduling
    description: |
      Posting-time suggestions from the company's own results.
  - name: Queues
    description: >
      Weekly time slots that publish waiting post groups (Auto-Listing in the
      app). In paths, a queue is a `ruleGroup` and a slot is a `rule`.
  - name: Tags
    description: >
      Labels for post groups. They also decide which queue takes a waiting
      group.
  - name: Assets
    description: >
      An asset is one item in a company's media library: a picture, a video or a
      text. Its picture or video is an attached file (see **Files**). Posts list
      asset IDs in `assets_ids`.
  - name: Folders
    description: >
      Folders organize a company's media library and can be nested. Each asset
      is in one folder at most, or at the top level.
  - name: Files
    description: >
      Upload a picture, video or audio file to an asset, post cover, company
      logo, profile picture, avatar or voice sample. Leave `url` out and `PUT`
      the bytes to the returned `presigned_url` within 10 minutes, or send a
      public `url` for the server to download. No multipart. Full details: `POST
      /assets/{id}/image`.
  - name: Avatars
    description: >
      An avatar is a person shown in your company's videos: a name, a picture, a
      voice and optional scene pictures (the same person in other settings). One
      avatar per company can be the default.
  - name: Voices
    description: >
      A voice is what your company's videos and audio speak with. It points to a
      stock library voice through `platform_external_id` and can hold a sample
      recording. Saving one spends no credits.
  - name: AI generation
    description: >
      Generate text, images, videos and speech. Every generation is an AI
      result. Long ones answer at once with a `pending` result that you poll.
  - name: AI copywriting
    description: >
      Post copy, titles and thread splits for a social network, in the company's
      brand voice.
  - name: AI result groups
    description: >
      Related AI results: a chat conversation, a Creative Studio design or a
      video project.
  - name: Prompts
    description: |
      Saved prompt templates for text or image generation, per social network.
  - name: Video
    description: >
      Video engines and their prices, and video projects: avatar videos and
      short videos the server makes scene by scene, with captions, transitions
      and music.
  - name: Creative Studio
    description: >
      Social media graphics (single creatives, quote cards, carousels and more),
      planned slide by slide from a style preset and drawn as images.
  - name: Music
    description: >
      The catalog and two writing helpers (lyrics, style suggestions). Making
      music needs a plan that includes Music.
  - name: Music styles
    description: |
      A company's saved sounds, reused so its tracks sound like one artist.
  - name: Music tracks
    description: |
      AI songs and instrumentals: generate, poll, master, download.
  - name: Music releases
    description: >
      Singles, EPs and albums with store metadata, a cover, readiness checks and
      a ZIP kit you upload to a distributor yourself.
  - name: Conversations
    description: >
      Direct-message threads between your connected Facebook pages or Instagram
      accounts and people. Only the person can start one.
  - name: Messages
    description: |
      The messages in a conversation: read, reply or remove them.
  - name: Comments
    description: >-
      Comments on your Facebook and Instagram posts, and your team's public
      replies.
  - name: Contacts
    description: >
      People who messaged one of your accounts or commented on its posts, per
      company and network.
  - name: Internal notes
    description: >
      Notes your team and clients leave on a post group, post or library asset,
      for example to approve it. Never published.
  - name: Research
    description: |
      Current news to write about, from Followr's news provider.
  - name: Plan and usage
    description: |
      Plan allowances, usage, and the caps owners set for companies and members.
  - name: Billing
    description: |
      The key's user's invoices, past and upcoming.
  - name: Webhooks
    description: >
      Requests Followr sends to your server when a post is published or fails.
      See the webhooks guide for setup and verification.
paths:
  /companies/{company_id}/postGroups/bulk:
    post:
      tags:
        - Post groups
      summary: Import post groups in bulk
      description: >
        Creates up to 500 post groups (one per row), each with one post per
        network in `social_network_types`. Each post gets the row's text, title,
        link, media and first comment, plus its `network_overrides`. Groups get
        no title or tags.


        - `schedule_mode: draft` creates drafts (`draft: true`, `auto_publish:
        false`) and ignores `schedule_at`. With `queue` or `csv_dates`, rows
        with `schedule_at` are scheduled and the others queued.

        - A row is refused if TikTok is selected and it has no media link, or
        over 35 image links and no video; or if Pinterest is selected and it has
        no media link.

        - `media_urls` download in the background, once per post (public images
        or videos, 50 MB max, about 3 every 4 seconds per host). A post waits
        for them up to `media_fetch_until` (2 hours 5 minutes after its last
        download was due), then goes out with what arrived. Failed links are
        listed in `status_message.media_fetch_failures`; if all fail on
        Instagram, TikTok, Pinterest or YouTube, the post is `error`.

        - A `schedule_at` too early for the downloads is moved later
        (`publish_at_adjusted: true`).

        - **Plan limits** (plans with a monthly API post limit): unless `draft`,
        every post (rows times networks) counts, checked for the whole import
        first. `402` means nothing was imported. `twitter` gets `422`.


        The answer is `200` with one result per row, even if every row failed.
        Track downloads with `GET
        /companies/{company_id}/postGroups?paginate=false&include=posts`.


        Roles: owner, admin, user.
      operationId: importPostGroups
      parameters:
        - $ref: '#/components/parameters/CompanyId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostBulkImportRequest'
            example:
              social_network_types:
                - instagram
                - facebook
              schedule_mode: csv_dates
              rows:
                - content: >-
                    Our second shop opens downtown on December 15. The first 100
                    guests get a free cup.
                  media_urls:
                    - https://images.northside.example/launch/banner.jpg
                  schedule_at: '2026-12-15T09:30:00Z'
                  first_comment: Find us at 12 Harbor Street.
                  network_overrides:
                    instagram:
                      media_product_type: FEED
                - content: Holiday blend is back for December.
                  media_urls:
                    - https://images.northside.example/launch/holiday-blend.mp4
                  network_overrides:
                    instagram:
                      media_product_type: REEL
                    facebook:
                      media_product_type: REEL
      responses:
        '200':
          description: One result per row, in the order of `rows`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostBulkImportResponse'
              example:
                results:
                  - row: 0
                    status: ok
                    post_group_id: 88412
                    media_eta_seconds: 0
                    publish_at_adjusted: false
                  - row: 1
                    status: ok
                    post_group_id: 88413
                    media_eta_seconds: 0
                    publish_at_adjusted: false
                success_count: 2
                error_count: 0
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          description: The request is invalid, or X isn't in the plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
              examples:
                invalid:
                  summary: A row is invalid
                  value:
                    message: The rows.0.content field is required.
                    errors:
                      rows.0.content:
                        - The rows.0.content field is required.
                xRefused:
                  summary: X is not in the plan
                  value:
                    message: >-
                      Posting to X (Twitter) through the API or an assistant is
                      not included in this plan. Remove the X target, or
                      schedule and publish this post in the app.
                    errors:
                      social_network_types:
                        - >-
                          Posting to X (Twitter) through the API or an assistant
                          is not included in this plan. Remove the X target, or
                          schedule and publish this post in the app.
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  parameters:
    CompanyId:
      name: company_id
      in: path
      required: true
      description: The ID of the company (brand) the resource belongs to.
      schema:
        type: integer
        minimum: 1
      example: 1287
  schemas:
    PostBulkImportRequest:
      type: object
      required:
        - social_network_types
        - schedule_mode
        - rows
      properties:
        social_network_types:
          type: array
          minItems: 1
          description: Networks every row posts to (one post per network).
          items:
            $ref: '#/components/schemas/SocialNetworkType'
          example:
            - instagram
            - facebook
        schedule_mode:
          type: string
          enum:
            - queue
            - csv_dates
            - draft
          description: >
            `draft` creates drafts (`auto_publish: false`) and ignores
            `schedule_at`. `queue` and `csv_dates` are the same: rows with
            `schedule_at` are scheduled, others wait for the queue.
          example: csv_dates
        rows:
          type: array
          minItems: 1
          maxItems: 500
          description: One post group per row.
          items:
            $ref: '#/components/schemas/PostBulkImportRow'
    PostBulkImportResponse:
      type: object
      properties:
        results:
          type: array
          description: One result per row, in order.
          items:
            $ref: '#/components/schemas/PostBulkImportRowResult'
        success_count:
          type: integer
          description: Rows imported.
          example: 2
        error_count:
          type: integer
          description: Rows not imported.
          example: 0
    ValidationError:
      type: object
      description: Returned with `422 Unprocessable Content` when the request isn't valid.
      required:
        - message
        - errors
      properties:
        message:
          type: string
          description: The first error, followed by a count of the others.
          example: The name field is required. (and 1 more error)
        errors:
          type: object
          description: >-
            Every invalid field, keyed by its path in the request
            (`rows.0.content` for nested fields), with one or more messages.
          additionalProperties:
            type: array
            items:
              type: string
          example:
            name:
              - The name field is required.
            publish_at:
              - The publish at field must be a valid date.
    SocialNetworkType:
      type: string
      description: >
        A social network. Posts can go to every value except `canva` (a source
        of designs) and `discord` (not supported for publishing).
      enum:
        - facebook
        - instagram
        - threads
        - twitter
        - linkedin
        - tiktok
        - youtube
        - pinterest
        - bluesky
        - discord
        - medium
        - canva
      example: instagram
    PostBulkImportRow:
      type: object
      required:
        - content
      properties:
        content:
          type: string
          description: The text of every network's post.
          example: >-
            Our second shop opens downtown on December 15. The first 100 guests
            get a free cup.
        title:
          type:
            - string
            - 'null'
          maxLength: 255
          description: >-
            Title (YouTube, Pinterest, Medium, TikTok photo posts, Facebook
            reels).
          example: Northside Coffee downtown
        link:
          type:
            - string
            - 'null'
          description: Link (Pinterest destination, Bluesky link card). Max 255 characters.
          example: https://northside.example/downtown
        media_urls:
          type: array
          description: >-
            Public image or video URLs, up to 50 MB each, downloaded in the
            background and attached in this order.
          items:
            type: string
            format: uri
          example:
            - https://images.northside.example/launch/banner.jpg
        schedule_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >
            When the row goes out (ISO 8601, UTC if no offset). Ignored in
            `draft` mode. Moved later if the media can't be ready in time.
          example: '2026-12-15T09:30:00Z'
        first_comment:
          type:
            - string
            - 'null'
          description: Comment posted under the live post (Facebook and Instagram only).
          example: Find us at 12 Harbor Street.
        network_overrides:
          $ref: '#/components/schemas/PostBulkNetworkOverrides'
    PostBulkImportRowResult:
      type: object
      required:
        - row
        - status
      properties:
        row:
          type: integer
          description: The row's index in `rows`, from 0.
          example: 0
        status:
          type: string
          enum:
            - ok
            - error
          description: Whether the row was imported.
          example: ok
        post_group_id:
          type: integer
          description: With `ok`. The new post group's ID.
          example: 88412
        media_eta_seconds:
          type: integer
          description: >-
            With `ok`. Seconds until the row's last download is due to start (a
            minimum; busy hosts push it back).
          example: 0
        publish_at_adjusted:
          type: boolean
          description: With `ok`. `true` when `schedule_at` was moved later for the media.
          example: false
        message:
          type: string
          description: With `error`. Why the row wasn't imported.
          example: >-
            Pinterest needs an image or video, and this row has no media link.
            The row was not imported for any network.
    Error:
      type: object
      description: The body of every error response except validation errors.
      required:
        - message
      properties:
        message:
          type: string
          description: A human-readable explanation. Don't parse it; it may change.
          example: This action is unauthorized.
    LimitError:
      type: object
      description: >
        Returned with `402 Payment Required` when the plan behind the request
        lacks a feature, or one of its usage ceilings is reached. `entity` names
        what's missing.
      required:
        - message
      properties:
        entity:
          type: string
          description: >
            What the plan lacks or has used up. Known values: `api`, `api_keys`,
            `api_posts`, `api_user_management`, `api_inbox`,
            `api_network_proxy`, `companies`, `users`, `words`, `images`,
            `premium_images`, `bytes`, `music`. New values may be added.
          example: api_posts
        feature:
          type: string
          description: >-
            Present when a whole feature is not in the plan (for example
            `music`).
          example: music
        message:
          type: string
          description: What happened and what to do, ready to show to a person.
          example: >-
            The monthly limit of 1,500 API posts of this plan is reached: 1,498
            used and this request needs 3. It starts again on 2026-12-14. Posts
            can still be scheduled and published in the app.
        limit:
          type: integer
          description: The ceiling that applies, when there is one.
          example: 1500
        used:
          type: integer
          description: How much of the ceiling is used in the current period.
          example: 1498
        needed:
          type: integer
          description: How much this request needs.
          example: 3
        renews_at:
          type: string
          format: date-time
          description: When the current period ends and the count restarts.
          example: '2026-12-14T00:00:00+00:00'
    PostBulkNetworkOverrides:
      type: object
      description: >
        Per-network settings for the row, keyed by network. Invalid values
        silently fall back to the default. Networks without an entry get the
        defaults.
      properties:
        instagram:
          type: object
          properties:
            media_product_type:
              type: string
              enum:
                - FEED
                - STORY
                - REEL
              description: Default `FEED`. Case-insensitive.
              example: REEL
        facebook:
          type: object
          properties:
            media_product_type:
              type: string
              enum:
                - FEED
                - STORY
                - REEL
              description: Default `FEED`. Case-insensitive.
              example: FEED
        youtube:
          type: object
          properties:
            media_product_type:
              type: string
              enum:
                - FEED
                - SHORT
              description: Default `FEED`.
              example: SHORT
        pinterest:
          type: object
          properties:
            board_id:
              type:
                - string
                - integer
              description: Pinterest board ID.
              example: '549755885175'
        tiktok:
          type: object
          properties:
            privacy_level:
              type: string
              enum:
                - PUBLIC_TO_EVERYONE
                - MUTUAL_FOLLOW_FRIENDS
                - FOLLOWER_OF_CREATOR
                - SELF_ONLY
              description: Default `PUBLIC_TO_EVERYONE`.
              example: PUBLIC_TO_EVERYONE
            disable_duet:
              type: boolean
              description: Default `false`.
              example: false
            disable_comment:
              type: boolean
              description: Default `false`.
              example: false
            disable_stitch:
              type: boolean
              description: Default `false`.
              example: false
        medium:
          type: object
          properties:
            notify_followers:
              type: boolean
              description: Default `false`.
              example: false
      example:
        instagram:
          media_product_type: REEL
        pinterest:
          board_id: '549755885175'
  responses:
    Unauthenticated:
      description: The API key is missing, malformed, expired or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missing:
              summary: No valid key
              value:
                message: Unauthenticated.
            revoked:
              summary: Revoked key
              value:
                message: Token revoked
    PaymentRequired:
      description: >-
        The plan behind the API key lacks this feature, or one of its limits is
        reached.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LimitError'
          examples:
            limitReached:
              summary: Monthly API posts used up
              value:
                entity: api_posts
                message: >-
                  The monthly limit of 1,500 API posts of this plan is reached:
                  1,498 used and this request needs 3. It starts again on
                  2026-12-14. Posts can still be scheduled and published in the
                  app.
                limit: 1500
                used: 1498
                needed: 3
                renews_at: '2026-12-14T00:00:00+00:00'
            notInPlan:
              summary: Feature not in the plan
              value:
                feature: music
                entity: music
                message: >-
                  Music is not included in this plan. Songs, instrumentals,
                  lyrics, styles, masters and releases need it. Everything
                  already made can still be played, downloaded and deleted.
            creditsUsedUp:
              summary: Not enough credits
              value:
                entity: images
                message: >-
                  Your current subscription does not include the necessary
                  features to perform this action
    Forbidden:
      description: >-
        The key is valid, but its user may not do this (their role doesn't allow
        it, or the account is suspended).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            message: This action is unauthorized.
    NotFound:
      description: No resource with this ID, or it was deleted.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            message: No query results for model [App\Models\PostGroup] 99999999
    TooManyRequests:
      description: Too many requests in the last minute. Wait `Retry-After` seconds.
      headers:
        Retry-After:
          $ref: '#/components/headers/Retry-After'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            message: Too Many Attempts.
  headers:
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        example: 42
    X-RateLimit-Limit:
      description: Requests allowed per minute for the key's user.
      schema:
        type: integer
        example: 200
    X-RateLimit-Remaining:
      description: Requests left in the current one-minute window.
      schema:
        type: integer
        example: 0
    X-RateLimit-Reset:
      description: Unix timestamp (seconds) when the current window resets.
      schema:
        type: integer
        example: 1764672060
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: >
        Send your API key in the `Authorization` header:


        ```

        Authorization: Bearer YOUR_API_KEY

        ```


        Create keys in the Followr app under **Settings > API keys**. A key acts
        as its user, with that user's role in each company.

````

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