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 Files API

Files are used primarily to manage content that can be required to successfully scan an App. For example, many supported methods of configuring authentication in a Scan Config require a payload and similarly Scan crawl configuration can be enhanced by supplying pre-populated crawl results. In order to create a File you will need to perform 2 steps:Use the Create File API to provide the File's metadata and generate an id (can be derived from the Location header as described in 'Creating resources').Use the Upload File Content API with the id returned from the previous step in order to add content to this File.Once a File is created and both steps outlined above have been successfully completed, then the File's contentAvailable property will be true, the File will be considered 'usable', and it can be referenced in specific locations of a Scan Config using its id. A File's type can only be one of 6 options: File Type File Extensions MACRO rec SWAGGER json yaml yml SELENIUM htm html side RECORDED_TRAFFIC trec xml txt har saz WSDL wsdl CERTIFICATE pfx GRAPHQL qlsgraphqls Heuristic analysis is performed when file contents are uploaded to ensure that the content-type is appropriate for the file type specified; this is done for security reasons, and under no circumstances is the content sent to an external entity. A note on security: a File can be locked, implying that it can only be modified by its owner (the original API client that created the metadata) and by extension only the File's owner is capable of uploading its content. If a File is unlocked any other client that has access to the File's App can make modifications, including overwriting its content.

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

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

This API exposes 6 operations across 2 paths, and defines 9 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.

6 operations 2 paths 9 schemas 1 DELETE2 GET2 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 6

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

Files 6

Files are used primarily to manage content that can be required to successfully scan an App. For example, many supported methods of configuring authentication in a Scan Config req…

GET
/apps/{app-id}/files
Get Files
get-files 5 params → 415200400401403404500
POST
/apps/{app-id}/files
Create File
create-file 1 param body → 415201400401403404500409
GET
/apps/{app-id}/files/{file-id}
Get File
get-file 2 params → 415200400401403404500
PUT
/apps/{app-id}/files/{file-id}
Update File
update-file 2 params body → 415200400401403404500409
POST
/apps/{app-id}/files/{file-id}
Upload File Content
upload-file 2 params → 415201400401403404500409
DELETE
/apps/{app-id}/files/{file-id}
Delete File
delete-file 2 params → 415204400401403404500409

Schemas 9

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

ReadOnlyIdResource
object
The ID of the module
1 property
ValidationErrors
object
4 properties
File
object
9 properties 3 required
Link
object
4 properties
PageMetadata
object
6 properties
ValidationError
object
3 properties
PageFile
object
3 properties
Error
object
3 properties
EntityModelFile
object
10 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

rapid7-files-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