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

# Public Report Snapshot

> Anonymous view of a frozen report snapshot (share page).



## OpenAPI

````yaml /openapi.json get /api/v1/public/share/reports/{token}
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/public/share/reports/{token}:
    get:
      tags:
        - Public
      summary: Public Report Snapshot
      description: Anonymous view of a frozen report snapshot (share page).
      operationId: public_report_snapshot_api_v1_public_share_reports__token__get
      parameters:
        - name: token
          in: path
          required: true
          schema:
            type: string
            title: Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicReportSnapshotResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PublicReportSnapshotResponse:
      properties:
        token:
          type: string
          title: Token
        report_type:
          type: string
          title: Report Type
        title:
          type: string
          title: Title
        view:
          anyOf:
            - type: string
            - type: 'null'
          title: View
        creator_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Creator Name
        created_at:
          type: string
          format: date-time
          title: Created At
        card_metrics:
          items:
            type: string
          type: array
          title: Card Metrics
        report:
          $ref: '#/components/schemas/PublicWhatsWorkingReport'
      type: object
      required:
        - token
        - report_type
        - title
        - created_at
        - report
      title: PublicReportSnapshotResponse
      description: Anonymous share-page payload — the frozen report plus display meta.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PublicWhatsWorkingReport:
      properties:
        status:
          type: string
          enum:
            - ok
            - not_connected
            - needs_account_selection
          title: Status
        account_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Account Name
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
        date_preset:
          type: string
          title: Date Preset
        date_start:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Date Start
        date_end:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Date End
        generated_at:
          type: string
          format: date-time
          title: Generated At
        rows:
          items:
            $ref: '#/components/schemas/PublicWhatsWorkingRow'
          type: array
          title: Rows
        totals:
          anyOf:
            - $ref: '#/components/schemas/WhatsWorkingMetrics'
            - type: 'null'
      type: object
      required:
        - status
        - date_preset
        - generated_at
      title: PublicWhatsWorkingReport
      description: >-
        Anonymous-safe projection of a frozen What's Working report.


        Drops the internal identifiers the share page never renders and that
        must

        not be published on a capability link: ``brand_id`` (internal DB UUID),

        ``account_id`` (the sharer's Meta ad-account number), and

        ``account_timezone_name``. Built from the stored payload at read time.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    PublicWhatsWorkingRow:
      properties:
        spend:
          type: number
          title: Spend
          default: 0
        impressions:
          type: integer
          title: Impressions
          default: 0
        clicks:
          type: integer
          title: Clicks
          default: 0
        link_clicks:
          type: integer
          title: Link Clicks
          default: 0
        outbound_clicks:
          type: integer
          title: Outbound Clicks
          default: 0
        purchases:
          type: number
          title: Purchases
          default: 0
        purchase_value:
          type: number
          title: Purchase Value
          default: 0
        leads:
          type: number
          title: Leads
          default: 0
        adds_to_cart:
          type: number
          title: Adds To Cart
          default: 0
        video_views:
          type: number
          title: Video Views
          default: 0
        roas:
          anyOf:
            - type: number
            - type: 'null'
          title: Roas
        cpa:
          anyOf:
            - type: number
            - type: 'null'
          title: Cpa
        aov:
          anyOf:
            - type: number
            - type: 'null'
          title: Aov
        cost_per_lead:
          anyOf:
            - type: number
            - type: 'null'
          title: Cost Per Lead
        ctr:
          anyOf:
            - type: number
            - type: 'null'
          title: Ctr
        ctr_outbound:
          anyOf:
            - type: number
            - type: 'null'
          title: Ctr Outbound
        cpc:
          anyOf:
            - type: number
            - type: 'null'
          title: Cpc
        cpc_link:
          anyOf:
            - type: number
            - type: 'null'
          title: Cpc Link
        cpm:
          anyOf:
            - type: number
            - type: 'null'
          title: Cpm
        click_to_atc_ratio:
          anyOf:
            - type: number
            - type: 'null'
          title: Click To Atc Ratio
        atc_to_purchase_ratio:
          anyOf:
            - type: number
            - type: 'null'
          title: Atc To Purchase Ratio
        thumbstop_ratio:
          anyOf:
            - type: number
            - type: 'null'
          title: Thumbstop Ratio
        group_key:
          type: string
          title: Group Key
        ad_name:
          type: string
          title: Ad Name
        ad_count:
          type: integer
          title: Ad Count
          default: 0
        thumbnail_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Thumbnail Url
      type: object
      required:
        - group_key
        - ad_name
      title: PublicWhatsWorkingRow
      description: |-
        Anonymous-safe report row — the metrics the share page renders, minus
        the internal Meta ``ad_ids`` / ``media_assets[].ad_id`` identifiers.
    WhatsWorkingMetrics:
      properties:
        spend:
          type: number
          title: Spend
          default: 0
        impressions:
          type: integer
          title: Impressions
          default: 0
        clicks:
          type: integer
          title: Clicks
          default: 0
        link_clicks:
          type: integer
          title: Link Clicks
          default: 0
        outbound_clicks:
          type: integer
          title: Outbound Clicks
          default: 0
        purchases:
          type: number
          title: Purchases
          default: 0
        purchase_value:
          type: number
          title: Purchase Value
          default: 0
        leads:
          type: number
          title: Leads
          default: 0
        adds_to_cart:
          type: number
          title: Adds To Cart
          default: 0
        video_views:
          type: number
          title: Video Views
          default: 0
        roas:
          anyOf:
            - type: number
            - type: 'null'
          title: Roas
        cpa:
          anyOf:
            - type: number
            - type: 'null'
          title: Cpa
        aov:
          anyOf:
            - type: number
            - type: 'null'
          title: Aov
        cost_per_lead:
          anyOf:
            - type: number
            - type: 'null'
          title: Cost Per Lead
        ctr:
          anyOf:
            - type: number
            - type: 'null'
          title: Ctr
        ctr_outbound:
          anyOf:
            - type: number
            - type: 'null'
          title: Ctr Outbound
        cpc:
          anyOf:
            - type: number
            - type: 'null'
          title: Cpc
        cpc_link:
          anyOf:
            - type: number
            - type: 'null'
          title: Cpc Link
        cpm:
          anyOf:
            - type: number
            - type: 'null'
          title: Cpm
        click_to_atc_ratio:
          anyOf:
            - type: number
            - type: 'null'
          title: Click To Atc Ratio
        atc_to_purchase_ratio:
          anyOf:
            - type: number
            - type: 'null'
          title: Atc To Purchase Ratio
        thumbstop_ratio:
          anyOf:
            - type: number
            - type: 'null'
          title: Thumbstop Ratio
      type: object
      title: WhatsWorkingMetrics
      description: >-
        Aggregated Meta insights metrics for one ad group (or the report
        totals).


        Raw counters are summed across the group's ads; ratio metrics are
        derived

        AFTER aggregation (never averaged) and are ``None`` when the denominator

        is zero.

````