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

# Report rows: counted arrivals beside Meta outbound clicks

> The arrivals comparison for a fixed 7, 30 or 90 day or 12 month window as one flat row. Cached for a few minutes until new data lands.



## OpenAPI

````yaml https://plainrouter.com/openapi.json get /workspaces/{workspace}/admin/report-rows/arrivals-window
openapi: 3.1.0
info:
  title: Plainrouter Conversion API
  version: 0.5.0
  description: Plainrouter public Signals Conversion API.
servers:
  - url: https://plainrouter.com/api/v1
    description: Production
security:
  - workspaceSecret: []
paths:
  /workspaces/{workspace}/admin/report-rows/arrivals-window:
    get:
      tags:
        - SignalsExport
      summary: 'Report rows: counted arrivals beside Meta outbound clicks'
      description: >-
        The arrivals comparison for a fixed 7, 30 or 90 day or 12 month window
        as one flat row. Cached for a few minutes until new data lands.
      operationId: get_report_rows_arrivals_window
      parameters:
        - name: workspace
          in: path
          required: true
          description: The workspace ID
          schema:
            type: integer
        - name: account_id
          in: query
          description: >-
            Optional advertising account selector, restricted to the workspace
            and key binding. An account outside either returns 404.
          schema:
            minimum: 1
            type: integer
        - name: days
          in: query
          description: >-
            Trailing days: 7, 30 or 90. Any other value returns 422; it is never
            coerced.
          schema:
            type: integer
            enum:
              - 7
              - 30
              - 90
            default: 7
        - name: months
          in: query
          description: >-
            Select the trailing twelve-month window instead of days. Sending
            both returns 422.
          schema:
            type: integer
            enum:
              - 12
      responses:
        '200':
          description: >-
            Counted arrivals beside Meta outbound clicks for one fixed window,
            as one flat row with basis_note and data_caveat.
          content:
            application/json:
              schema:
                type: object
                properties:
                  table:
                    type: string
                    const: arrivals-window
                  generated_at:
                    type: string
                    description: >-
                      When these rows were read. A repeat read within the cache
                      time can return the same rows until new data lands.
                  rows:
                    type: array
                    items:
                      type: object
                      properties:
                        window:
                          type: string
                          description: >-
                            The fixed window: 7_days, 30_days, 90_days or
                            12_months.
                        since:
                          type: string
                          description: Dimension.
                        until:
                          type: string
                          description: Dimension.
                        timezone:
                          type: string
                          description: Dimension.
                        ad_account_id:
                          type:
                            - integer
                            - 'null'
                          description: Dimension.
                        status:
                          type: string
                          description: Dimension.
                        connection_status:
                          type: string
                          description: Dimension.
                        currency:
                          type:
                            - string
                            - 'null'
                          description: Dimension.
                        counted_arrivals:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            Counted by Plainrouter. Null stays null; it is never
                            zero.
                        counted_arrivals_null_reason:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Why the field it names is null, where the read gives
                            a reason.
                        counted_conversions:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            Counted by Plainrouter. Null stays null; it is never
                            zero.
                        counted_conversions_null_reason:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Why the field it names is null, where the read gives
                            a reason.
                        meta_claimed_clicks:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            As Meta reports it. Null stays null; it is never
                            zero.
                        meta_claimed_clicks_null_reason:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Why the field it names is null, where the read gives
                            a reason.
                        meta_claimed_clicks_source:
                          type:
                            - string
                            - 'null'
                          description: >-
                            As Meta reports it. Null stays null; it is never
                            zero.
                        meta_claimed_clicks_last_read_at:
                          type:
                            - string
                            - 'null'
                          description: >-
                            As Meta reports it. Null stays null; it is never
                            zero.
                        meta_impressions:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            As Meta reports it. Null stays null; it is never
                            zero.
                        meta_spend:
                          type:
                            - string
                            - 'null'
                          description: >-
                            As Meta reports it. Null stays null; it is never
                            zero.
                        meta_spend_null_reason:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Why the field it names is null, where the read gives
                            a reason.
                        counted_minus_meta_claimed_clicks:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            counted_arrivals minus meta_claimed_clicks, as the
                            arrivals comparison computes it; positive means more
                            arrivals.
                        counted_minus_meta_claimed_clicks_null_reason:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Why the field it names is null, where the read gives
                            a reason.
                        basis_note:
                          type: string
                          description: >-
                            How the two counting bases differ, verbatim from the
                            JSON read.
                        data_caveat:
                          type: string
                          description: >-
                            What to keep in mind when charting this row, in
                            plain sentences.
                      required:
                        - window
                        - since
                        - until
                        - timezone
                        - ad_account_id
                        - status
                        - connection_status
                        - currency
                        - counted_arrivals
                        - counted_arrivals_null_reason
                        - counted_conversions
                        - counted_conversions_null_reason
                        - meta_claimed_clicks
                        - meta_claimed_clicks_null_reason
                        - meta_claimed_clicks_source
                        - meta_claimed_clicks_last_read_at
                        - meta_impressions
                        - meta_spend
                        - meta_spend_null_reason
                        - counted_minus_meta_claimed_clicks
                        - counted_minus_meta_claimed_clicks_null_reason
                        - basis_note
                        - data_caveat
                required:
                  - table
                  - generated_at
                  - rows
          headers:
            Cache-Control:
              schema:
                type: string
                const: no-store, private
        '401':
          description: >-
            Workspace read key missing, revoked, expired or no longer valid for
            its issuer.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '403':
          description: >-
            The key lacks the operation scope, ability or current workspace
            role.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '404':
          description: Workspace or account not found or outside the key binding.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ErrorMessage'
                  - $ref: '#/components/schemas/ApiRouteNotFound'
        '422':
          description: >-
            Unknown parameter, or a value outside the table's own choices. The
            whole request is refused.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
      security:
        - workspaceExportKey: []
components:
  schemas:
    ErrorMessage:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: ErrorMessage
    ApiRouteNotFound:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - api_route_not_found
            message:
              type: string
            resolution:
              type: string
          required:
            - code
            - message
            - resolution
        request:
          type: object
          properties:
            method:
              type: string
            path:
              type: string
          required:
            - method
            - path
        resources:
          type: object
          properties:
            documentation:
              type: string
            openapi:
              type: string
          required:
            - documentation
            - openapi
      required:
        - error
        - request
        - resources
      title: ApiRouteNotFound
    ValidationError:
      type: object
      properties:
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
      required:
        - message
        - errors
      title: ValidationError
  securitySchemes:
    workspaceSecret:
      type: http
      description: >-
        Per-workspace Server secret. It authenticates only the Signals workspace
        represented by the credential.
      scheme: bearer
    workspaceExportKey:
      type: http
      description: >-
        Workspace read key whose stored grant explicitly names the operation.
        Existing grants are not expanded. A Reporting key reads only arrivals,
        CAC by channel and monthly statements here.
      scheme: bearer

````

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