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

# Get Policy Impacts Summary

> Badge counts: ``{policy_id: {breaking, review, info}}``, archived excluded.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/policy/v2/policy-impacts/summary
openapi: 3.1.0
info:
  title: Barndoor.ai Public API
  description: Unified public API specification for Barndoor.ai platform
  version: 2.18.0
servers:
  - url: https://{host}
    description: Barndoor public API
    variables:
      host:
        default: platform.barndoor.ai
        description: >-
          The host serving your Barndoor deployment. Defaults to production;
          override it for another environment or a dedicated deployment.
security:
  - ApiKey: []
  - OAuth2:
      - openid
      - profile
      - email
tags:
  - name: dlp
    x-group: Data Control Center
  - name: identity
    x-group: Identity
  - name: llm-gateway
    x-group: LLM Gateway
  - name: notification
    x-group: Notifications
  - name: policy
    x-group: Policies
  - name: registry
    x-group: MCP Gateway
  - name: system-management
    x-group: Log Exports
paths:
  /api/policy/v2/policy-impacts/summary:
    get:
      tags:
        - policy
      summary: Get Policy Impacts Summary
      description: >-
        Badge counts: ``{policy_id: {breaking, review, info}}``, archived
        excluded.
      operationId: get_policy_impacts_summary
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties:
                  $ref: '#/components/schemas/PolicyImpactSeverityCounts'
                type: object
                title: Response Get Policy Impacts Summary
components:
  schemas:
    PolicyImpactSeverityCounts:
      properties:
        breaking:
          type: integer
          title: Breaking
          default: 0
        review:
          type: integer
          title: Review
          default: 0
        info:
          type: integer
          title: Info
          default: 0
      additionalProperties: true
      type: object
      title: PolicyImpactSeverityCounts
      description: >-
        Live-impact counts for one policy, by severity.


        Every known key is zero-filled — a caller rendering a badge should not

        have to distinguish "no breaking impacts" from "the key is missing".


        ``extra="allow"``: ``PolicyImpactService.summary_by_policy``
        deliberately

        surfaces a severity it doesn't recognize as its own key (see that

        docstring — "silently dropping an unrecognised severity would make a

        future fourth tier vanish from every badge count with no signal at
        all").

        A strict three-field model would undo that the moment the dict crosses

        this schema, since Pydantic v2's default ``extra="ignore"`` drops

        unmodeled kwargs silently. Allowing extras keeps the passthrough honest

        without this schema having to know the full severity vocabulary.
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      description: >-
        A Barndoor API key, sent as `Authorization: Bearer <key>`. Keys are
        prefixed `bdai_` and are opaque — do not attempt to decode one.
        Interchangeable with an OAuth 2.0 access token.
    OAuth2:
      type: oauth2
      x-issuer: https://auth.barndoor.ai/realms/barndoor
      description: >-
        An OAuth 2.0 access token from Barndoor's identity provider, sent as
        `Authorization: Bearer <token>`. Public clients must use PKCE.
        Interchangeable with an API key.
      flows:
        authorizationCode:
          authorizationUrl: >-
            https://auth.barndoor.ai/realms/barndoor/protocol/openid-connect/auth
          tokenUrl: >-
            https://auth.barndoor.ai/realms/barndoor/protocol/openid-connect/token
          scopes:
            openid: Issue an OIDC ID token identifying the caller.
            profile: Read the caller's basic profile claims.
            email: Read the caller's email address.
            offline_access: Issue a refresh token. Optional — no operation requires it.
        clientCredentials:
          tokenUrl: >-
            https://auth.barndoor.ai/realms/barndoor/protocol/openid-connect/token
          scopes:
            openid: Issue an OIDC ID token identifying the caller.
            profile: Read the caller's basic profile claims.
            email: Read the caller's email address.
            offline_access: Issue a refresh token. Optional — no operation requires it.

````

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