Rapid7 Insight Platform Documentation

How can we help?

Insight Platform API Overview

The Insight Platform provides an API that allows you to easily integrate your security solutions with our Insight products. It consists of several independent REST APIs that share a single endpoint, authentication mechanism, and design so that you can interact with our Insight products.

Before you can interact with Insight Platform APIs, please make sure that you have generated an API Key.


An API endpoint represents the location where the resource or data you are requesting lives. Most Insight Platform APIs are accessible via a single centralized regional endpoint based on where you are located. For example, if you are in the United States, the regional endpoint is us.api.insight.rapid7.com.

To determine your endpoint, find the region code for the region that hosts your data. The easiest way to do this is by logging in to your Insight account, accessing an Insight product, and looking for the region code in the URL. The region code is the first two letters of the domain name. In the URL, us.idr.insight.rapid7.com, the region code is us. If you don’t see a region code, make sure you are accessing a specific product, such as InsightIDR, and not your Insight account page.

Use the region code to determine your API endpoint: https://<REGION_CODE>.api.insight.rapid7.com. See Region Codes for more information.


Authentication is performed by passing your API key via a single HTTP header: X-Api-Key. The key must be passed to all requests.

curl -H "X-Api-Key: API_KEY" https://us.api.insight.rapid7.com/validate

HTTP/1.1 200 Success
  "message": "Authorized"

Failed Login

Authenticating with invalid credentials will return a 401 Unauthorized message.

curl -i -H "X-Api-Key: INVALID_API_KEY" https://us.api.insight.rapid7.com/validate

HTTP/1.1 401 Unauthorized
  "message": "Unauthorized"


The Insight Platform API consists of several individual REST APIs that share a common endpoint, authentication, and design patterns. Each individual API declares its own version. Backwards compatibility is preferred over API versioning and each API will only implement a new version for breaking changes.

Users are required to specify the API version in the URL.

For example:



Requests that return multiple items can be paginated. When a response is paginated, it will contain a metadata section describing the current page and a data section containing the response data.

For example:

  "data": [
    {"id": 3, "name": "vm-101"},
    {"id": 4, "name": "vm-102"}
  "metadata": {
    "index": 1,
    "size": 2,
    "total_pages": 4,
    "total_data": 7

The metadata section may contain the following attributes:

  • Index - The current page, starting from 0. This value will always be provided.
  • Size - The number of data items in the current page. This value will always be provided.
  • Total_pages - The total number of pages that make up the complete response. This will be provided if possible.
  • Total_data - The total number of data items that make up the complete response. This will be provided if possible.
  • Sort - The attributes used to sort the complete response. This will be provided if the response is sorted.

You can control which page is returned using query parameters.

For example:


The query parameters used for pagination include:

  • Index - The page to return, starting from 0
  • Size - The number of items to return per page. NOTE: The returned size may be smaller than the requested size in order to maintain API performance. Always check the metadata.size parameter in the response.
  • Sort - The key,order pairs to sort by, separated by commas. The key is one of the supported sort keys for a given API. Order is one of ASC, for ascending, or DESC, for descending. Multiple sort keys can be provided by specifying multiple key,order pairs. Please note that this may not be supported by some APIs. You can verify this from your product's API documentation.

Rate Limiting

API requests may be rate limited. When rate limiting is in effect, the response will return headers to show your current rate limit status.

For example:

curl -i -H "X-Api-Key: API_KEY" https://us.api.insight.rapid7.com/

HTTP/1.1 200 OK
X-Rate-Limit-Limit: 1000
X-Rate-Limit-Remaining: 412
X-Rate-Limit-Reset: 1531019617

The parameters for rate limiting include:

  • X-Rate-Limit-Limit - The total number of requests you are permitted to make in the rate limit window. The rate limit window is typically 15 or 60 minutes, but varies by API.
    • X-Rate-Limit-Remaining - The number of requests remaining in the current rate limit window.
    • X-Rate-Limit-Reset - The time, in UTC epoch seconds, when the current rate limit window resets.

We may begin enforcing or change rate limiting at anytime to ensure API performance is consistent for all customers.

Updated about a year ago

Insight Platform API Overview

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.