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

# Rapid7 InsightIDR API

> Work InsightIDR investigations and alerts, threat indicators, log search and detection rules in your clients' Rapid7 organizations

The common use is an investigation ticket: InsightIDR raises an investigation, your PSA opens a ticket for it, and the agent reads the investigation's alerts and evidence, searches the logs behind it, writes its analysis on the ticket, and closes the investigation with its disposition when the work is done.

> [!NOTE]
>
> Automatically enabled when you configure Rapid7 InsightIDR permissions in your agent workflow. InsightIDR is connected per client, so the agent calls the organization of the ticket's company with that organization's key.

## What it does

* Find an investigation by its id, link or title and time, or an alert by a search, and read its alerts, evidence, actors and comments
* Comment, assign, and set an investigation's status, priority and disposition; update an alert
* Close a batch of investigations of one source in a time window, only with a maximum count the agent sets from a search first
* Create a community threat, and add or replace its IP addresses, domains, URLs and process hashes
* Run LEQL log searches, saved queries and LEQL variables, and search the audit log
* Read and change detection rules, rule exceptions, notifications and their targets; read assets, users, accounts and health

The agent never sends `multi-customer` or `orgId`, which reach other organizations than the client's.

## Permission groups

| Group | Access levels | Covers |
| - | - | - |
| Investigations & Alerts | Disabled, Read Only, Read / Write | Investigations and alerts with their evidence and comments; create, comment, assign, set status, priority and disposition, close one or a batch |
| Community Threats | Disabled, Read Only, Read / Write | Create a threat, add or replace its indicators, delete it |
| Log Search | Disabled, Read Only, Read / Write | LEQL searches, saved queries, LEQL variables, export jobs and usage |
| Audit Logs | Disabled, Read Only | The audit log of user actions |
| Logs & Archiving | Disabled, Read Only, Read / Write | Logs and log sets, pre-computed queries, labels and daily S3 archiving |
| Detection Rules | Disabled, Read Only, Read / Write | Detection rules, basic detection rules and assessment reports |
| Rule Exceptions | Disabled, Read Only, Read / Write | Exceptions to detection rules and their previews |
| Notifications | Disabled, Read Only, Read / Write | Alert notifications and their targets; a target's key or webhook address is hidden |
| Assets, Users & Accounts | Disabled, Read Only | Assets, local accounts, users and accounts |
| Health & Collectors | Disabled, Read Only, Read / Write | Health metrics; add a collector |

Neo refuses three kinds of call: uploading or downloading an investigation attachment and downloading raw log data, which are files; and deleting a log or a log set, which destroys its stored log data for good. Some writes always ask a technician, under every profile. Four send the client's data to a new place: creating a notification target, replacing one (Neo also puts its hidden key or webhook address back), a detection rule or notification that defines a target inside it (an email address or webhook rather than an existing target's id), and setting up or changing daily S3 archiving, which sends every new log entry to the bucket it names. Registering a collector also asks, because it enrolls a machine into the client's SIEM. Three act on whatever their filter matches, so the technician sees the criteria first: a bulk close, an update of several alerts, and adding or removing a workflow on the rules a filter matches.

## Access profiles

| Profile | What runs on its own | What asks a technician |
| - | - | - |
| **Read Only** | Every read | No write is allowed |
| **Helpdesk** | Every read, and investigation and alert work but a bulk close or a several-alert update | Threat indicators, saved queries, a bulk close and a several-alert update; every other write is not allowed |
| **IT Admin** | Every read, investigations, threat indicators and log search | Detection rules, rule exceptions, notifications, logs and archiving, registering a collector, a bulk close and a several-alert update |
| **Full Automation** | Every supported call but those below | Notification targets, also inside a rule or notification, and S3 archiving setup; registering a collector; bulk close, several-alert updates and rule workflow changes |


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