> ## 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 policy analytics pipe



## OpenAPI

````yaml /api-reference/openapi.json get /v1/analytics/policies/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/policies/dashboard:
    get:
      tags:
        - analytics
      summary: One-shot envelope of every policy analytics pipe
      operationId: getPolicyDashboard
      parameters:
        - name: granularity
          in: query
          required: false
          schema:
            type: string
            pattern: ^(minute|hour|day|week)$
            default: hour
            title: Granularity
        - name: channel
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Channel
        - 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/src__analytics__policy__schemas__DashboardEnvelope
        '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:
    src__analytics__policy__schemas__DashboardEnvelope:
      properties:
        violation_rate:
          items:
            $ref: '#/components/schemas/ViolationRateRow'
          type: array
          title: Violation Rate
        action_breakdown:
          items:
            $ref: '#/components/schemas/ActionBreakdownRow'
          type: array
          title: Action Breakdown
        violations_timeseries:
          items:
            $ref: '#/components/schemas/ViolationsTimeseriesRow'
          type: array
          title: Violations Timeseries
        monitor_rollout:
          items:
            $ref: '#/components/schemas/MonitorRolloutRow'
          type: array
          title: Monitor Rollout
      type: object
      required:
        - violation_rate
        - action_breakdown
        - violations_timeseries
        - monitor_rollout
      title: DashboardEnvelope
    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
    ViolationRateRow:
      properties:
        policy_id:
          type: string
          title: Policy Id
        policy_name:
          type: string
          title: Policy Name
        strictness:
          type: string
          title: Strictness
        evaluations:
          type: integer
          title: Evaluations
        violations:
          type: integer
          title: Violations
        violation_rate_pct:
          type: number
          title: Violation Rate Pct
        enforced:
          type: integer
          title: Enforced
        would_be:
          type: integer
          title: Would Be
        errors:
          type: integer
          title: Errors
        avg_latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Latency Ms
      type: object
      required:
        - policy_id
        - policy_name
        - strictness
        - evaluations
        - violations
        - violation_rate_pct
        - enforced
        - would_be
        - errors
      title: ViolationRateRow
    ActionBreakdownRow:
      properties:
        action:
          type: string
          title: Action
        mode_bucket:
          type: string
          title: Mode Bucket
        count:
          type: integer
          title: Count
      type: object
      required:
        - action
        - mode_bucket
        - count
      title: ActionBreakdownRow
    ViolationsTimeseriesRow:
      properties:
        time_bucket:
          type: string
          format: date-time
          title: Time Bucket
        evaluations:
          type: integer
          title: Evaluations
        violations:
          type: integer
          title: Violations
        enforced_violations:
          type: integer
          title: Enforced Violations
        shadow_violations:
          type: integer
          title: Shadow Violations
      type: object
      required:
        - time_bucket
        - evaluations
        - violations
        - enforced_violations
        - shadow_violations
      title: ViolationsTimeseriesRow
    MonitorRolloutRow:
      properties:
        policy_id:
          type: string
          title: Policy Id
        policy_name:
          type: string
          title: Policy Name
        strictness:
          type: string
          title: Strictness
        evaluations:
          type: integer
          title: Evaluations
        would_be_violations:
          type: integer
          title: Would Be Violations
        would_be_rate_pct:
          type: number
          title: Would Be Rate Pct
        would_be_blocks:
          type: integer
          title: Would Be Blocks
        would_be_redacts:
          type: integer
          title: Would Be Redacts
        would_be_appends:
          type: integer
          title: Would Be Appends
        would_be_handoffs:
          type: integer
          title: Would Be Handoffs
        would_be_approvals:
          type: integer
          title: Would Be Approvals
        errors:
          type: integer
          title: Errors
        avg_latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Latency Ms
        p95_latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: P95 Latency Ms
        response_p95_latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: Response P95 Latency Ms
      type: object
      required:
        - policy_id
        - policy_name
        - strictness
        - evaluations
        - would_be_violations
        - would_be_rate_pct
        - would_be_blocks
        - would_be_redacts
        - would_be_appends
        - would_be_handoffs
        - would_be_approvals
        - errors
      title: MonitorRolloutRow
    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

````