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

# Get Predictions Summary

> V2 Wave 2B (API-IMPLEMENTATION-SPEC.md §8.2): "aggregates over fitted
hazards (counts by band, top T̂_R, crest count)." `window` is accepted for
contract stability but every pattern's LATEST fit is used — a hazard fit
isn't a windowed count, it's the current best estimate.



## OpenAPI

````yaml /openapi.json get /v1/predictions/summary
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/predictions/summary:
    get:
      tags:
        - predictions
      summary: Get Predictions Summary
      description: >-
        V2 Wave 2B (API-IMPLEMENTATION-SPEC.md §8.2): "aggregates over fitted

        hazards (counts by band, top T̂_R, crest count)." `window` is accepted
        for

        contract stability but every pattern's LATEST fit is used — a hazard fit

        isn't a windowed count, it's the current best estimate.
      operationId: get_predictions_summary_v1_predictions_summary_get
      parameters:
        - in: query
          name: window
          required: false
          schema:
            default: 30d
            title: Window
            type: string
        - in: query
          name: high_probability_threshold
          required: false
          schema:
            default: 0.8
            maximum: 1
            minimum: 0
            title: High Probability Threshold
            type: number
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PredictionsSummaryResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    PredictionsSummaryResponse:
      description: >-
        Full predictions summary response.

        Includes both the predictions-page field names (total_predictions,
        high_probability_count)

        and the dashboard-spec canonical field names (total, high_probability,
        above_alert_threshold,

        avg_probability, latest_generated_at, by_pattern) as optional fields for
        backward compat.
      properties:
        above_alert_threshold:
          default: 0
          title: Above Alert Threshold
          type: integer
        avg_probability:
          default: 0
          title: Avg Probability
          type: number
        by_impact:
          additionalProperties:
            type: integer
          title: By Impact
          type: object
        by_pattern:
          default: []
          items:
            additionalProperties: true
            type: object
          title: By Pattern
          type: array
        crest_count:
          default: 0
          title: Crest Count
          type: integer
        generated_at:
          title: Generated At
          type: string
        high_probability:
          default: 0
          title: High Probability
          type: integer
        high_probability_count:
          title: High Probability Count
          type: integer
        high_probability_threshold:
          default: 0.8
          title: High Probability Threshold
          type: number
        latest_generated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Latest Generated At
        total:
          default: 0
          title: Total
          type: integer
        total_predictions:
          title: Total Predictions
          type: integer
        window:
          title: Window
          type: string
      required:
        - window
        - total_predictions
        - high_probability_count
        - by_impact
        - generated_at
      title: PredictionsSummaryResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````