Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Rapid7 Targets API

A Target essentially specifies an allowlisted Fully Qualified Domain Name (FQDN) which can be Scanned by InsightAppSec. A Target can be created, edited and deleted by an API consumer provided the permissions inherited by the authentication method allow it, though if a Target has been successfully Scanned at least once it can no longer be deleted. If it is no longer desirable to allow Scans to be executed against a given Target, it can be disabled. A Target is a top-level resource within the product, and as such is not affected by the deletion of any Apps.

Rapid7 Targets API is one of 50 APIs that Rapid7 publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Targets. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 5 operations across 2 paths, and defines 8 schemas. It is described by OpenAPI 3.1.0, at version v1.

Requests are made against a single base URL, https://[region].api.insight.rapid7.com/ias/v1.

5 operations 2 paths 8 schemas 1 DELETE2 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
v1
Base URL
https://us.api.insight.rapid7.com/vm/v4
Resource Areas
1

Paths & Operations 5

Across 2 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Targets 5

A Target essentially specifies an allowlisted Fully Qualified Domain Name (FQDN) which can be Scanned by InsightAppSec. A Target can be created, edited and deleted by an API consu…

GET
/targets
Get Targets
get-targets 4 params → 415200400401403404500
POST
/targets
Create Target
create-target body → 415201400401403404500409
GET
/targets/{target-id}
Get Target
get-target 1 param → 415200400401403404500
PUT
/targets/{target-id}
Update Target
update-target 1 param body → 415200400401403404500409
DELETE
/targets/{target-id}
Delete Target
delete-target 1 param → 415204400401403404500409

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are PageMetadata (6 properties), EntityModelTarget (5 properties), Link (4 properties), ValidationErrors (4 properties). Each schema is shown below with its type and property counts.

ValidationErrors
object
4 properties
Link
object
4 properties
PageMetadata
object
6 properties
EntityModelTarget
object
5 properties 1 required
ValidationError
object
3 properties
PageTarget
object
3 properties
Target
object
4 properties 1 required
Error
object
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

rapid7-targets-api-openapi.yml Raw ↑

Other APIs Rapid7 publishes across the network.

Rapid7 InsightVM Cloud API
Rapid7 Insight Platform API
Rapid7 InsightIDR API
Rapid7 Accounts API
Rapid7 Administration API
Rapid7 Apps API
Rapid7 Asset API
Rapid7 Asset Discovery API
Rapid7 Asset Group API
Rapid7 Assets API
Rapid7 Attachments API
Rapid7 Attack Templates API