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

# List posts and their numbers

> Solara AI API: One row per post on a platform published in the range (a post on three platforms is three rows) with its newest numbers, sorted by `sort` and `order`; `total` counts every row past `limit`. `made_with` is `solara` (the posts Solara published) or `everything`. The numbers are lifetime totals at their last read.

Permission: **Read** (`read`).



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/performance/posts
openapi: 3.1.0
info:
  title: Solara AI API
  version: '1'
  description: >-
    Make and edit videos with an API key. Every operation here accepts a key;
    everything else in Solara is for people in the app. Generated from the
    backend by tools/docs/build-public-spec.ts.
servers:
  - url: https://api.solaraai.com
    description: Production
security:
  - ApiKeyBearer: []
tags:
  - name: Styles
    description: The looks a video can be made in.
  - name: Upload
    description: Send a recording to Solara in parts.
  - name: Footage
    description: >-
      The person's own photos and clips, shown as b-roll on the lines that
      mention them. Add each one after the recording's upload and before Create
      a video: footage added after the video is made isn't placed in it.
  - name: Videos
    description: Make a video from an upload and follow it.
  - name: Editing
    description: Read and change an edit. Editing is free and never renders.
  - name: Export
    description: >-
      Render the final video and download it. An export uses one of the plan's
      videos.
  - name: Calendar
    description: >-
      What posts when, how each post went, and what is ready to post. Read only:
      moving, retrying or deleting a post is the person's, in Solara.
  - name: Performance
    description: >-
      How the workspace's posts are doing: each platform's own numbers, read on
      a schedule, never live. YouTube's and Threads' numbers are not shared with
      an API key; X's come with a plan; LinkedIn isn't measured yet.
  - name: Posting
    description: >-
      Ask the person to approve a post: they approve in Solara, and nothing
      posts before. Needs the Ask to post permission, which an AI agent gets
      when the person allows it; keys made in the app do not have it.
paths:
  /api/v1/performance/posts:
    get:
      tags:
        - Performance
      summary: List posts and their numbers
      description: >-
        One row per post on a platform published in the range (a post on three
        platforms is three rows) with its newest numbers, sorted by `sort` and
        `order`; `total` counts every row past `limit`. `made_with` is `solara`
        (the posts Solara published) or `everything`. The numbers are lifetime
        totals at their last read.


        Permission: **Read** (`read`).
      operationId: list-post-performance
      parameters:
        - description: 'The range: the last 7, 30 or 90 UTC days, today included'
          explode: false
          in: query
          name: days
          schema:
            default: 30
            description: 'The range: the last 7, 30 or 90 UTC days, today included'
            enum:
              - 7
              - 30
              - 90
            format: int64
            type: integer
        - description: >-
            The tab: overview (TikTok, Instagram, Facebook and Threads), or one
            platform
          explode: false
          in: query
          name: scope
          schema:
            default: overview
            description: >-
              The tab: overview (TikTok, Instagram, Facebook and Threads), or
              one platform
            enum:
              - overview
              - youtube
              - tiktok
              - instagram
              - facebook
              - threads
              - x
              - linkedin
              - linkedin_page
            type: string
        - description: >-
            solara: only posts made with Solara; everything: every post of the
            connected accounts (X: Solara's only)
          explode: false
          in: query
          name: made_with
          schema:
            default: everything
            description: >-
              solara: only posts made with Solara; everything: every post of the
              connected accounts (X: Solara's only)
            enum:
              - solara
              - everything
            type: string
        - description: >-
            The Overview's platform menu: only these of its platforms (TikTok,
            Instagram, Facebook, Threads), repeat it for several; absent: all
            four. YouTube, X and LinkedIn are never added into the Overview:
            asked, they are ignored (X and LinkedIn still choose their By
            platform lines). Ignored on a platform's tab
          explode: true
          in: query
          name: platforms
          schema:
            description: >-
              The Overview's platform menu: only these of its platforms (TikTok,
              Instagram, Facebook, Threads), repeat it for several; absent: all
              four. YouTube, X and LinkedIn are never added into the Overview:
              asked, they are ignored (X and LinkedIn still choose their By
              platform lines). Ignored on a platform's tab
            items:
              enum:
                - youtube
                - tiktok
                - instagram
                - facebook
                - threads
                - x
                - linkedin
                - linkedin_page
              type: string
            type:
              - array
              - 'null'
        - description: >-
            published_at, or any metric of the scope (get-performance-summary's
            metrics); a post without that number sorts last
          explode: false
          in: query
          name: sort
          schema:
            default: published_at
            description: >-
              published_at, or any metric of the scope
              (get-performance-summary's metrics); a post without that number
              sorts last
            enum:
              - published_at
              - views
              - impressions
              - unique_impressions
              - reach
              - likes
              - reactions
              - comments
              - replies
              - shares
              - reposts
              - quotes
              - saves
              - bookmarks
              - clicks
              - link_clicks
              - profile_clicks
              - profile_visits
              - follows
              - watch_time
              - average_view
              - average_watch_time
              - subscribers_gained
              - engagement
            type: string
        - explode: false
          in: query
          name: order
          schema:
            default: desc
            enum:
              - desc
              - asc
            type: string
        - description: The first this many after sorting
          explode: false
          in: query
          name: limit
          schema:
            default: 100
            description: The first this many after sorting
            format: int64
            maximum: 500
            minimum: 1
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostPerformanceListOutputBody'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - ApiKeyBearer: []
components:
  schemas:
    PostPerformanceListOutputBody:
      additionalProperties: false
      type: object
      properties:
        posts:
          items:
            $ref: '#/components/schemas/PostPerformanceRowBody'
          type:
            - array
            - 'null'
        total:
          description: Every post the range and filters hold, limit or not
          format: int64
          type: integer
      required:
        - posts
        - total
    ErrorModel:
      additionalProperties: false
      type: object
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
          description: >-
            Names a customer-visible error, for the app to translate; absent on
            other errors
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
    PostPerformanceRowBody:
      additionalProperties: false
      type: object
      properties:
        account_name:
          description: >-
            The account or LinkedIn Page it was posted from. Absent once Solara
            no longer has it
          type: string
        caption:
          type: string
        content_missing:
          description: >-
            Why caption, thumbnail and permalink are absent: deleted under the
            platform's terms (a LinkedIn post's after six months)
          enum:
            - deleted_by_rule
          type: string
        fetched_at:
          description: The newest good read. null before the first
          format: date-time
          type:
            - string
            - 'null'
        id:
          description: The post on this platform (get-post-performance)
          format: uuid
          type: string
        made_with_solara:
          type: boolean
        media_type:
          enum:
            - video
            - image
            - carousel
            - text
            - story
          type: string
        permalink:
          description: The post on the platform
          format: uri
          type: string
        platform:
          enum:
            - youtube
            - tiktok
            - instagram
            - facebook
            - threads
            - x
            - linkedin
            - linkedin_page
          type: string
        post_id:
          description: The Solara post (get-post), when made with Solara
          format: uuid
          type: string
        published_at:
          format: date-time
          type: string
        sparkline:
          description: >-
            The sort metric's lifetime total, oldest first: 0 at published_at,
            then at each read (views, or impressions on X and LinkedIn, when
            sorting by published_at). Cumulative: a day's gain is the difference
            of two points
          items:
            $ref: '#/components/schemas/PerformanceSparkPointBody'
          type:
            - array
            - 'null'
        status:
          description: >-
            ok; pending: not read yet; needs_reauth: its account must be
            connected again; parked: its account is disconnected, its numbers
            kept; error: the last read failed, tried again later
          enum:
            - ok
            - pending
            - needs_reauth
            - parked
            - error
          type: string
        thumbnail_url:
          description: >-
            The platform's own image of the post, re-read on each check; it may
            expire. In Solara's app, a post made with Solara the platform gave
            none for has Solara's own (its video's poster, or its first photo),
            a signed link that lasts about an hour; never for an API key or
            agent
          format: uri
          type: string
        values:
          description: >-
            Its newest numbers, one per metric of the scope (detail: of its
            platform), in order, less any its kind of post never has (an
            Instagram picture's watch time, a Reel's profile visits): left out,
            never null
          items:
            $ref: '#/components/schemas/PerformanceValueBody'
          type:
            - array
            - 'null'
        video_id:
          description: The Solara video it posted, when there is one
          format: uuid
          type: string
      required:
        - sparkline
        - id
        - platform
        - media_type
        - published_at
        - made_with_solara
        - status
        - fetched_at
        - values
    ErrorCode:
      description: >-
        A stable name for a customer-visible error; the app translates it.
        Absent on other errors.
      enum:
        - invalid_credentials
        - invalid_or_expired
        - too_many_attempts
        - resend_too_soon
        - email_taken
        - invalid_phone
        - temporarily_unavailable
        - turnstile_failed
        - email_unchanged
        - phone_unchanged
        - account_deletion_unavailable
        - project_not_found
        - plan_changed
        - subscription_required
        - restyle_limit
        - fill_limit
        - export_limit
        - ask_limit
        - music_limit
        - music_unavailable
        - free_limit
        - plan_required
        - allowance_used
        - not_exported
        - not_editable
        - earlier_cut
        - invalid_edit
        - edit_timing_off
        - landscape_off
        - speaker_poster_off
        - reedit_off
        - music_off
        - animated_off
        - animated_locked
        - animation_pending
        - caption_style_unfit
        - animated_colors_fixed
        - animated_too_long
        - speed_too_slow
        - animated_allowance_used
        - animated_plan_required
        - redraw_limit
        - cap_workspace
        - cap_workspace_drawing
        - cap_global
        - attachment_video
        - attachment_too_big
        - attachment_missing
        - attachment_limit
        - attachment_too_long
        - ask_busy
        - plan_not_for_sale
        - not_entitled
        - plan_change_unavailable
        - not_for_sale
        - same_plan
        - resume_required
        - upgrade_pending
        - quote_expired
        - no_pending_upgrade
        - exit_offer_ended
        - campaign_offer_ended
        - post_publishing
        - post_already_ended
        - post_not_ended
        - post_preparing
        - post_not_retryable
        - post_needs_reconnect
        - post_may_be_live
        - text_post_needs_media
        - caption_required
        - caption_too_long
        - caption_ai_limit
        - caption_ai_no_source
        - caption_ai_failed
        - caption_ai_unavailable
        - caption_ai_no_room
        - caption_ai_listening
        - upload_words_limit
        - company_not_found
        - linkedin_needs_reconnect
        - youtube_off
        - youtube_not_short
        - youtube_too_large
        - scope_not_offered
        - x_off
        - x_video_refused
        - threads_off
        - threads_video_refused
        - pinterest_off
        - pinterest_video_refused
        - pinterest_business_account_needed
        - pinterest_needs_reconnect
        - google_business_off
        - google_business_needs_reconnect
        - google_business_video_refused
        - google_business_location_not_found
        - google_business_ended
        - bluesky_off
        - bluesky_video_refused
        - linkedin_page_off
        - linkedin_page_needs_reconnect
        - linkedin_page_not_found
        - facebook_video_refused
        - photo_unfittable
        - intake_not_found
        - intake_not_complete
        - intake_limit
        - intake_not_configured
        - intake_invalid
        - api_key_invalid
        - api_key_revoked
        - api_key_not_allowed
        - insufficient_scope
        - agent_api_off
        - agent_only
        - api_key_limit
        - api_key_daily_limit
        - idempotency_in_progress
        - idempotency_key_reused
        - publish_request_expired
        - publish_request_edited
        - publish_request_decided
        - publish_request_pending
        - video_not_postable
        - text_posts_waiting
        - publish_request_daily_limit
        - video_format_not_supported
        - photo_posts_waiting
        - upload_not_ready
        - tiktok_option_not_allowed
        - workspace_owner_only
        - oauth_off
        - oauth_request_expired
        - oauth_client_gone
        - oauth_device_code_unknown
        - oauth_request_not_yours
        - url_not_allowed
        - url_not_public
        - url_unreachable
        - not_a_video
        - video_too_large
        - video_too_long
        - url_fetches_busy
        - url_fetch_daily_limit
        - upload_incomplete
        - upload_used
        - broll_off
        - media_limit
        - media_daily_limit
        - media_too_large
        - media_too_long
        - media_not_supported
        - ai_clips_off
        - clip_limit
        - ai_clips_plan_required
        - clip_refusal_limit
        - stock_clip_limit
        - auto_edit_off
        - auto_edit_limit
        - auto_edit_locked
        - auto_edit_files_missing
        - auto_edit_busy
        - auto_edit_cutting
        - picture_blocks_off
        - picture_pending
        - block_too_long
        - footage_not_ready
        - block_is_clip
        - crop_size_unknown
        - no_speech
        - no_audio
        - feedback_unavailable
        - feedback_not_sent
        - feedback_rate_limited
        - duplicate_post
        - video_has_post
        - several_posts
        - post_in_old_format
        - x_same_text
        - youtube_already_posted
        - use_create_post
        - publish_requests_waiting
        - post_analytics_needs_plan
        - workspace_suspended
        - support_view_ended
        - support_view_read_only
      type: string
    ErrorDetail:
      additionalProperties: false
      type: object
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
    PerformanceSparkPointBody:
      additionalProperties: false
      type: object
      properties:
        at:
          format: date-time
          type: string
        value:
          format: double
          type:
            - number
            - 'null'
      required:
        - at
        - value
    PerformanceValueBody:
      additionalProperties: false
      type: object
      properties:
        metric:
          $ref: '#/components/schemas/PerformanceMetric'
        missing:
          description: >-
            Why value is null: the platform does not give it (not_shared); it is
            not in yet (pending: YouTube's shares, watch time, average view and
            subscribers before their first read, which YouTube gives 2 to 3 days
            late, or after a read that failed); Solara deleted it under the
            platform's terms, e.g. YouTube Analytics not re-read in 30 days
            (deleted_by_rule); or the platform gives it only in a post's first
            days and the post was read after them (past_window: X's link clicks
            and profile clicks, its first 30 days). Absent while the post is not
            read yet (status pending)
          enum:
            - not_shared
            - pending
            - deleted_by_rule
            - past_window
          type: string
        value:
          description: >-
            The lifetime total at the read (seconds, or a 0 to 1 rate, where the
            metric says). null: no number, shown as —
          format: double
          type:
            - number
            - 'null'
      required:
        - metric
        - value
    PerformanceMetric:
      description: >-
        A number by the platform's own name. Per post: YouTube views, likes,
        comments, shares, watch_time, average_view, subscribers_gained; TikTok
        views, likes, comments, shares; Instagram views, reach, likes, comments,
        shares, saves, profile_visits, follows, average_watch_time (Reels);
        Facebook views, reactions, comments, shares, average_watch_time; Threads
        views, likes, replies, reposts, quotes, shares; X impressions, likes,
        reposts, replies, quotes, bookmarks, link_clicks, profile_clicks;
        LinkedIn impressions, unique_impressions, clicks, reactions, comments,
        shares, engagement. Account, by day: followers (TikTok, Facebook,
        LinkedIn), page_views (LinkedIn). watch_time, average_view and
        average_watch_time are seconds; engagement is LinkedIn's rate, 0 to 1;
        reach, average_view, average_watch_time and engagement are never added
        across posts.
      enum:
        - views
        - impressions
        - unique_impressions
        - reach
        - likes
        - reactions
        - comments
        - replies
        - shares
        - reposts
        - quotes
        - saves
        - bookmarks
        - clicks
        - link_clicks
        - profile_clicks
        - profile_visits
        - follows
        - watch_time
        - average_view
        - average_watch_time
        - subscribers_gained
        - engagement
        - followers
        - page_views
      type: string
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: sol_live_
      description: >-
        An API key, created in Solara: the menu under your name, then API keys.
        Send it as `Authorization: Bearer sol_live_…`. It works while the
        workspace has agent access, within what its plan gives (the free plan
        included).

````

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