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

# Get Topic Drift



## OpenAPI

````yaml /api-reference/openapi.json get /api/runtime-security/drift/topics
openapi: 3.1.0
info:
  title: Blindsight API
  version: 0.1.0
  description: >-
    The full Blindsight REST surface, generated from the running application.
    Replace the server host with your own deployment.


    For the Runtime Security integration surface (scan, proxy, tool calls) see
    the Runtime Security spec, which is hand written and carries worked
    examples.
servers:
  - url: https://api.your-blindsight.com
    description: Your Blindsight deployment
security: []
paths:
  /api/runtime-security/drift/topics:
    get:
      tags:
        - runtime-security
      summary: Get Topic Drift
      operationId: get_topic_drift_api_runtime_security_drift_topics_get
      parameters:
        - name: baseline_days
          in: query
          required: false
          schema:
            type: integer
            maximum: 365
            minimum: 2
            default: 30
            title: Baseline Days
        - name: recent_days
          in: query
          required: false
          schema:
            type: integer
            maximum: 90
            minimum: 1
            default: 7
            title: Recent Days
        - name: app
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
            description: App UUID(s) to filter by
            default: []
            title: App
          description: App UUID(s) to filter by
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopicDriftResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TopicDriftResponse:
      properties:
        available:
          type: boolean
          title: Available
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
        sample_count:
          type: integer
          title: Sample Count
          default: 0
        recent_sample_count:
          type: integer
          title: Recent Sample Count
          default: 0
        pending_count:
          type: integer
          title: Pending Count
          default: 0
        cluster_count:
          type: integer
          title: Cluster Count
          default: 0
        psi:
          type: number
          title: Psi
          default: 0
        severity:
          type: string
          title: Severity
          default: stable
        run_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Run Id
        clusters:
          items:
            $ref: '#/components/schemas/TopicDriftCluster'
          type: array
          title: Clusters
        cached:
          type: boolean
          title: Cached
          default: false
      type: object
      required:
        - available
      title: TopicDriftResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TopicDriftCluster:
      properties:
        cluster_id:
          type: integer
          title: Cluster Id
        size:
          type: integer
          title: Size
        baseline_count:
          type: integer
          title: Baseline Count
        recent_count:
          type: integer
          title: Recent Count
        baseline_share:
          type: number
          title: Baseline Share
        recent_share:
          type: number
          title: Recent Share
        delta:
          type: number
          title: Delta
        labels:
          items:
            type: string
          type: array
          title: Labels
      type: object
      required:
        - cluster_id
        - size
        - baseline_count
        - recent_count
        - baseline_share
        - recent_share
        - delta
        - labels
      title: TopicDriftCluster
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````