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

# Retrieve plan usage

> Returns a plan's allowances and usage this period, plus the API's monthly allowance (`api`). `null` ceilings mean no limit. No number here is money.

- Without `company_id`: your plan (free allowances if none). With it: the owner's plan as that company sees it (any member may ask). A company limit narrows usage and caps to that company; otherwise usage spans all the owner's companies. `user_id` gives one member's view.
- Words and media credits restart at `words_renews_at`; premium image credits never do. Trials have lower caps than shown.
- `api` is always the owner's. Past its post ceiling: `402` `api_posts`.




## OpenAPI

````yaml /api-reference/openapi.json get /subscriptions/balance
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:
  /subscriptions/balance:
    get:
      tags:
        - Plan and usage
      summary: Retrieve plan usage
      description: >
        Returns a plan's allowances and usage this period, plus the API's
        monthly allowance (`api`). `null` ceilings mean no limit. No number here
        is money.


        - Without `company_id`: your plan (free allowances if none). With it:
        the owner's plan as that company sees it (any member may ask). A company
        limit narrows usage and caps to that company; otherwise usage spans all
        the owner's companies. `user_id` gives one member's view.

        - Words and media credits restart at `words_renews_at`; premium image
        credits never do. Trials have lower caps than shown.

        - `api` is always the owner's. Past its post ceiling: `402` `api_posts`.
      operationId: getPlanBalance
      parameters:
        - name: company_id
          in: query
          required: false
          description: >-
            Answer for this company, on its owner account's plan. Without it,
            your own plan.
          schema:
            type: integer
            minimum: 1
          example: 1287
        - name: user_id
          in: query
          required: false
          description: >-
            With `company_id`, answer for this member, with their own limits.
            Ignored otherwise.
          schema:
            type: integer
            minimum: 1
          example: 5530
      responses:
        '200':
          description: The plan's allowances and usage.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/PlanBalance'
              examples:
                paidPlan:
                  summary: A paid plan (no API ceilings)
                  value:
                    data:
                      users_spent: 2
                      users_allowed: 10
                      companies_spent: 2
                      companies_allowed: 10
                      words_spent: 48210
                      words_allowed: 500000
                      images_spent: 212
                      images_allowed: 1500
                      images_total_spent: 212
                      images_total_available: 1788
                      premium_images_spent: 12
                      premium_images_allowed: 80
                      bytes_spent: 3221225472
                      bytes_allowed: 214748364800
                      words_renews_at: '2026-12-14T10:31:12.000000Z'
                      credits: 140
                      getlead_enabled: true
                      white_label_enabled: false
                      api_keys_enabled: true
                      plus_chat_enabled: true
                      mcp_enabled: true
                      mcp_purchasable: false
                      music_enabled: true
                      access_pack_purchasable: false
                      images_bonus_total: 500
                      images_bonus_credits:
                        - id: 2210
                          remaining: 500
                          quantity: 500
                          expires_at: null
                          note: null
                      api:
                        enabled: true
                        source: plan
                        posts_used: null
                        posts_per_month: null
                        posts_renews_at: null
                        keys_used: null
                        keys: null
                        x: true
                        user_management: true
                        inbox: true
                withCeilings:
                  summary: A plan with API ceilings
                  value:
                    data:
                      users_spent: 3
                      users_allowed: 40
                      companies_spent: 4
                      companies_allowed: 40
                      words_spent: 182400
                      words_allowed: 10000000
                      images_spent: 640
                      images_allowed: 5000
                      images_total_spent: 640
                      images_total_available: 4360
                      premium_images_spent: 0
                      premium_images_allowed: 0
                      bytes_spent: 10737418240
                      bytes_allowed: 322122547200
                      words_renews_at: '2026-12-30T23:53:49.000000Z'
                      credits: 0
                      getlead_enabled: false
                      white_label_enabled: false
                      api_keys_enabled: true
                      plus_chat_enabled: true
                      mcp_enabled: true
                      mcp_purchasable: false
                      music_enabled: false
                      access_pack_purchasable: false
                      images_bonus_total: 0
                      images_bonus_credits: []
                      api:
                        enabled: true
                        posts_used: 312
                        posts_per_month: 1500
                        posts_renews_at: '2026-12-30T23:53:49.000000Z'
                        keys_used: 2
                        keys: 3
                        x: false
                        user_management: false
                        inbox: false
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    PlanBalance:
      type: object
      description: |
        A plan's allowances and usage. A `null` `*_allowed` means no limit.
      properties:
        users_spent:
          type: integer
          description: People with a role in the counted companies, owner included.
          example: 2
        users_allowed:
          type:
            - integer
            - 'null'
          description: Seats.
          example: 10
        companies_spent:
          type: integer
          description: Companies the owner account owns.
          example: 2
        companies_allowed:
          type:
            - integer
            - 'null'
          description: Companies allowed.
          example: 10
        words_spent:
          type: integer
          description: AI words used this period.
          example: 48210
        words_allowed:
          type:
            - integer
            - 'null'
          description: AI words per period.
          example: 500000
        images_spent:
          type: integer
          description: >-
            Plan media credits (images, videos, music) used this period. At most
            `images_allowed`.
          example: 212
        images_allowed:
          type:
            - integer
            - 'null'
          description: Plan media credits per period.
          example: 1500
        images_total_spent:
          type: integer
          description: All media credits used this period, plan and packs.
          example: 212
        images_total_available:
          type:
            - integer
            - 'null'
          description: >-
            Media credits usable now (plan remainder plus packs). Generations in
            progress aren't subtracted.
          example: 1788
        premium_images_spent:
          type: integer
          description: Premium image model credits used, all time.
          example: 12
        premium_images_allowed:
          type:
            - integer
            - 'null'
          description: Premium image model credits allowed.
          example: 80
        bytes_spent:
          type: integer
          description: Storage used, in bytes.
          example: 3221225472
        bytes_allowed:
          type:
            - integer
            - 'null'
          description: Storage allowed, in bytes.
          example: 214748364800
        words_renews_at:
          type: string
          format: date-time
          description: >-
            When words and plan media credits restart. Without a plan, the
            request time.
          example: '2026-12-14T10:31:12.000000Z'
        credits:
          type:
            - integer
            - 'null'
          description: The owner's community credits. Not AI credits, not money.
          example: 140
        getlead_enabled:
          type: boolean
          description: Website chatbot included.
          example: true
        white_label_enabled:
          type: boolean
          description: White label included.
          example: false
        api_keys_enabled:
          type: boolean
          description: REST API included (REST API keys allowed).
          example: true
        plus_chat_enabled:
          type: boolean
          description: Premium chat models included.
          example: true
        mcp_enabled:
          type: boolean
          description: MCP server included (MCP keys allowed).
          example: true
        mcp_purchasable:
          type: boolean
          description: MCP access sold as an add-on. Always `false` for now.
          example: false
        music_enabled:
          type: boolean
          description: AI Music included.
          example: true
        access_pack_purchasable:
          type: boolean
          description: >-
            Can buy (in the app) the one-time pack adding the REST API and AI
            assistants.
          example: false
        images_bonus_total:
          type: integer
          description: >-
            Credits left in bought packs. They carry over and are used after the
            plan's.
          example: 500
        images_bonus_credits:
          type: array
          description: Packs with credits left, soonest to expire first.
          items:
            $ref: '#/components/schemas/AccountCreditPack'
        api:
          $ref: '#/components/schemas/AccountApiAllowance'
    AccountCreditPack:
      type: object
      description: A pack of bought media credits.
      properties:
        id:
          type: integer
          description: The pack's ID.
          example: 2210
        remaining:
          type: integer
          description: Credits left.
          example: 500
        quantity:
          type: integer
          description: Credits it came with.
          example: 500
        expires_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Expiry; `null` for never.
          example: null
        note:
          type:
            - string
            - 'null'
          description: Note from whoever granted it.
          example: null
    AccountApiAllowance:
      type: object
      description: >
        What the REST API and AI assistants may still do for the owner account
        this month. `null` means no ceiling. Without the API, `enabled` is
        `false` and every ceiling is 0.
      properties:
        enabled:
          type: boolean
          description: REST API and AI assistants allowed.
          example: true
        source:
          type: string
          description: >-
            Where access comes from: `none`, `plan`, `license`, `pack` or
            `license+pack`.
          example: plan
        posts_used:
          type:
            - integer
            - 'null'
          description: >
            Posts sent via the API or an assistant this month, one per network.
            Drafts and app posts don't count. `null` when not counted.
          example: 312
        posts_per_month:
          type:
            - integer
            - 'null'
          description: Monthly ceiling; `null` for none.
          example: 1500
        posts_renews_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the count restarts; `null` when not counted.
          example: '2026-12-30T23:53:49.000000Z'
        keys_used:
          type:
            - integer
            - 'null'
          description: >-
            Working REST API keys (unrevoked, unexpired, user still in its
            companies). `null` when not counted.
          example: 2
        keys:
          type:
            - integer
            - 'null'
          description: Max REST API keys at once; `null` for no ceiling.
          example: 3
        x:
          type: boolean
          description: Posting to X (Twitter) via the API or an assistant allowed.
          example: false
        user_management:
          type: boolean
          description: >-
            Team management via the API allowed. Without it, team endpoints
            answer `402` `api_user_management`.
          example: false
        inbox:
          type: boolean
          description: >-
            Social inbox (comments, direct messages) via the API and assistants
            allowed. Without it, inbox endpoints answer `402` `api_inbox`.
          example: false
    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.
    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.
  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
    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
    ValidationFailed:
      description: One or more fields are invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationError'
    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.