> ## Documentation Index
> Fetch the complete documentation index at: https://api-documentation.kare-app.fr/llms.txt
> Use this file to discover all available pages before exploring further.

# Flat summary of anomalies by status, risk, and type



## OpenAPI

````yaml /api/rs/openapi.json get /rs/dashboard/v1/widgets/anomalies/summary
openapi: 3.0.3
info:
  title: KARE API
  description: Backend API for the KARE platform
  version: dev
servers:
  - url: http://localhost:3000
    description: Local dev
security: []
tags:
  - name: better-auth
    description: >-
      Better Auth's own endpoints (sign-in, session, MFA, password) - generated
      from the audience's live config via `generateOpenAPISchema()`, not
      hand-written.
paths:
  /rs/dashboard/v1/widgets/anomalies/summary:
    get:
      tags:
        - dashboard
      summary: Flat summary of anomalies by status, risk, and type
      operationId: getAnomaliesSummaryRSV1
      parameters:
        - schema:
            maxItems: 250
            type: array
            items:
              type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            example:
              - 550e8400-e29b-41d4-a716-446655440000
              - 6ba7b810-9dad-11d1-80b4-00c04fd430c8
          in: query
          name: whereUnitIds
          required: false
          description: Filter values as a list of ids
        - schema:
            maxItems: 250
            type: array
            items:
              type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            example:
              - 550e8400-e29b-41d4-a716-446655440000
              - 6ba7b810-9dad-11d1-80b4-00c04fd430c8
          in: query
          name: whereITIds
          required: false
          description: Filter values as a list of ids
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  byStatus:
                    type: object
                    properties:
                      unreviewed:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      pending:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      resolved:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                    required:
                      - unreviewed
                      - pending
                      - resolved
                    additionalProperties: false
                  open:
                    type: object
                    properties:
                      total:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      assignedToMe:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      byRisk:
                        type: object
                        properties:
                          critical:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          high:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          moderate:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          low:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                        required:
                          - critical
                          - high
                          - moderate
                          - low
                        additionalProperties: false
                      byType:
                        type: object
                        properties:
                          observations:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          prescriptions:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          nonConformity:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                        required:
                          - observations
                          - prescriptions
                          - nonConformity
                        additionalProperties: false
                    required:
                      - total
                      - assignedToMe
                      - byRisk
                      - byType
                    additionalProperties: false
                  openTickets:
                    type: object
                    properties:
                      total:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      byRisk:
                        type: object
                        properties:
                          critical:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          high:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          moderate:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          low:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                        required:
                          - critical
                          - high
                          - moderate
                          - low
                        additionalProperties: false
                    required:
                      - total
                      - byRisk
                    additionalProperties: false
                required:
                  - byStatus
                  - open
                  - openTickets
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false

````