Skip to main content
GET
/
cspm
/
compliance
List Compliance Data with Conditional Findings
curl --request GET \
  --url https://api.leen.dev/v1/cspm/compliance \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-CONNECTION-ID: <api-key>'
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "vendor_id": "<string>",
      "vendor": "<string>",
      "control": "<string>",
      "standard": "<string>",
      "requirements": [
        "<string>"
      ],
      "status": "<string>",
      "vendor_status": "<string>",
      "is_enabled": true,
      "status_changed_at": "2023-11-07T05:31:56Z",
      "vendor_data": {},
      "findings": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "vendor_id": "<string>",
          "title": "<string>",
          "description": "<string>",
          "remediation": "<string>",
          "status": "<string>",
          "vendor_status": "<string>",
          "severity": "<string>",
          "vendor_severity": "<string>",
          "start_time": "2023-11-07T05:31:56Z",
          "status_changed_at": "2023-11-07T05:31:56Z",
          "resource_id": "<string>",
          "resource_type": "<string>",
          "resource_name": "<string>",
          "resource_region": "<string>"
        }
      ]
    }
  ],
  "next_cursor": "<string>",
  "previous_cursor": "<string>"
}

Authorizations

X-CONNECTION-ID
string
header
required
X-API-KEY
string
header
required

Query Parameters

updatedSince
string<date-time> | null

Datetime filter, only return compliances updated since this datetime. Example format: 2021-01-01T00:00:00+00:00

cursor
string | null

Skip token to continue from the last item in the previous page

limit
integer
default:100

Limit size (page size)

Required range: x >= 0
includeFindings
boolean
default:false

Include findings data (only for FAIL status compliances)

complianceStatus
string | null

Filter by one or more compliance status. Valid values: PASS, FAIL, NOT_APPLICABLE

standard
string | null

Filter by one or more standard (partial match, case insensitive)

use_pool
boolean
default:true

Response

Successful Response

items
CSPMComplianceData · object[]
required

List of items returned in the response

next_cursor
string | null

Skip token to continue from the last item in the previous page

previous_cursor
string | null

Skip token to continue from the first item in the previous page