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

# Get a summary

> Solara AI API: The numbers of the posts published in the last `days` (7, 30 or 90): each KPI against the period before (`compare`), its daily line per platform and, on the overview, each platform's share. `scope` is the overview or one platform. 403 `post_analytics_withheld` for YouTube's or Threads' scope; 403 `post_analytics_needs_plan` for X without a plan.

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



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/performance/summary
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/summary:
    get:
      tags:
        - Performance
      summary: Get a summary
      description: >-
        The numbers of the posts published in the last `days` (7, 30 or 90):
        each KPI against the period before (`compare`), its daily line per
        platform and, on the overview, each platform's share. `scope` is the
        overview or one platform. 403 `post_analytics_withheld` for YouTube's or
        Threads' scope; 403 `post_analytics_needs_plan` for X without a plan.


        Permission: **Read** (`read`).
      operationId: get-performance-summary
      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: >-
            Also the previous period of the same length, its posts read at the
            same age (not on the YouTube tab)
          explode: false
          in: query
          name: compare
          schema:
            default: false
            description: >-
              Also the previous period of the same length, its posts read at the
              same age (not on the YouTube tab)
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PerformanceSummaryBody'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - ApiKeyBearer: []
components:
  schemas:
    PerformanceSummaryBody:
      additionalProperties: false
      type: object
      properties:
        by_platform:
          description: >-
            The Overview's By platform: its platforms' views, then X's and
            LinkedIn's impressions. Absent on a platform's tab
          items:
            $ref: '#/components/schemas/PerformancePlatformTotalBody'
          type:
            - array
            - 'null'
        days:
          description: The range's length in days
          format: int64
          type: integer
        followers:
          description: >-
            Each platform of the scope whose followers Solara reads once a day
            (TikTok, Instagram, Facebook; LinkedIn on its tab): its total each
            day, and the day's follows and unfollows where the platform gives
            them. Absent where none is (YouTube, Threads, X)
          items:
            $ref: '#/components/schemas/PerformanceFollowersBody'
          type:
            - array
            - 'null'
        from:
          description: 'The range''s start: midnight UTC, days - 1 days before today'
          format: date-time
          type: string
        kpis:
          description: The scope's numbers for the range, in the order the tab shows them
          items:
            $ref: '#/components/schemas/PerformanceKPIBody'
          type:
            - array
            - 'null'
        made_with:
          enum:
            - solara
            - everything
          type: string
        metrics:
          description: >-
            The scope's numbers per post, in the order its table shows them:
            list-post-performance's values and sort
          items:
            $ref: '#/components/schemas/PerformanceMetric'
          type:
            - array
            - 'null'
        platforms:
          description: >-
            The platforms the KPIs and series add up: the scope's one, or on the
            Overview those of TikTok, Instagram, Facebook and Threads connected
            (never YouTube, X or LinkedIn)
          items:
            enum:
              - youtube
              - tiktok
              - instagram
              - facebook
              - threads
              - x
              - linkedin
              - linkedin_page
            type: string
          type:
            - array
            - 'null'
        scope:
          enum:
            - overview
            - youtube
            - tiktok
            - instagram
            - facebook
            - threads
            - x
            - linkedin
            - linkedin_page
          type: string
        series:
          description: >-
            Each KPI's daily line per platform (the Overview's four, a tab's
            one). On the YouTube tab, YouTube's own views by day, one line a
            channel, from YouTube Analytics, never added together; a day YouTube
            has not answered yet is an early count from the latest checks
            (early_count) where one read the channel's videos since the day
            began, null otherwise
          items:
            $ref: '#/components/schemas/PerformanceSeriesBody'
          type:
            - array
            - 'null'
        to:
          description: 'The range''s end: now'
          format: date-time
          type: string
        updated_at:
          description: The newest read of any number here. null before the first
          format: date-time
          type:
            - string
            - 'null'
      required:
        - scope
        - days
        - from
        - to
        - made_with
        - platforms
        - metrics
        - kpis
        - series
        - updated_at
    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
    PerformancePlatformTotalBody:
      additionalProperties: false
      type: object
      properties:
        metric:
          $ref: '#/components/schemas/PerformanceMetric'
          description: views; impressions for X and LinkedIn
        platform:
          enum:
            - tiktok
            - instagram
            - facebook
            - threads
            - x
            - linkedin
            - linkedin_page
          type: string
        share:
          description: >-
            Its part of the Overview's views, 0 to 1. Absent for X and LinkedIn,
            which are not in the Overview
          format: double
          type: number
        value:
          description: >-
            The range's total. null: not given, or not in yet (X and LinkedIn
            with no post of the range read)
          format: double
          type:
            - number
            - 'null'
      required:
        - platform
        - metric
        - value
    PerformanceFollowersBody:
      additionalProperties: false
      type: object
      properties:
        days:
          description: One per day of the range, oldest first
          items:
            $ref: '#/components/schemas/PerformanceFollowerDayBody'
          type:
            - array
            - 'null'
        gives:
          description: >-
            Which of a day's follows (gained) and unfollows (lost) the platform
            gives besides the total: Facebook both, Instagram and LinkedIn
            gained, TikTok neither. A count it does not give is always null
          items:
            enum:
              - gained
              - lost
            type: string
          type:
            - array
            - 'null'
        platform:
          enum:
            - tiktok
            - instagram
            - facebook
            - linkedin
          type: string
      required:
        - platform
        - gives
        - days
    PerformanceKPIBody:
      additionalProperties: false
      type: object
      properties:
        metric:
          $ref: '#/components/schemas/PerformanceMetric'
        previous:
          description: >-
            The same for the period of the same length just before, each of its
            posts at the age the range's have now (between reads, interpolated
            as the daily lines are). null without compare, on the YouTube tab,
            or where not given
          format: double
          type:
            - number
            - 'null'
        value:
          description: >-
            The posts published in the range, added up from their newest reads
            (followers: the change over the range). null: no platform in the
            scope gave it
          format: double
          type:
            - number
            - 'null'
      required:
        - metric
        - value
        - previous
    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
    PerformanceSeriesBody:
      additionalProperties: false
      type: object
      properties:
        account_name:
          description: >-
            The YouTube channel a YouTube line is: one line a channel, never
            added together. Absent on other platforms' lines
          type: string
        estimated:
          description: >-
            Interpolated from the post's publishing (0) through its reads, shown
            as estimated. false where the platform gives its own day (LinkedIn)
          type: boolean
        metric:
          $ref: '#/components/schemas/PerformanceMetric'
        platform:
          enum:
            - youtube
            - tiktok
            - instagram
            - facebook
            - threads
            - x
            - linkedin
            - linkedin_page
          type: string
        points:
          description: One per day of the range, oldest first
          items:
            $ref: '#/components/schemas/PerformancePointBody'
          type:
            - array
            - 'null'
        previous:
          description: The previous period's, day for day, with compare. Absent otherwise
          items:
            $ref: '#/components/schemas/PerformancePointBody'
          type:
            - array
            - 'null'
      required:
        - metric
        - platform
        - estimated
        - points
    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
    PerformanceFollowerDayBody:
      additionalProperties: false
      type: object
      properties:
        day:
          description: The UTC day (the platform's own day where it gives one)
          format: date
          type: string
        gained:
          description: >-
            The day's follows, as the platform gives them (Instagram's new
            followers, Facebook's follows, LinkedIn's follower gains). null: not
            given, or not read that day
          format: double
          type:
            - number
            - 'null'
        lost:
          description: >-
            The day's unfollows (Facebook's). null: not given, or not read that
            day
          format: double
          type:
            - number
            - 'null'
        total:
          description: >-
            The platform's followers that day as it counted them, read once a
            day; its accounts added up. null: not read that day (before the
            account was connected, or a read that failed): never estimated
          format: double
          type:
            - number
            - 'null'
      required:
        - day
        - total
        - gained
        - lost
    PerformancePointBody:
      additionalProperties: false
      type: object
      properties:
        day:
          description: The UTC day (the platform's own day where it gives one)
          format: date
          type: string
        early_count:
          description: >-
            YouTube: a day YouTube Analytics has not given yet (it is 2 to 3
            days behind), counted early from the channel's videos' latest checks
            (their lifetime views, which grow on the day). A lower bound,
            replaced by YouTube's own number once it gives the day. Absent
            elsewhere
          type: boolean
        value:
          description: 'What the day added. null: nothing known that day'
          format: double
          type:
            - number
            - 'null'
      required:
        - day
        - value
  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.