> ## 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 SentinelOne alerts, optionally narrowed by a filter

> Return the SentinelOne alerts, newest detection first, one page as JSON (`data`, `pagination`): each with its `alertId`, `name`, `severity`, `status`, `mitigationStatus`, `classification`, `analystVerdict`, `detectedAt`, the Primo device it matched (`deviceId`, `deviceName`, null when no device matched), the id of the device owner (`employeeId`, resolve it with `getEmployees`) and its `consoleLink`. Narrow it with `filter`, whose keys (`status`, `severity`, `mitigationStatus`, `analystVerdict`, `deviceId`, `employeeId`) each take a clause `{ "operationType": "INCLUDE" | "EXCLUDE", "values": [...] }`, ANDed, and `search` on the name. Example, the open alerts still unmitigated: `{"filter":{"status":{"operationType":"EXCLUDE","values":["RESOLVED"]},"mitigationStatus":{"operationType":"INCLUDE","values":["UNMITIGATED"]}}}`. For the counts alone (open, unmitigated, per status, devices affected), `getSentinelOneAlertsSummary`. SentinelOne alerts are the threats SentinelOne raised 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). An alert resolved in SentinelOne stays listed with `status` `RESOLVED`. They are not the MDM compliance alerts (`getComplianceAlerts`) nor the AI tools risks (`getAiFindings`).

Key: ReadScope: Company


## OpenAPI

````yaml https://api.getprimo.com/openapi.json post /edr/sentinelone/alerts/search
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/sentinelone/alerts/search:
    post:
      tags:
        - Edr
      summary: Get the SentinelOne alerts, optionally narrowed by a filter
      description: >-
        Return the SentinelOne alerts, newest detection first, one page as JSON
        (`data`, `pagination`): each with its `alertId`, `name`, `severity`,
        `status`, `mitigationStatus`, `classification`, `analystVerdict`,
        `detectedAt`, the Primo device it matched (`deviceId`, `deviceName`,
        null when no device matched), the id of the device owner (`employeeId`,
        resolve it with `getEmployees`) and its `consoleLink`. Narrow it with
        `filter`, whose keys (`status`, `severity`, `mitigationStatus`,
        `analystVerdict`, `deviceId`, `employeeId`) each take a clause `{
        "operationType": "INCLUDE" | "EXCLUDE", "values": [...] }`, ANDed, and
        `search` on the name. Example, the open alerts still unmitigated:
        `{"filter":{"status":{"operationType":"EXCLUDE","values":["RESOLVED"]},"mitigationStatus":{"operationType":"INCLUDE","values":["UNMITIGATED"]}}}`.
        For the counts alone (open, unmitigated, per status, devices affected),
        `getSentinelOneAlertsSummary`. SentinelOne alerts are the threats
        SentinelOne raised 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). An alert resolved in SentinelOne stays
        listed with `status` `RESOLVED`. They are not the MDM compliance alerts
        (`getComplianceAlerts`) nor the AI tools risks (`getAiFindings`).
      operationId: getSentinelOneAlerts
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetSentinelOneAlertsBody'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSentinelOneAlerts_Output'
components:
  schemas:
    GetSentinelOneAlertsBody:
      type: object
      properties:
        filter:
          description: >-
            Each key a clause `{ "operationType": "INCLUDE" | "EXCLUDE",
            "values": [...] }`, ANDed
          type: object
          properties:
            status:
              type: object
              properties:
                operationType:
                  type: string
                  enum:
                    - INCLUDE
                    - EXCLUDE
                values:
                  minItems: 1
                  type: array
                  items:
                    type: string
                    enum:
                      - NEW
                      - IN_PROGRESS
                      - RESOLVED
              required:
                - operationType
                - values
            severity:
              type: object
              properties:
                operationType:
                  type: string
                  enum:
                    - INCLUDE
                    - EXCLUDE
                values:
                  minItems: 1
                  type: array
                  items:
                    type: string
                    enum:
                      - CRITICAL
                      - HIGH
                      - MEDIUM
                      - LOW
              required:
                - operationType
                - values
            mitigationStatus:
              type: object
              properties:
                operationType:
                  type: string
                  enum:
                    - INCLUDE
                    - EXCLUDE
                values:
                  minItems: 1
                  type: array
                  items:
                    type: string
                    enum:
                      - UNMITIGATED
                      - MITIGATED
                      - BENIGN
              required:
                - operationType
                - values
            analystVerdict:
              type: object
              properties:
                operationType:
                  type: string
                  enum:
                    - INCLUDE
                    - EXCLUDE
                values:
                  minItems: 1
                  type: array
                  items:
                    type: string
                    enum:
                      - UNDEFINED
                      - TRUE_POSITIVE
                      - FALSE_POSITIVE
                      - SUSPICIOUS
              required:
                - operationType
                - values
            deviceId:
              type: object
              properties:
                operationType:
                  type: string
                  enum:
                    - INCLUDE
                    - EXCLUDE
                values:
                  minItems: 1
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 100
              required:
                - operationType
                - values
            employeeId:
              description: The current owner of the alert's device
              type: object
              properties:
                operationType:
                  type: string
                  enum:
                    - INCLUDE
                    - EXCLUDE
                values:
                  minItems: 1
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 100
              required:
                - operationType
                - values
          additionalProperties: false
        search:
          description: Part of the alert name, case-insensitive
          type: string
          maxLength: 200
        page:
          default: 1
          type: integer
          minimum: 1
          maximum: 9007199254740991
        perPage:
          default: 50
          type: integer
          minimum: 1
          maximum: 100
    GetSentinelOneAlerts_Output:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              alertId:
                description: SentinelOne's id of the alert
                type: string
              name:
                anyOf:
                  - type: string
                  - type: 'null'
              severity:
                description: '`CRITICAL`, `HIGH`, `MEDIUM` or `LOW`'
                anyOf:
                  - type: string
                  - type: 'null'
              status:
                description: '`NEW`, `IN_PROGRESS` or `RESOLVED`'
                anyOf:
                  - type: string
                  - type: 'null'
              mitigationStatus:
                description: '`UNMITIGATED`, `MITIGATED` or `BENIGN`'
                anyOf:
                  - type: string
                  - type: 'null'
              classification:
                anyOf:
                  - type: string
                  - type: 'null'
              analystVerdict:
                description: '`UNDEFINED`, `TRUE_POSITIVE`, `FALSE_POSITIVE` or `SUSPICIOUS`'
                anyOf:
                  - type: string
                  - type: 'null'
              detectedAt:
                anyOf:
                  - type: string
                    format: date-time
                    pattern: >-
                      ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                  - type: 'null'
              deviceId:
                description: The Primo device the alert matched; null when none did
                anyOf:
                  - type: string
                  - type: 'null'
              deviceName:
                anyOf:
                  - type: string
                  - type: 'null'
              employeeId:
                description: The device's current owner
                anyOf:
                  - type: string
                  - type: 'null'
              consoleLink:
                description: The alert in the SentinelOne console
                anyOf:
                  - type: string
                  - type: 'null'
            required:
              - alertId
              - name
              - severity
              - status
              - mitigationStatus
              - classification
              - analystVerdict
              - detectedAt
              - deviceId
              - deviceName
              - employeeId
              - consoleLink
            additionalProperties: false
        pagination:
          type: object
          properties:
            totalElements:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            totalPages:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            page:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            perPage:
              type: integer
              minimum: 1
              maximum: 100
          required:
            - totalElements
            - totalPages
            - page
            - perPage
          additionalProperties: false
      required:
        - data
        - pagination
      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.