# Rapid7 InsightIDR

> Work with Rapid7 InsightIDR (SIEM and XDR): list, open, triage, assign and comment on investigations, search and triage alerts, look up users, accounts and assets, search logs with LEQL, and start workflows when an investigation or alert comes in or an investigation changes status.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/rapid7-insightidr

## Actions

### Add comment

Add a comment to an investigation, such as what a workflow found or did about it.

**Inputs**

- Investigation (`investigation`, text, required): The investigation. Pick a recent open one, or give its RRN or id from an earlier step.
- Comment (`body`, text, required): The comment's text.

**Outputs**

- `comment` (object): The new comment

**Example output**

```json
{
  "comment": {
    "attachments": [],
    "body": "Confirmed with the account owner; resetting the password.",
    "created_time": "2026-11-02T12:53:26.676Z",
    "creator": {
      "name": "Example User",
      "type": "USER"
    },
    "rrn": "rrn:collaboration:us:44d88612-fea8-a8f3-6de8-2e1278abb02f:comment:1234567890",
    "target": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
    "visibility": "PUBLIC"
  }
}
```

### Assign investigation

Assign an investigation to a person by the email they sign in to the Insight Platform with.

**Inputs**

- Investigation (`investigation`, text, required): The investigation. Pick a recent open one, or give its RRN or id from an earlier step.
- Assign to (`assignee_email`, text, required): The email address the person signs in to the Insight Platform with, such as jane@acme.com.

**Outputs**

- `investigation` (object): The investigation

**Example output**

```json
{
  "investigation": {
    "assignee": {
      "email": "ellen@example.com",
      "name": "Ellen Example"
    },
    "created_time": "2026-11-02T16:56:42Z",
    "disposition": "UNDECIDED",
    "first_alert_time": "2026-11-02T16:56:42Z",
    "last_accessed": "2026-11-02T17:10:05Z",
    "latest_alert_time": "2026-11-02T16:56:42Z",
    "organization_id": "174e4f99-2ac7-4481-9301-4d24c34baf06",
    "priority": "HIGH",
    "responsibility": "CUSTOMER",
    "rrn": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
    "source": "ALERT",
    "status": "OPEN",
    "tags": [
      "Incident"
    ],
    "title": "Jane Smith enabled account Roger Johnson"
  }
}
```

### Create investigation

Open a new investigation with a title, and optionally its priority, status, disposition and assignee. Needs a user API key.

**Inputs**

- Title (`title`, text, required): The investigation's title.
- Priority (`priority`, text): How urgent it is. Unspecified when left empty. One of: `UNSPECIFIED`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`.
- Status (`status`, text): The status it starts in. Open when left empty. One of: `OPEN`, `INVESTIGATING`, `WAITING`, `CLOSED`.
- Disposition (`disposition`, text): What it turned out to be. Undecided when left empty. One of: `UNDECIDED`, `BENIGN`, `MALICIOUS`, `NOT_APPLICABLE` (Not applicable).
- Assign to (`assignee_email`, text): The email address of the person to assign it to, as they sign in to the Insight Platform.

**Outputs**

- `investigation` (object): The investigation

**Example output**

```json
{
  "investigation": {
    "assignee": {
      "email": "ellen@example.com",
      "name": "Ellen Example"
    },
    "created_time": "2026-11-02T16:56:42Z",
    "disposition": "UNDECIDED",
    "first_alert_time": "2026-11-02T16:56:42Z",
    "last_accessed": "2026-11-02T17:10:05Z",
    "latest_alert_time": "2026-11-02T16:56:42Z",
    "organization_id": "174e4f99-2ac7-4481-9301-4d24c34baf06",
    "priority": "HIGH",
    "responsibility": "CUSTOMER",
    "rrn": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
    "source": "ALERT",
    "status": "OPEN",
    "tags": [
      "Incident"
    ],
    "title": "Jane Smith enabled account Roger Johnson"
  }
}
```

### Delete comment

Delete a comment from an investigation.

**Inputs**

- Comment RRN (`comment_rrn`, text, required): The comment's RRN, from 'Add comment' or 'List comments'.

**Outputs**

- `comment_rrn` (text): The deleted comment's RRN
- `deleted` (true/false): True once it is deleted

**Example output**

```json
{
  "comment_rrn": "rrn:collaboration:us:44d88612-fea8-a8f3-6de8-2e1278abb02f:comment:1234567890",
  "deleted": true
}
```

### Get alert

Get one alert's status, priority, disposition, assignee, detection rule and the keys worth reviewing, such as the account or source IP.

**Inputs**

- Alert RRN (`alert_rrn`, text, required): The alert's RRN, such as rrn:alerts:us1:...:alert:1:..., from 'Search alerts' or an earlier step.

**Outputs**

- `alert` (object): The alert

**Example output**

```json
{
  "alert": {
    "alerted_at": "2026-11-04T13:59:06.349Z",
    "assignee": {
      "email": "ellen@example.com",
      "first_name": "Ellen",
      "id": "9de5069c5afe602b2ea0a04b66beb2c0",
      "last_name": "Example"
    },
    "created_at": "2026-11-04T13:59:06.757109Z",
    "disposition": "UNDECIDED",
    "external_id": "12345678-abcd-cdef-1234-12345abc",
    "external_source": "IDR ABA",
    "investigation_rrn": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
    "keys_of_interest": [
      {
        "key": "account",
        "values": [
          "jdoe"
        ]
      },
      {
        "key": "source_ip",
        "values": [
          "203.0.113.5"
        ]
      }
    ],
    "mitre_tcodes": [
      "T1110"
    ],
    "priority": "HIGH",
    "responsibility": "CUSTOMER",
    "rrn": "rrn:alerts:us1:12345678-abcd-cdef-1234-12345abc:alert:1:12345678-abcd-cdef-1234-12345abc",
    "rule_name": "Brute Force - Domain Account",
    "rule_rrn": "rrn:cba:::detection-rule:ABCDEFGHIJK",
    "status": "OPEN",
    "tags": [],
    "title": "Brute force against a single account",
    "type": "Brute Force - Domain Account",
    "updated_at": "2026-11-05T11:51:39.29059Z",
    "version": 8
  }
}
```

### Get investigation

Get one investigation's title, status, priority, disposition, assignee, tags and alert times.

**Inputs**

- Investigation (`investigation`, text, required): The investigation. Pick a recent open one, or give its RRN or id from an earlier step.

**Outputs**

- `investigation` (object): The investigation

**Example output**

```json
{
  "investigation": {
    "assignee": {
      "email": "ellen@example.com",
      "name": "Ellen Example"
    },
    "created_time": "2026-11-02T16:56:42Z",
    "disposition": "UNDECIDED",
    "first_alert_time": "2026-11-02T16:56:42Z",
    "last_accessed": "2026-11-02T17:10:05Z",
    "latest_alert_time": "2026-11-02T16:56:42Z",
    "organization_id": "174e4f99-2ac7-4481-9301-4d24c34baf06",
    "priority": "HIGH",
    "responsibility": "CUSTOMER",
    "rrn": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
    "source": "ALERT",
    "status": "OPEN",
    "tags": [
      "Incident"
    ],
    "title": "Jane Smith enabled account Roger Johnson"
  }
}
```

### List alert evidence

List the events behind an alert: what happened, when and the event's data.

**Inputs**

- Alert RRN (`alert_rrn`, text, required): The alert's RRN, such as rrn:alerts:us1:...:alert:1:..., from 'Search alerts' or an earlier step.
- Page size (`page_size`, number): How many to return, 1 to 100. Defaults to 20. From 1 to 100.
- Page (`page`, number): Which page to return, counting from 0. Use 'next_page' from an earlier result to read on. At least 0.

**Outputs**

- `count` (number): How many are on this page
- `evidence` (list): The pieces of evidence
- `has_more` (true/false): Whether there's another page
- `next_page` (number): The page to ask for next, when there is one
- `page` (number): This page's number, from 0
- `total` (number): How many match in all

**Example output**

```json
{
  "count": 1,
  "evidence": [
    {
      "association_reasons": [
        "TRIGGERING"
      ],
      "created_at": "2026-11-04T13:59:06Z",
      "data": "{\"account\": \"jdoe\", \"result\": \"FAILED_BAD_PASSWORD\"}",
      "event_sub_type": "",
      "event_type": "ingress_auth",
      "evented_at": "2026-11-04T13:58:59Z",
      "external_source": "IDR ABA",
      "rrn": "rrn:alerts:us1:12345678-abcd-cdef-1234-12345abc:evidence:1:abc"
    }
  ],
  "has_more": false,
  "next_page": 0,
  "page": 0,
  "total": 1
}
```

### List attachments

List the files attached to an investigation, with each one's name, type, size and malware scan result.

**Inputs**

- Investigation (`investigation`, text, required): The investigation. Pick a recent open one, or give its RRN or id from an earlier step.
- Page size (`page_size`, number): How many to return, 1 to 100. Defaults to 20. From 1 to 100.
- Page (`page`, number): Which page to return, counting from 0. Use 'next_page' from an earlier result to read on. At least 0.

**Outputs**

- `attachments` (list): The attachments
- `count` (number): How many are on this page
- `has_more` (true/false): Whether there's another page
- `next_page` (number): The page to ask for next, when there is one
- `page` (number): This page's number, from 0
- `total` (number): How many match in all

**Example output**

```json
{
  "attachments": [
    {
      "created_time": "2026-11-02T13:00:58.645Z",
      "creator": {
        "name": "Example User",
        "type": "USER"
      },
      "file_name": "screenshot.png",
      "mime_type": "image/png",
      "rrn": "rrn:collaboration:us:44d88612-fea8-a8f3-6de8-2e1278abb02f:attachment:1234567890",
      "scan_status": "CLEAN",
      "size": 12345
    }
  ],
  "count": 1,
  "has_more": false,
  "next_page": 0,
  "page": 0,
  "total": 1
}
```

### List comments

List the comments on an investigation, newest first, with who wrote each and any files attached.

**Inputs**

- Investigation (`investigation`, text, required): The investigation. Pick a recent open one, or give its RRN or id from an earlier step.
- Oldest first (`oldest_first`, true/false): List the oldest comments first.
- Page size (`page_size`, number): How many to return, 1 to 100. Defaults to 20. From 1 to 100.
- Page (`page`, number): Which page to return, counting from 0. Use 'next_page' from an earlier result to read on. At least 0.

**Outputs**

- `comments` (list): The comments
- `count` (number): How many are on this page
- `has_more` (true/false): Whether there's another page
- `next_page` (number): The page to ask for next, when there is one
- `page` (number): This page's number, from 0
- `total` (number): How many match in all

**Example output**

```json
{
  "comments": [
    {
      "attachments": [
        {
          "created_time": "2026-11-02T13:00:58.645Z",
          "creator": {
            "name": "Example User",
            "type": "USER"
          },
          "file_name": "screenshot.png",
          "mime_type": "image/png",
          "rrn": "rrn:collaboration:us:44d88612-fea8-a8f3-6de8-2e1278abb02f:attachment:1234567890",
          "scan_status": "CLEAN",
          "size": 12345
        }
      ],
      "body": "Confirmed with the account owner; resetting the password.",
      "created_time": "2026-11-02T12:53:26.676Z",
      "creator": {
        "name": "Example User",
        "type": "USER"
      },
      "rrn": "rrn:collaboration:us:44d88612-fea8-a8f3-6de8-2e1278abb02f:comment:1234567890",
      "target": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
      "visibility": "PUBLIC"
    }
  ],
  "count": 1,
  "has_more": false,
  "next_page": 0,
  "page": 0,
  "total": 1
}
```

### List investigation alerts

List the alerts in an investigation, newest first, with each one's type, detection rule and event times.

**Inputs**

- Investigation (`investigation`, text, required): The investigation. Pick a recent open one, or give its RRN or id from an earlier step.
- Page size (`page_size`, number): How many to return, 1 to 100. Defaults to 20. From 1 to 100.
- Page (`page`, number): Which page to return, counting from 0. Use 'next_page' from an earlier result to read on. At least 0.

**Outputs**

- `alerts` (list): The alerts
- `count` (number): How many are on this page
- `has_more` (true/false): Whether there's another page
- `next_page` (number): The page to ask for next, when there is one
- `page` (number): This page's number, from 0
- `total` (number): How many match in all

**Example output**

```json
{
  "alerts": [
    {
      "alert_source": "User Behavior Analytics",
      "alert_type": "Account Created",
      "alert_type_description": "A new account has been created.",
      "created_time": "2026-11-02T16:56:42Z",
      "detection_rule_name": "Attacker Technique - Accessibility Tool Launching Process",
      "detection_rule_rrn": "rrn:cba:::detection-rule:FX11KBBSCK20",
      "first_event_time": "2026-11-02T16:50:00Z",
      "id": "174e4f99-2ac7-4481-9301-4d24c34baf06",
      "latest_event_time": "2026-11-02T16:55:00Z",
      "title": "Account jdoe had INBOUND firewall traffic from 1.2.3.4"
    }
  ],
  "count": 1,
  "has_more": false,
  "next_page": 0,
  "page": 0,
  "total": 1
}
```

### List investigations

List investigations by status, priority, source, assignee, tags or when they were opened, with each one's title, status, priority, disposition and assignee.

**Inputs**

- Statuses (`statuses`, list): Only investigations in these statuses. One or more of: `OPEN`, `INVESTIGATING`, `WAITING`, `CLOSED`.
- Priorities (`priorities`, list): Only investigations of these priorities. One or more of: `UNSPECIFIED`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`.
- Sources (`sources`, list): Only investigations opened this way. One or more of: `ALERT` (From an alert), `USER` (Opened by a person), `MANUAL`, `HUNT` (From a hunt).
- Assigned to (`assignee_email`, text): Only investigations assigned to the person with this email.
- Created after (`created_after`, date and time): Only investigations opened after this time. InsightIDR looks back 28 days when it's left empty.
- Created before (`created_before`, date and time): Only investigations opened before this time.
- Tags (`tags`, list): Only investigations that have all of these tags.
- Sort by (`sort`, text): The order to list them in. Newest first unless you choose otherwise. One of: `created_time,DESC` (Newest first), `created_time,ASC` (Oldest first), `priority,DESC` (Highest priority first), `priority,ASC` (Lowest priority first), `alerts_most_recent_created_time,DESC` (Latest alert first).
- Page size (`page_size`, number): How many to return, 1 to 100. Defaults to 20. From 1 to 100.
- Page (`page`, number): Which page to return, counting from 0. Use 'next_page' from an earlier result to read on. At least 0.

**Outputs**

- `count` (number): How many are on this page
- `has_more` (true/false): Whether there's another page
- `investigations` (list): The investigations
- `next_page` (number): The page to ask for next, when there is one
- `page` (number): This page's number, from 0
- `total` (number): How many match in all

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "investigations": [
    {
      "assignee": {
        "email": "ellen@example.com",
        "name": "Ellen Example"
      },
      "created_time": "2026-11-02T16:56:42Z",
      "disposition": "UNDECIDED",
      "first_alert_time": "2026-11-02T16:56:42Z",
      "last_accessed": "2026-11-02T17:10:05Z",
      "latest_alert_time": "2026-11-02T16:56:42Z",
      "organization_id": "174e4f99-2ac7-4481-9301-4d24c34baf06",
      "priority": "HIGH",
      "responsibility": "CUSTOMER",
      "rrn": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
      "source": "ALERT",
      "status": "OPEN",
      "tags": [
        "Incident"
      ],
      "title": "Jane Smith enabled account Roger Johnson"
    }
  ],
  "next_page": 0,
  "page": 0,
  "total": 1
}
```

### List log sets

List the log sets in Log Search, such as Firewall Activity, with the logs in each.

**Inputs**: None.

**Outputs**

- `count` (number): How many
- `log_sets` (list): The log sets

**Example output**

```json
{
  "count": 1,
  "log_sets": [
    {
      "description": "",
      "id": "23cf23a8-9b9b-4b6e-b45f-5cbd19544f28",
      "logs": [
        {
          "id": "565c1b7b-c08b-4c87-a42a-ab08bad56071",
          "name": "Palo Alto Firewall"
        }
      ],
      "name": "Firewall Activity",
      "rrn": "rrn:logsearch:us:3a80d6bd-a051-43bf-a889-60cee58d8b41:logset:23cf23a8-9b9b-4b6e-b45f-5cbd19544f28"
    }
  ]
}
```

### List logs

List the logs in Log Search, with their ids and the log sets they belong to.

**Inputs**

- Log set (`log_set`, text): Only the logs in this log set.

**Outputs**

- `count` (number): How many
- `logs` (list): The logs

**Example output**

```json
{
  "count": 1,
  "logs": [
    {
      "id": "565c1b7b-c08b-4c87-a42a-ab08bad56071",
      "log_sets": [
        {
          "id": "23cf23a8-9b9b-4b6e-b45f-5cbd19544f28",
          "name": "Firewall Activity"
        }
      ],
      "name": "Palo Alto Firewall",
      "rrn": "rrn:logsearch:us:3a80d6bd-a051-43bf-a889-60cee58d8b41:log:565c1b7b-c08b-4c87-a42a-ab08bad56071",
      "source_type": "token"
    }
  ]
}
```

### Search accounts

Find accounts (such as Active Directory or cloud sign-ins) by name, domain, owner or whether they are disabled.

**Inputs**

- Name contains (`name_contains`, text): Only accounts whose name contains this, such as jdoe.
- Domain (`domain`, text): Only accounts in this domain.
- Owner's name contains (`user_name_contains`, text): Only accounts of a user whose name contains this.
- Enabled or disabled (`state`, text): Only enabled or only disabled accounts. Both when left empty. One of: `any` (Enabled or disabled), `enabled` (Enabled only), `disabled` (Disabled only).
- Page size (`page_size`, number): How many to return, 1 to 1000. Defaults to 20. From 1 to 1000.
- Page (`page`, number): Which page to return, counting from 0. Use 'next_page' from an earlier result to read on. At least 0.

**Outputs**

- `accounts` (list): The accounts
- `count` (number): How many are on this page
- `has_more` (true/false): Whether there's another page
- `next_page` (number): The page to ask for next, when there is one
- `page` (number): This page's number, from 0
- `total` (number): How many match in all

**Example output**

```json
{
  "accounts": [
    {
      "authentication_service": "ACTIVE_DIRECTORY",
      "disabled": false,
      "domain": "tor.acme.com",
      "name": "jdoe@acme.com",
      "rrn": "rrn:uba:us:6bcf6c5b-552d-49a4-a3f5-259e0514585f:account:83002c85d7c6",
      "user_name": "John Doe",
      "user_rrn": "rrn:uba:us:6bcf6c5b-552d-49a4-a3f5-259e0514585f:user:83002c85d7c6"
    }
  ],
  "count": 1,
  "has_more": false,
  "next_page": 0,
  "page": 0,
  "total": 1
}
```

### Search alerts

Find alerts raised in a time range, optionally matching a LEQL filter, with each one's status, priority, rule and key details. Needs InsightIDR's Alerts experience.

**Inputs**

- Created after (`created_after`, date and time): Only alerts from after this time. The last 7 days when left empty.
- Created before (`created_before`, date and time): Only alerts from before this time.
- LEQL filter (`leql`, text): A LEQL where clause to match alerts against, as written in InsightIDR's search bar.
- Order (`order`, text): Newest or oldest first. Newest first when left empty. One of: `newest` (Newest first), `oldest` (Oldest first).
- Page size (`page_size`, number): How many to return, 1 to 100. Defaults to 20. From 1 to 100.
- Page (`page`, number): Which page to return, counting from 0. Use 'next_page' from an earlier result to read on. At least 0.

**Outputs**

- `alerts` (list): The alerts
- `count` (number): How many are on this page
- `has_more` (true/false): Whether there's another page
- `next_page` (number): The page to ask for next, when there is one
- `page` (number): This page's number, from 0
- `total` (number): How many match in all

**Example output**

```json
{
  "alerts": [
    {
      "alerted_at": "2026-11-04T13:59:06.349Z",
      "assignee": {
        "email": "ellen@example.com",
        "first_name": "Ellen",
        "id": "9de5069c5afe602b2ea0a04b66beb2c0",
        "last_name": "Example"
      },
      "created_at": "2026-11-04T13:59:06.757109Z",
      "disposition": "UNDECIDED",
      "external_id": "12345678-abcd-cdef-1234-12345abc",
      "external_source": "IDR ABA",
      "investigation_rrn": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
      "keys_of_interest": [
        {
          "key": "account",
          "values": [
            "jdoe"
          ]
        },
        {
          "key": "source_ip",
          "values": [
            "203.0.113.5"
          ]
        }
      ],
      "mitre_tcodes": [
        "T1110"
      ],
      "priority": "HIGH",
      "responsibility": "CUSTOMER",
      "rrn": "rrn:alerts:us1:12345678-abcd-cdef-1234-12345abc:alert:1:12345678-abcd-cdef-1234-12345abc",
      "rule_name": "Brute Force - Domain Account",
      "rule_rrn": "rrn:cba:::detection-rule:ABCDEFGHIJK",
      "status": "OPEN",
      "tags": [],
      "title": "Brute force against a single account",
      "type": "Brute Force - Domain Account",
      "updated_at": "2026-11-05T11:51:39.29059Z",
      "version": 8
    }
  ],
  "count": 1,
  "has_more": false,
  "next_page": 0,
  "page": 0,
  "total": 1
}
```

### Search assets

Find the assets (servers, workstations, devices) InsightIDR tracks by name.

**Inputs**

- Name contains (`name_contains`, text): Only assets whose name contains this, such as web-.
- Page size (`page_size`, number): How many to return, 1 to 1000. Defaults to 20. From 1 to 1000.
- Page (`page`, number): Which page to return, counting from 0. Use 'next_page' from an earlier result to read on. At least 0.

**Outputs**

- `assets` (list): The assets
- `count` (number): How many are on this page
- `has_more` (true/false): Whether there's another page
- `next_page` (number): The page to ask for next, when there is one
- `page` (number): This page's number, from 0
- `total` (number): How many match in all

**Example output**

```json
{
  "assets": [
    {
      "name": "morbo.tor.acme.com",
      "rrn": "rrn:uba:us:6bcf6c5b-552d-49a4-a3f5-259e0514585f:asset:83002c85d7c6"
    }
  ],
  "count": 1,
  "has_more": false,
  "next_page": 0,
  "page": 0,
  "total": 1
}
```

### Search investigations

Find investigations by words in the title, the user or host involved, a MITRE ATT&CK technique, status, priority or source.

**Inputs**

- Title contains (`title_contains`, text): Only investigations whose title contains this text.
- Status (`status`, text): Only investigations in this status. One of: `OPEN`, `INVESTIGATING`, `WAITING`, `CLOSED`.
- Priority (`priority`, text): Only investigations of this priority. One of: `UNSPECIFIED`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`.
- Source (`source`, text): Only investigations opened this way. One of: `ALERT` (From an alert), `USER` (Opened by a person), `MANUAL`, `HUNT` (From a hunt).
- Involves user (`user_name_contains`, text): Only investigations involving a user whose name contains this.
- Involves host (`host_name_contains`, text): Only investigations involving an asset whose host name contains this.
- MITRE technique (`mitre_technique`, text): Only investigations with an alert for this MITRE ATT&CK technique, such as T1110.
- Created after (`created_after`, date and time): Only investigations opened after this time.
- Created before (`created_before`, date and time): Only investigations opened before this time.
- Sort by (`sort`, text): The order to list them in. Newest first unless you choose otherwise. One of: `created_time,DESC` (Newest first), `created_time,ASC` (Oldest first), `priority,DESC` (Highest priority first), `priority,ASC` (Lowest priority first), `alerts_most_recent_created_time,DESC` (Latest alert first).
- Page size (`page_size`, number): How many to return, 1 to 100. Defaults to 20. From 1 to 100.
- Page (`page`, number): Which page to return, counting from 0. Use 'next_page' from an earlier result to read on. At least 0.

**Outputs**

- `count` (number): How many are on this page
- `has_more` (true/false): Whether there's another page
- `investigations` (list): The investigations
- `next_page` (number): The page to ask for next, when there is one
- `page` (number): This page's number, from 0
- `total` (number): How many match in all

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "investigations": [
    {
      "assignee": {
        "email": "ellen@example.com",
        "name": "Ellen Example"
      },
      "created_time": "2026-11-02T16:56:42Z",
      "disposition": "UNDECIDED",
      "first_alert_time": "2026-11-02T16:56:42Z",
      "last_accessed": "2026-11-02T17:10:05Z",
      "latest_alert_time": "2026-11-02T16:56:42Z",
      "organization_id": "174e4f99-2ac7-4481-9301-4d24c34baf06",
      "priority": "HIGH",
      "responsibility": "CUSTOMER",
      "rrn": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
      "source": "ALERT",
      "status": "OPEN",
      "tags": [
        "Incident"
      ],
      "title": "Jane Smith enabled account Roger Johnson"
    }
  ],
  "next_page": 0,
  "page": 0,
  "total": 1
}
```

### Search logs

Run a LEQL search over logs or a log set for a time range and return the matching log entries, or the numbers a calculate or groupby query works out.

**Inputs**

- Logs (`log_ids`, list): The logs to search. Choose these, a log set, or both.
- Log set (`log_set`, text): Search every log in this log set.
- Query (`query`, text): A LEQL query, such as where(source_ip=10.0.0.5) or groupby(destination_port) calculate(count). Leave empty for every entry.
- Time range (`time_range`, text): How far back to search. The last hour when this and the times are empty. One of: `last 15 minutes`, `last 1 hour` (Last hour), `last 4 hours`, `last 24 hours`, `last 7 days`, `last 30 days`, `today`, `yesterday`.
- From (`start_time`, date and time): Search from this time instead of a time range.
- To (`end_time`, date and time): Search up to this time. Now when left empty.
- Newest first (`most_recent_first`, true/false): Return the newest entries first rather than the oldest.
- Max results (`max_results`, number): How many log entries to return, 1 to 500. Defaults to 50. From 1 to 500.

**Outputs**

- `count` (number): How many entries
- `events` (list): The matching log entries
- `has_more` (true/false): Whether more entries matched than were returned
- `logs` (list): The ids of the logs searched
- `query` (text): The LEQL query run
- `statistics` (object): For a calculate or groupby query, the numbers it worked out, as InsightIDR gives them

**Example output**

```json
{
  "count": 1,
  "events": [
    {
      "log_id": "565c1b7b-c08b-4c87-a42a-ab08bad56071",
      "message": "{\"source_ip\": \"10.0.0.5\", \"action\": \"deny\"}",
      "sequence_number": "2234733321019952220",
      "time": "2026-11-02T23:26:09.390Z",
      "timestamp": 1793748369390
    }
  ],
  "has_more": false,
  "logs": [
    "565c1b7b-c08b-4c87-a42a-ab08bad56071"
  ],
  "query": "where(source_ip=10.0.0.5)",
  "statistics": {}
}
```

### Search users

Find the people InsightIDR tracks by name or domain.

**Inputs**

- Name contains (`name_contains`, text): Only users whose name contains this.
- Domain (`domain`, text): Only users in this domain, such as corp.acme.com.
- Page size (`page_size`, number): How many to return, 1 to 1000. Defaults to 20. From 1 to 1000.
- Page (`page`, number): Which page to return, counting from 0. Use 'next_page' from an earlier result to read on. At least 0.

**Outputs**

- `count` (number): How many are on this page
- `has_more` (true/false): Whether there's another page
- `next_page` (number): The page to ask for next, when there is one
- `page` (number): This page's number, from 0
- `total` (number): How many match in all
- `users` (list): The users

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_page": 0,
  "page": 0,
  "total": 1,
  "users": [
    {
      "domain": "tor.acme.com",
      "first_name": "John",
      "last_name": "Doe",
      "name": "John Doe",
      "rrn": "rrn:uba:us:6bcf6c5b-552d-49a4-a3f5-259e0514585f:user:83002c85d7c6"
    }
  ]
}
```

### Set investigation disposition

Record what an investigation turned out to be: Benign, Malicious or Not applicable.

**Inputs**

- Investigation (`investigation`, text, required): The investigation. Pick a recent open one, or give its RRN or id from an earlier step.
- Disposition (`disposition`, text, required): What it turned out to be. One of: `BENIGN`, `MALICIOUS`, `NOT_APPLICABLE` (Not applicable).

**Outputs**

- `investigation` (object): The investigation

**Example output**

```json
{
  "investigation": {
    "assignee": {
      "email": "ellen@example.com",
      "name": "Ellen Example"
    },
    "created_time": "2026-11-02T16:56:42Z",
    "disposition": "UNDECIDED",
    "first_alert_time": "2026-11-02T16:56:42Z",
    "last_accessed": "2026-11-02T17:10:05Z",
    "latest_alert_time": "2026-11-02T16:56:42Z",
    "organization_id": "174e4f99-2ac7-4481-9301-4d24c34baf06",
    "priority": "HIGH",
    "responsibility": "CUSTOMER",
    "rrn": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
    "source": "ALERT",
    "status": "OPEN",
    "tags": [
      "Incident"
    ],
    "title": "Jane Smith enabled account Roger Johnson"
  }
}
```

### Set investigation priority

Set an investigation's priority: Unspecified, Low, Medium, High or Critical.

**Inputs**

- Investigation (`investigation`, text, required): The investigation. Pick a recent open one, or give its RRN or id from an earlier step.
- Priority (`priority`, text, required): The priority to give it. One of: `UNSPECIFIED`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`.

**Outputs**

- `investigation` (object): The investigation

**Example output**

```json
{
  "investigation": {
    "assignee": {
      "email": "ellen@example.com",
      "name": "Ellen Example"
    },
    "created_time": "2026-11-02T16:56:42Z",
    "disposition": "UNDECIDED",
    "first_alert_time": "2026-11-02T16:56:42Z",
    "last_accessed": "2026-11-02T17:10:05Z",
    "latest_alert_time": "2026-11-02T16:56:42Z",
    "organization_id": "174e4f99-2ac7-4481-9301-4d24c34baf06",
    "priority": "HIGH",
    "responsibility": "CUSTOMER",
    "rrn": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
    "source": "ALERT",
    "status": "OPEN",
    "tags": [
      "Incident"
    ],
    "title": "Jane Smith enabled account Roger Johnson"
  }
}
```

### Set investigation status

Move an investigation to Open, Investigating, Waiting or Closed, with a disposition when closing it.

**Inputs**

- Investigation (`investigation`, text, required): The investigation. Pick a recent open one, or give its RRN or id from an earlier step.
- Status (`status`, text, required): The status to move it to. One of: `OPEN`, `INVESTIGATING`, `WAITING`, `CLOSED`.
- Disposition when closed (`disposition`, text): What it turned out to be. Only when closing it. One of: `BENIGN`, `MALICIOUS`, `NOT_APPLICABLE` (Not applicable).

**Outputs**

- `investigation` (object): The investigation

**Example output**

```json
{
  "investigation": {
    "assignee": {
      "email": "ellen@example.com",
      "name": "Ellen Example"
    },
    "created_time": "2026-11-02T16:56:42Z",
    "disposition": "UNDECIDED",
    "first_alert_time": "2026-11-02T16:56:42Z",
    "last_accessed": "2026-11-02T17:10:05Z",
    "latest_alert_time": "2026-11-02T16:56:42Z",
    "organization_id": "174e4f99-2ac7-4481-9301-4d24c34baf06",
    "priority": "HIGH",
    "responsibility": "CUSTOMER",
    "rrn": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
    "source": "ALERT",
    "status": "OPEN",
    "tags": [
      "Incident"
    ],
    "title": "Jane Smith enabled account Roger Johnson"
  }
}
```

### Update alert

Triage an alert: change its status, priority, disposition or assignee, or add it to an investigation, with a reason kept in its history.

**Inputs**

- Alert RRN (`alert_rrn`, text, required): The alert's RRN, such as rrn:alerts:us1:...:alert:1:..., from 'Search alerts' or an earlier step.
- Status (`status`, text): A new status. Leave empty to keep it. One of: `OPEN`, `INVESTIGATING`, `WAITING`, `CLOSED`.
- Priority (`priority`, text): A new priority. Leave empty to keep it. One of: `INFO`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`.
- Disposition (`disposition`, text): A new disposition. Leave empty to keep it. One of: `UNDECIDED`, `BENIGN`, `SECURITY_TEST` (Security test), `MALICIOUS`, `FALSE_POSITIVE` (False positive), `UNKNOWN`, `NOT_APPLICABLE` (Not applicable).
- Assignee (`assignee_id`, text): The person to assign the alert to, from those InsightIDR offers for it. Leave empty to keep the assignee.
- Add to investigation (`investigation`, text): An investigation to add the alert to. Leave empty to keep it.
- Reason (`comment`, text): Why it changed, kept in the alert's history.

**Outputs**

- `alert` (object): The alert as changed

**Example output**

```json
{
  "alert": {
    "alerted_at": "2026-11-04T13:59:06.349Z",
    "assignee": {
      "email": "ellen@example.com",
      "first_name": "Ellen",
      "id": "9de5069c5afe602b2ea0a04b66beb2c0",
      "last_name": "Example"
    },
    "created_at": "2026-11-04T13:59:06.757109Z",
    "disposition": "UNDECIDED",
    "external_id": "12345678-abcd-cdef-1234-12345abc",
    "external_source": "IDR ABA",
    "investigation_rrn": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
    "keys_of_interest": [
      {
        "key": "account",
        "values": [
          "jdoe"
        ]
      },
      {
        "key": "source_ip",
        "values": [
          "203.0.113.5"
        ]
      }
    ],
    "mitre_tcodes": [
      "T1110"
    ],
    "priority": "HIGH",
    "responsibility": "CUSTOMER",
    "rrn": "rrn:alerts:us1:12345678-abcd-cdef-1234-12345abc:alert:1:12345678-abcd-cdef-1234-12345abc",
    "rule_name": "Brute Force - Domain Account",
    "rule_rrn": "rrn:cba:::detection-rule:ABCDEFGHIJK",
    "status": "OPEN",
    "tags": [],
    "title": "Brute force against a single account",
    "type": "Brute Force - Domain Account",
    "updated_at": "2026-11-05T11:51:39.29059Z",
    "version": 8
  }
}
```

### Update investigation

Change an investigation's title, status, priority, disposition or assignee in one step. Fields left empty stay as they are.

**Inputs**

- Investigation (`investigation`, text, required): The investigation. Pick a recent open one, or give its RRN or id from an earlier step.
- New title (`title`, text): A new title. Leave empty to keep the title.
- Status (`status`, text): A new status. Leave empty to keep it. One of: `OPEN`, `INVESTIGATING`, `WAITING`, `CLOSED`.
- Priority (`priority`, text): A new priority. Leave empty to keep it. One of: `UNSPECIFIED`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`.
- Disposition (`disposition`, text): A new disposition. Leave empty to keep it. One of: `BENIGN`, `MALICIOUS`, `NOT_APPLICABLE` (Not applicable).
- Assign to (`assignee_email`, text): The email address of the person to assign it to. Leave empty to keep the assignee.

**Outputs**

- `investigation` (object): The investigation

**Example output**

```json
{
  "investigation": {
    "assignee": {
      "email": "ellen@example.com",
      "name": "Ellen Example"
    },
    "created_time": "2026-11-02T16:56:42Z",
    "disposition": "UNDECIDED",
    "first_alert_time": "2026-11-02T16:56:42Z",
    "last_accessed": "2026-11-02T17:10:05Z",
    "latest_alert_time": "2026-11-02T16:56:42Z",
    "organization_id": "174e4f99-2ac7-4481-9301-4d24c34baf06",
    "priority": "HIGH",
    "responsibility": "CUSTOMER",
    "rrn": "rrn:investigation:us:174e4f99-2ac7-4481-9301-4d24c34baf06:investigation:6A74T2",
    "source": "ALERT",
    "status": "OPEN",
    "tags": [
      "Incident"
    ],
    "title": "Jane Smith enabled account Roger Johnson"
  }
}
```
