> ## 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 post's numbers

> Solara AI API: The post asked and the same post on its other platforms, each with its own metrics and every read (lifetime totals at each check). 404 for another workspace's post; 403 `post_analytics_withheld` for a YouTube or Threads post.

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



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/performance/posts/{id}
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/{id}:
    get:
      tags:
        - Performance
      summary: Get a post's numbers
      description: >-
        The post asked and the same post on its other platforms, each with its
        own metrics and every read (lifetime totals at each check). 404 for
        another workspace's post; 403 `post_analytics_withheld` for a YouTube or
        Threads post.


        Permission: **Read** (`read`).
      operationId: get-post-performance
      parameters:
        - description: A post on a platform (list-post-performance's id)
          in: path
          name: id
          required: true
          schema:
            description: A post on a platform (list-post-performance's id)
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostPerformanceOutputBody'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - ApiKeyBearer: []
components:
  schemas:
    PostPerformanceOutputBody:
      additionalProperties: false
      type: object
      properties:
        platforms:
          description: >-
            The post asked first, then the same Solara post on its other
            platforms, each with its platform's metrics and every read
          items:
            $ref: '#/components/schemas/PlatformPostPerformanceBody'
          type:
            - array
            - 'null'
      required:
        - platforms
    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
    PlatformPostPerformanceBody:
      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
        daily_views:
          description: >-
            YouTube: the video's lifetime views through each of its days, as
            YouTube Analytics gives them (2 to 3 days behind), oldest first.
            Absent elsewhere, and until the first day is in
          items:
            $ref: '#/components/schemas/PerformanceDayBody'
          type:
            - array
            - 'null'
        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
        retention:
          $ref: '#/components/schemas/PerformanceRetentionBody'
          description: >-
            How long people watched it: a YouTube video's, or a Facebook video's
            or reel's, curve; an Instagram Reel's skip rate (Instagram gives no
            curve). Absent for a post that cannot have it (a picture, a
            carousel, a text post, a story, other platforms)
        snapshots:
          description: Every read, oldest first
          items:
            $ref: '#/components/schemas/PerformanceSnapshotBody'
          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:
        - snapshots
        - 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
    PerformanceDayBody:
      additionalProperties: false
      type: object
      properties:
        at:
          description: 'When that day ended: the time its total stands at'
          format: date-time
          type: string
        day:
          description: YouTube Analytics' day (Pacific time), YYYY-MM-DD
          format: date
          type: string
        views:
          description: >-
            The video's views from its publishing through the end of day, as
            YouTube computes them
          format: int64
          type: integer
      required:
        - day
        - at
        - views
    PerformanceRetentionBody:
      additionalProperties: false
      type: object
      properties:
        after_3s:
          description: >-
            Facebook: the share still watching 3 seconds in, read off its curve,
            0 to 1. null elsewhere
          format: double
          type:
            - number
            - 'null'
        avg_view_ratio:
          description: >-
            YouTube: the average part of the video watched (its
            averageViewPercentage), 0 to 1. null elsewhere, or not in yet
          format: double
          type:
            - number
            - 'null'
        avg_view_s:
          description: >-
            The average time a view watched, in seconds. null: not given, or not
            in yet
          format: double
          type:
            - number
            - 'null'
        curve:
          $ref: '#/components/schemas/PerformanceCurveBody'
          description: The curve, with kind curve and status ready. Absent otherwise
        duration_s:
          description: >-
            The video's length in seconds, as the platform gives it. null: not
            given
          format: double
          type:
            - number
            - 'null'
        kind:
          description: >-
            curve: the share of viewers still watching from start to end
            (YouTube, Facebook); skip_rate: an Instagram Reel's share of plays
            skipped in its first 3 seconds
          enum:
            - curve
            - skip_rate
          type: string
        skip_rate:
          description: >-
            Instagram: the share of the Reel's plays skipped in its first 3
            seconds, lifetime, 0 to 1. null elsewhere, or not in yet
          format: double
          type:
            - number
            - 'null'
        status:
          description: >-
            ready: there is something to show; pending: not in yet (YouTube
            shares it 2 to 3 days after posting, Meta within 2 days), or the
            post is not read yet; none: the platform shared nothing for this
            post (too few views)
          enum:
            - ready
            - pending
            - none
          type: string
        watched_to_end:
          description: >-
            The curve's last point: the share still watching at the end, 0 to 1
            (YouTube's can pass 1 with rewatches). null without a curve
          format: double
          type:
            - number
            - 'null'
      required:
        - kind
        - status
        - duration_s
        - watched_to_end
        - after_3s
        - avg_view_ratio
        - avg_view_s
        - skip_rate
    PerformanceSnapshotBody:
      additionalProperties: false
      type: object
      properties:
        captured_at:
          format: date-time
          type: string
        values:
          description: >-
            Each lifetime total at captured_at, the platform's metrics in order,
            as values leaves them
          items:
            $ref: '#/components/schemas/PerformanceValueBody'
          type:
            - array
            - 'null'
      required:
        - captured_at
        - values
    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
    PerformanceCurveBody:
      additionalProperties: false
      type: object
      properties:
        from:
          description: >-
            Where the first point sits, 0 to 1 of the video (YouTube 0.01,
            Facebook 0)
          format: double
          type: number
        points:
          description: >-
            The share of viewers still watching at evenly spaced points from
            from to the end of the video, at most 100, each 0 to 1 (YouTube's
            can pass 1: people who watched a part again)
          items:
            format: double
            type: number
          type:
            - array
            - 'null'
      required:
        - from
        - points
    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.