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

# Get overview metrics with optional filters

> Returns recent ingestion activity, raw pool status, project summaries, dataset snapshots, and model performance metrics.



## OpenAPI

````yaml /api-spec.json get /data/overview
openapi: 3.0.0
info:
  contact:
    name: Acusight API Support
  description: >-
    Acusight platform API - custom endpoints + Portainer proxy routes for edge
    AI deployments
  title: Acusight API
  version: 1.0.0
servers:
  - url: https://acusight.io/api
    description: AcuSight Cloud (hosted)
security: []
tags:
  - name: Devices & provisioning
    description: Register, provision, and manage edge devices and their agents.
  - name: Virtual devices
    description: Create and drive simulated devices for testing and demos.
  - name: Alerts & telemetry
    description: Model alerts, alert rules, and product telemetry.
  - name: Organization
    description: Organization-level settings.
  - name: Datasets & data
    description: Projects, batches, datasets, images, annotations, and drift.
  - name: Models & training
    description: Model registry, training jobs, exports, and inference.
  - name: Pipeline data
    description: Detection time-series and aggregated pipeline analytics.
paths:
  /data/overview:
    get:
      tags:
        - Datasets & data
      summary: Get overview metrics with optional filters
      description: >-
        Returns recent ingestion activity, raw pool status, project summaries,
        dataset snapshots, and model performance metrics.
      parameters:
        - description: Filter by model ID
          in: query
          name: model_id
          schema:
            type: string
        - description: Filter by device ID
          in: query
          name: device_id
          schema:
            type: string
        - description: Filter by multiple device IDs
          in: query
          name: device_ids
          style: form
          explode: false
          schema:
            items:
              type: string
            type: array
        - description: Filter by fleet (Portainer endpoint ID)
          in: query
          name: fleet_id
          schema:
            type: integer
        - description: Filter by multiple fleets
          in: query
          name: fleet_ids
          style: form
          explode: false
          schema:
            items:
              type: integer
            type: array
        - description: 'Time range: 1h, 24h, 7d, 30d (default: 1h)'
          in: query
          name: time_range
          schema:
            type: string
      responses:
        '200':
          description: Dashboard overview metrics
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/types.APIResponse'
                  - properties:
                      data:
                        $ref: '#/components/schemas/types.EnhancedOverviewResponse'
                    type: object
        '500':
          description: Failed to load overview
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/types.APIResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    types.APIResponse:
      properties:
        data: {}
        error:
          $ref: '#/components/schemas/types.APIError'
        meta:
          $ref: '#/components/schemas/types.APIMeta'
        success:
          type: boolean
      type: object
    types.EnhancedOverviewResponse:
      properties:
        applied_filters:
          $ref: '#/components/schemas/types.OverviewFilters'
        fleets:
          items:
            $ref: '#/components/schemas/types.FleetSummary'
          type: array
        ingestion:
          $ref: '#/components/schemas/types.OverviewIngestionSection'
        model_performance:
          items:
            $ref: '#/components/schemas/types.ModelPerformanceMetrics'
          type: array
        projects:
          items:
            $ref: '#/components/schemas/types.OverviewProjectSummary'
          type: array
        raw_pool:
          $ref: '#/components/schemas/types.OverviewRawPoolSection'
        snapshots:
          $ref: '#/components/schemas/types.OverviewSnapshotsSection'
      type: object
    types.APIError:
      properties:
        code:
          type: string
        details:
          type: string
        message:
          type: string
      type: object
    types.APIMeta:
      properties:
        count:
          type: integer
        limit:
          type: integer
        offset:
          type: integer
        total:
          type: integer
      type: object
    types.OverviewFilters:
      properties:
        device_id:
          type: string
        device_ids:
          items:
            type: string
          type: array
        fleet_id:
          description: Portainer endpoint ID
          type: integer
        fleet_ids:
          description: Multi-select
          items:
            type: integer
          type: array
        model_id:
          type: string
        model_name:
          type: string
        time_range:
          description: '"1h", "24h", "7d", "30d"'
          type: string
      type: object
    types.FleetSummary:
      properties:
        active_devices:
          description: Devices seen in time window
          type: integer
        device_count:
          description: Total devices in fleet
          type: integer
        fleet_id:
          description: Portainer endpoint ID
          type: integer
        fleet_name:
          description: From Portainer
          type: string
      type: object
    types.OverviewIngestionSection:
      properties:
        active_devices:
          type: integer
        images_last_hour:
          type: integer
      type: object
    types.ModelPerformanceMetrics:
      properties:
        avg_confidence:
          type: number
        detection_count:
          type: integer
        device_count:
          type: integer
        max_confidence:
          type: number
        min_confidence:
          type: number
        model_id:
          type: string
        model_name:
          type: string
        model_version:
          type: string
        unique_labels:
          type: integer
      type: object
    types.OverviewProjectSummary:
      properties:
        image_stats:
          $ref: '#/components/schemas/types.OverviewProjectImageStats'
        ml_summary:
          $ref: '#/components/schemas/types.OverviewProjectMLSummary'
        project_id:
          type: integer
        project_name:
          type: string
        project_type:
          type: string
        stage_counts:
          $ref: '#/components/schemas/types.OverviewProjectStageCounts'
      type: object
    types.OverviewRawPoolSection:
      properties:
        total_drift_alerts:
          type: integer
        unassigned_batches:
          items:
            $ref: '#/components/schemas/types.OverviewRawBatch'
          type: array
      type: object
    types.OverviewSnapshotsSection:
      properties:
        recent_versions:
          items:
            $ref: '#/components/schemas/types.OverviewDatasetVersion'
          type: array
      type: object
    types.OverviewProjectImageStats:
      properties:
        annotated_images:
          type: integer
        pending_images:
          type: integer
        total_images:
          type: integer
      type: object
    types.OverviewProjectMLSummary:
      properties:
        is_training:
          description: Any active training job for project
          type: boolean
        model_count:
          description: Count of trained models (excluding exports)
          type: integer
      type: object
    types.OverviewProjectStageCounts:
      properties:
        annotating:
          type: integer
        dataset:
          type: integer
        unassigned:
          type: integer
      type: object
    types.OverviewRawBatch:
      properties:
        created_at:
          type: string
        device_id:
          type: string
        device_name:
          type: string
        drift_detected:
          type: boolean
        drift_status:
          type: string
        id:
          type: integer
        image_count:
          type: integer
        last_image_received_at:
          type: string
        name:
          type: string
      type: object
    types.OverviewDatasetVersion:
      properties:
        annotation_count:
          type: integer
        created_at:
          type: string
        id:
          type: integer
        image_count:
          type: integer
        metrics:
          $ref: '#/components/schemas/types.OverviewModelMetrics'
        name:
          type: string
        project_id:
          type: integer
        project_name:
          type: string
        version:
          type: integer
      type: object
    types.OverviewModelMetrics:
      properties:
        map_50:
          type: number
        map_50_95:
          type: number
        precision:
          type: number
        recall:
          type: number
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT access token. Paste the token only; the Bearer prefix is added
        automatically.

````