> ## 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 Drift



## OpenAPI

````yaml /api-reference/openapi.json get /api/runtime-security/drift
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:
    get:
      tags:
        - runtime-security
      summary: Get Drift
      operationId: get_drift_api_runtime_security_drift_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/DriftResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DriftResponse:
      properties:
        baseline:
          $ref: '#/components/schemas/DriftWindowSummary'
        recent:
          $ref: '#/components/schemas/DriftWindowSummary'
        dimensions:
          items:
            $ref: '#/components/schemas/DriftDimension'
          type: array
          title: Dimensions
        daily_volume:
          items:
            $ref: '#/components/schemas/DriftDailyVolume'
          type: array
          title: Daily Volume
        topic_drift_available:
          type: boolean
          title: Topic Drift Available
          default: false
      type: object
      required:
        - baseline
        - recent
        - dimensions
        - daily_volume
      title: DriftResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DriftWindowSummary:
      properties:
        start:
          type: string
          title: Start
        end:
          type: string
          title: End
        total_events:
          type: integer
          title: Total Events
      type: object
      required:
        - start
        - end
        - total_events
      title: DriftWindowSummary
    DriftDimension:
      properties:
        name:
          type: string
          title: Name
        label:
          type: string
          title: Label
        psi:
          type: number
          title: Psi
        severity:
          type: string
          title: Severity
        baseline_distribution:
          additionalProperties:
            type: number
          type: object
          title: Baseline Distribution
        recent_distribution:
          additionalProperties:
            type: number
          type: object
          title: Recent Distribution
        top_shifts:
          items:
            $ref: '#/components/schemas/DriftCategoryShift'
          type: array
          title: Top Shifts
        psi_series:
          items:
            $ref: '#/components/schemas/DriftDailyPSI'
          type: array
          title: Psi Series
          default: []
      type: object
      required:
        - name
        - label
        - psi
        - severity
        - baseline_distribution
        - recent_distribution
        - top_shifts
      title: DriftDimension
    DriftDailyVolume:
      properties:
        date:
          type: string
          title: Date
        count:
          type: integer
          title: Count
      type: object
      required:
        - date
        - count
      title: DriftDailyVolume
    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
    DriftCategoryShift:
      properties:
        category:
          type: string
          title: Category
        baseline_share:
          type: number
          title: Baseline Share
        recent_share:
          type: number
          title: Recent Share
        delta:
          type: number
          title: Delta
        baseline_count:
          type: integer
          title: Baseline Count
        recent_count:
          type: integer
          title: Recent Count
      type: object
      required:
        - category
        - baseline_share
        - recent_share
        - delta
        - baseline_count
        - recent_count
      title: DriftCategoryShift
    DriftDailyPSI:
      properties:
        date:
          type: string
          title: Date
        psi:
          type: number
          title: Psi
      type: object
      required:
        - date
        - psi
      title: DriftDailyPSI

````