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

# Get Org Analytics

> Return analytics across all apps in the org, tier-gated by org plan.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json get /v1/orgs/analytics
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/orgs/analytics:
    get:
      tags:
        - analytics
      summary: Get Org Analytics
      description: Return analytics across all apps in the org, tier-gated by org plan.
      operationId: analytics_get_org_analytics
      parameters:
        - name: period
          in: query
          required: false
          schema:
            type: string
            pattern: ^(7d|30d|90d)$
            default: 30d
            title: Period
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAnalyticsResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    OrgAnalyticsResponse:
      properties:
        org_id:
          type: string
          format: uuid
          title: Org Id
        period:
          type: string
          title: Period
        summary:
          $ref: '#/components/schemas/OrgAnalyticsSummary'
        apps:
          items:
            $ref: '#/components/schemas/AppComparisonEntry'
          type: array
          title: Apps
        time_series:
          items:
            $ref: '#/components/schemas/TimeSeriesPoint'
          type: array
          title: Time Series
      type: object
      required:
        - org_id
        - period
        - summary
        - apps
        - time_series
      title: OrgAnalyticsResponse
      description: Response for org-level analytics.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    OrgAnalyticsSummary:
      properties:
        total_requests:
          type: integer
          title: Total Requests
        total_errors:
          type: integer
          title: Total Errors
        error_rate:
          type: number
          title: Error Rate
        total_apps_with_traffic:
          type: integer
          title: Total Apps With Traffic
        avg_latency_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Avg Latency Ms
        p95_latency_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: P95 Latency Ms
        authenticated_requests:
          anyOf:
            - type: integer
            - type: 'null'
          title: Authenticated Requests
        unauthenticated_requests:
          anyOf:
            - type: integer
            - type: 'null'
          title: Unauthenticated Requests
        gateway_handled_requests:
          anyOf:
            - type: integer
            - type: 'null'
          title: Gateway Handled Requests
        status_code_breakdown:
          additionalProperties:
            type: integer
          type: object
          title: Status Code Breakdown
        rejection_breakdown:
          additionalProperties:
            type: integer
          type: object
          title: Rejection Breakdown
          default: {}
      type: object
      required:
        - total_requests
        - total_errors
        - error_rate
        - total_apps_with_traffic
        - avg_latency_ms
        - p95_latency_ms
        - authenticated_requests
        - unauthenticated_requests
        - gateway_handled_requests
        - status_code_breakdown
      title: OrgAnalyticsSummary
      description: >-
        Summary statistics across all apps in an org.


        Mirrors the latency / status-code surface of `AppAnalyticsSummary` so an

        agent processing analytics output does not have to null-check
        differently

        depending on scope. Tier-gated fields (`avg_latency_ms`,
        `p95_latency_ms`)

        stay `None` when analytics is restricted where per-app analytics also
        returns `None`,

        keeping the gating contract identical at both scopes.
    AppComparisonEntry:
      properties:
        app_id:
          type: string
          format: uuid
          title: App Id
        app_name:
          type: string
          title: App Name
        total_requests:
          type: integer
          title: Total Requests
        total_errors:
          type: integer
          title: Total Errors
        error_rate:
          type: number
          title: Error Rate
        avg_latency_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Avg Latency Ms
      type: object
      required:
        - app_id
        - app_name
        - total_requests
        - total_errors
        - error_rate
        - avg_latency_ms
      title: AppComparisonEntry
      description: A single app entry in the org-level comparison.
    TimeSeriesPoint:
      properties:
        period_start:
          type: string
          format: date-time
          title: Period Start
        request_count:
          type: integer
          title: Request Count
        error_count:
          type: integer
          title: Error Count
        error_rate:
          type: number
          title: Error Rate
      type: object
      required:
        - period_start
        - request_count
        - error_count
        - error_rate
      title: TimeSeriesPoint
      description: A single data point in a time series.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

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