Using the Cloud Security API

To get started with using the Cloud Security API, you’ll need two things: an authentication method and access to the API documentation.

Command Platform API keys are not supported for Cloud Security APIs

API keys generated in the Rapid7 Command Platform (Insight Platform), including User API Keys and Organization API Keys, are not compatible with the Cloud Security API.

To authenticate requests, create an API key in Cloud Security. For instructions, see Creating an API key.

Establish an authentication method

There are currently two authentication methods when using the Cloud Security API:

  • API Key: An API Key is the preferred method of authentication. An active API key allows you to programmatically access Cloud Security by explicitly passing the key in the header of an API request. API Keys can be associated with all types of Cloud Security user accounts.
  • Auth Token: Auth tokens are generated by making a request to the /login endpoint with your username and password. The token can then be passed with subsequent requests. Tokens are available per session, so after you are logged out for whatever reason, you must generate a new token.

Single Sign On (SSO) Users

If you use SSO to log in to Cloud Security, we advise that you interact with the API using an API key, especially if you only want to create workflow automation scripts or you are planning to utilize API-only flows.

Accessing the API documentation

You can access the Cloud Security API documentation in two ways: through the Cloud Security interface or the public documentation site.