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.
Metadata
The identity and technical contract details declared by the specification.
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 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…
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.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Rapid7 12
Other APIs Rapid7 publishes across the network.