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

# One-shot envelope of every mock analytics pipe



## OpenAPI

````yaml /api-reference/openapi.json get /v1/analytics/mocks/dashboard
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/analytics/mocks/dashboard:
    get:
      tags:
        - analytics
      summary: One-shot envelope of every mock analytics pipe
      operationId: getMockDashboard
      parameters:
        - name: granularity
          in: query
          required: false
          schema:
            type: string
            pattern: ^(minute|hour|day|week)$
            default: hour
            title: Granularity
        - name: mock_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Mock Id
        - name: top_scenarios_limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 10
            title: Top Scenarios Limit
        - name: start_date
          in: query
          required: true
          schema:
            type: string
            format: date
            title: Start Date
        - name: end_date
          in: query
          required: true
          schema:
            type: string
            format: date
            title: End Date
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MockDashboardEnvelope'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    MockDashboardEnvelope:
      properties:
        summary:
          items:
            $ref: '#/components/schemas/MockSummaryRow'
          type: array
          title: Summary
        requests:
          items:
            $ref: '#/components/schemas/MockRequestsTimeseriesRow'
          type: array
          title: Requests
        latency:
          items:
            $ref: '#/components/schemas/MockLatencyTimeseriesRow'
          type: array
          title: Latency
        match_rate:
          items:
            $ref: '#/components/schemas/MockMatchRateTimeseriesRow'
          type: array
          title: Match Rate
        top_scenarios:
          items:
            $ref: '#/components/schemas/MockTopScenarioRow'
          type: array
          title: Top Scenarios
      type: object
      required:
        - summary
        - requests
        - latency
        - match_rate
        - top_scenarios
      title: MockDashboardEnvelope
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MockSummaryRow:
      properties:
        requests:
          type: integer
          title: Requests
        matched_requests:
          type: integer
          title: Matched Requests
        errors:
          type: integer
          title: Errors
        match_rate:
          type: number
          title: Match Rate
        error_rate:
          type: number
          title: Error Rate
        avg_latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Latency Ms
        p95_latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: P95 Latency Ms
      type: object
      required:
        - requests
        - matched_requests
        - errors
        - match_rate
        - error_rate
      title: MockSummaryRow
    MockRequestsTimeseriesRow:
      properties:
        time_bucket:
          type: string
          format: date-time
          title: Time Bucket
        requests:
          type: integer
          title: Requests
        matched_requests:
          type: integer
          title: Matched Requests
        errors:
          type: integer
          title: Errors
      type: object
      required:
        - time_bucket
        - requests
        - matched_requests
        - errors
      title: MockRequestsTimeseriesRow
    MockLatencyTimeseriesRow:
      properties:
        time_bucket:
          type: string
          format: date-time
          title: Time Bucket
        requests:
          type: integer
          title: Requests
        avg_latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Latency Ms
        p50_latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: P50 Latency Ms
        p95_latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: P95 Latency Ms
        p99_latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: P99 Latency Ms
      type: object
      required:
        - time_bucket
        - requests
      title: MockLatencyTimeseriesRow
    MockMatchRateTimeseriesRow:
      properties:
        time_bucket:
          type: string
          format: date-time
          title: Time Bucket
        requests:
          type: integer
          title: Requests
        matched_requests:
          type: integer
          title: Matched Requests
        match_rate:
          type: number
          title: Match Rate
      type: object
      required:
        - time_bucket
        - requests
        - matched_requests
        - match_rate
      title: MockMatchRateTimeseriesRow
    MockTopScenarioRow:
      properties:
        scenario_id:
          type: string
          title: Scenario Id
        scenario_name:
          type: string
          title: Scenario Name
        requests:
          type: integer
          title: Requests
        avg_latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Latency Ms
        p95_latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: P95 Latency Ms
      type: object
      required:
        - scenario_id
        - scenario_name
        - requests
      title: MockTopScenarioRow
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````