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

# Get the current counts of the ThreatDown active detections

> Return the current counts of the ThreatDown active detections as JSON: `total`, `byCategory` (one `{ category, count }` per ThreatDown category), `affectedDevices` (Primo devices with an active detection) and `unmatched` (detections no Primo device matched, counted in `total` but not in `affectedDevices`). The detections themselves are `getThreatDownActiveDetections`, whose `filter` selects the same detections as each count. ThreatDown active detections are the threats ThreatDown still finds on the company's devices, as Primo stored them at its last sync (every 5 minutes, once the company turned the alert sync on; a company without it has none). A detection leaves the list once ThreatDown no longer reports it. They are not the SentinelOne alerts (`getSentinelOneAlerts`), the MDM compliance alerts (`getComplianceAlerts`) nor the AI tools risks (`getAiFindings`).

Key: ReadScope: Company


## OpenAPI

````yaml https://api.getprimo.com/openapi.json get /edr/threatdown/active-detections/summary
openapi: 3.1.1
info:
  title: Public API - BETA
  description: Read docs on https://docs.getprimo.com/
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getprimo.com
security:
  - apikey: []
tags: []
paths:
  /edr/threatdown/active-detections/summary:
    get:
      tags:
        - Edr
      summary: Get the current counts of the ThreatDown active detections
      description: >-
        Return the current counts of the ThreatDown active detections as JSON:
        `total`, `byCategory` (one `{ category, count }` per ThreatDown
        category), `affectedDevices` (Primo devices with an active detection)
        and `unmatched` (detections no Primo device matched, counted in `total`
        but not in `affectedDevices`). The detections themselves are
        `getThreatDownActiveDetections`, whose `filter` selects the same
        detections as each count. ThreatDown active detections are the threats
        ThreatDown still finds on the company's devices, as Primo stored them at
        its last sync (every 5 minutes, once the company turned the alert sync
        on; a company without it has none). A detection leaves the list once
        ThreatDown no longer reports it. They are not the SentinelOne alerts
        (`getSentinelOneAlerts`), the MDM compliance alerts
        (`getComplianceAlerts`) nor the AI tools risks (`getAiFindings`).
      operationId: getThreatDownActiveDetectionsSummary
      parameters: []
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetThreatDownActiveDetectionsSummary_Output
components:
  schemas:
    GetThreatDownActiveDetectionsSummary_Output:
      type: object
      properties:
        total:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        byCategory:
          type: array
          items:
            type: object
            properties:
              category:
                anyOf:
                  - type: string
                  - type: 'null'
              count:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
            required:
              - category
              - count
            additionalProperties: false
        affectedDevices:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        unmatched:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
      required:
        - total
        - byCategory
        - affectedDevices
        - unmatched
      additionalProperties: false
  securitySchemes:
    apikey:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Use your Primo API key in the Authorization header as `Bearer
        <API_KEY>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.