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

# Act on a SentinelOne alert: mitigate its threat, or scan, disconnect or reconnect its endpoint

> Send one action to SentinelOne for an alert (`alertId` from `getSentinelOneAlerts`): `kill`, `quarantine` or `remediate` on its threat, only while the alert is `UNMITIGATED`; `scan`, `disconnect` or `connect` on the endpoint it was raised on, whatever its status. It acts even on an endpoint Primo does not manage. SentinelOne runs it on the agent once it is online; the alert's `mitigationStatus` changes at the next sync (5 minutes), not in the answer, which only says how many threats or endpoints SentinelOne accepted it on (`affected`). Say what you are about to do and why before calling it; `disconnect` cuts the person off the network until `connect`. 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: WriteScope: Company


## OpenAPI

````yaml https://api.getprimo.com/openapi.json post /edr/sentinelone/alerts/actions
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/actions:
    post:
      tags:
        - Edr
      summary: >-
        Act on a SentinelOne alert: mitigate its threat, or scan, disconnect or
        reconnect its endpoint
      description: >-
        Send one action to SentinelOne for an alert (`alertId` from
        `getSentinelOneAlerts`): `kill`, `quarantine` or `remediate` on its
        threat, only while the alert is `UNMITIGATED`; `scan`, `disconnect` or
        `connect` on the endpoint it was raised on, whatever its status. It acts
        even on an endpoint Primo does not manage. SentinelOne runs it on the
        agent once it is online; the alert's `mitigationStatus` changes at the
        next sync (5 minutes), not in the answer, which only says how many
        threats or endpoints SentinelOne accepted it on (`affected`). Say what
        you are about to do and why before calling it; `disconnect` cuts the
        person off the network until `connect`. 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: runSentinelOneAlertAction
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunSentinelOneAlertActionBody'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunSentinelOneAlertAction_Output'
components:
  schemas:
    RunSentinelOneAlertActionBody:
      type: object
      properties:
        alertId:
          description: The `alertId` of the alert, as `getSentinelOneAlerts` returns it
          type: string
          minLength: 1
        action:
          description: >-
            On the threat, only while the alert is `UNMITIGATED`: `kill` stops
            every process of the threat (the file stays on disk), `quarantine`
            kills it and moves the file to SentinelOne's encrypted quarantine,
            `remediate` kills, quarantines and reverts the changes the threat
            made. On the endpoint the alert was raised on, whatever its status:
            `scan` starts a full disk scan, `disconnect` cuts the endpoint off
            the network (SentinelOne keeps talking to it), `connect` reconnects
            it.
          type: string
          enum:
            - kill
            - quarantine
            - remediate
            - scan
            - disconnect
            - connect
      required:
        - alertId
        - action
    RunSentinelOneAlertAction_Output:
      type: object
      properties:
        action:
          description: >-
            On the threat, only while the alert is `UNMITIGATED`: `kill` stops
            every process of the threat (the file stays on disk), `quarantine`
            kills it and moves the file to SentinelOne's encrypted quarantine,
            `remediate` kills, quarantines and reverts the changes the threat
            made. On the endpoint the alert was raised on, whatever its status:
            `scan` starts a full disk scan, `disconnect` cuts the endpoint off
            the network (SentinelOne keeps talking to it), `connect` reconnects
            it.
          type: string
          enum:
            - kill
            - quarantine
            - remediate
            - scan
            - disconnect
            - connect
        affected:
          type: integer
          description: How many threats or endpoints SentinelOne accepted the action on
          minimum: -9007199254740991
          maximum: 9007199254740991
      required:
        - action
        - affected
      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.