> ## 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 Risk Heatmap

> Risk grid: source × severity (6 sources × 5 severity bands).
group_by: source | domain | team



## OpenAPI

````yaml /openapi.json get /v1/dashboard/risk-heatmap
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/dashboard/risk-heatmap:
    get:
      tags:
        - dashboard
      summary: Get Risk Heatmap
      description: |-
        Risk grid: source × severity (6 sources × 5 severity bands).
        group_by: source | domain | team
      operationId: get_risk_heatmap_v1_dashboard_risk_heatmap_get
      parameters:
        - in: query
          name: window
          required: false
          schema:
            default: 30d
            title: Window
            type: string
        - in: query
          name: group_by
          required: false
          schema:
            default: source
            title: Group By
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RiskHeatmap'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    RiskHeatmap:
      properties:
        cells:
          items:
            $ref: '#/components/schemas/RiskCell'
          title: Cells
          type: array
        cols:
          items:
            type: string
          title: Cols
          type: array
        group_by:
          enum:
            - source
            - domain
            - team
          title: Group By
          type: string
        rows:
          items:
            type: string
          title: Rows
          type: array
        updated_at:
          title: Updated At
          type: string
        window:
          enum:
            - 7d
            - 30d
            - 90d
          title: Window
          type: string
      required:
        - window
        - group_by
        - cells
        - updated_at
      title: RiskHeatmap
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    RiskCell:
      properties:
        category:
          title: Category
          type: string
        domain:
          title: Domain
          type: string
        issue_count:
          title: Issue Count
          type: integer
        risk_score:
          title: Risk Score
          type: integer
      required:
        - domain
        - category
        - risk_score
        - issue_count
      title: RiskCell
      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

````