Monitoring Tests are compliance tests used to determine whether a person, system, process, or organization is adhering to standards set by compliance controls within a framework. The help docs have more information.
Find Monitoring Tests matching the provided filters
🔒 Requires Monitoring: List Monitors permission.
Successful
Malformed data and/or validation errors
Invalid Authorization
You are not allowed to perform this action
Not Found
You must accept the Drata terms and conditions to use the API
Internal server error
{- "data": [
- {
- "id": 1,
- "name": "A Version Control System is being Used",
- "description": "Inspected Drata's version control system...",
- "checkResultStatus": "PASSED",
- "checkStatus": "ENABLED",
- "testSource": "DRATA",
- "testId": 1,
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z",
- "lastPassedAt": "2025-07-01T16:45:55.246Z",
- "failedSince": "2025-07-01T16:45:55.246Z",
- "monitorInstances": [
- {
- "id": 1,
- "checkResultStatus": "PASSED",
- "collectionDescription": "Curl call to the website",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z",
- "checkTypes": [
- "INFRASTRUCTURE"
]
}
], - "disabledByUser": {
- "id": 1,
- "firstName": "Sally",
- "lastName": "Smith",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z"
}, - "controls": [
- {
- "id": 1,
- "code": "AC-1",
- "name": "Access Control",
- "description": "Drata has implemented tools to monitor Drata's databases and notify appropriate personnel of any events or incidents based on\n predetermined criteria. Incidents are escalated per policy.",
- "isReady": true,
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z"
}
]
}
], - "pagination": {
- "cursor": "string",
- "totalCount": 0
}
}Get a specific Monitoring Test by Test ID
🔒 Requires Monitoring: Get Monitor permission.
| cursor | string This parameter is used to paginate through results. No value is needed for the first request. If there are additional results, the response will contain a |
| size | number [ 1 .. 500 ] Default: 50 Number of results to return |
| sort | string (SortTypeLimitedEnum) Which field to sort by |
| sortDir | string (SortDirectionEnum) The direction to sort the data |
| expand[] | Array of strings (MonitorExpandEnum) List of subcollections and sub-objects to expand |
Successful
Malformed data and/or validation errors
Invalid Authorization
You are not allowed to perform this action
Not Found
You must accept the Drata terms and conditions to use the API
Internal server error
{- "id": 1,
- "name": "A Version Control System is being Used",
- "description": "Inspected Drata's version control system...",
- "checkResultStatus": "PASSED",
- "checkStatus": "ENABLED",
- "testSource": "DRATA",
- "testId": 1,
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z",
- "lastPassedAt": "2025-07-01T16:45:55.246Z",
- "failedSince": "2025-07-01T16:45:55.246Z",
- "monitorInstances": [
- {
- "id": 1,
- "checkResultStatus": "PASSED",
- "collectionDescription": "Curl call to the website",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z",
- "checkTypes": [
- "INFRASTRUCTURE"
]
}
], - "disabledByUser": {
- "id": 1,
- "firstName": "Sally",
- "lastName": "Smith",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z"
}, - "controls": [
- {
- "id": 1,
- "code": "AC-1",
- "name": "Access Control",
- "description": "Drata has implemented tools to monitor Drata's databases and notify appropriate personnel of any events or incidents based on\n predetermined criteria. Incidents are escalated per policy.",
- "isReady": true,
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z"
}
]
}Update a Monitoring Test's name, description, and/or enabled state.
🔒 Requires monitors-put-monitor permission.
| name | string <= 191 characters Updated name for the Monitoring Test. |
| enabled | boolean Enable or disable the Monitoring Test. When set to false, downstream monitor instances stop running and a disable message of "Disabled via Public API" is recorded. |
| description | string or null <= 30000 characters Updated description for the Monitoring Test. Pass null to clear. |
Successful
No Content
Malformed data and/or validation errors
Invalid Authorization
You are not allowed to perform this action
Not Found
There is a conflict in the business rules with this request
You must accept the Drata terms and conditions to use the API
Internal server error
{- "name": "Cloud Data Storage Exposure",
- "enabled": true,
- "description": "string"
}{- "id": 1,
- "name": "A Version Control System is being Used",
- "description": "Inspected Drata's version control system...",
- "checkResultStatus": "PASSED",
- "checkStatus": "ENABLED",
- "testSource": "DRATA",
- "testId": 1,
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z",
- "lastPassedAt": "2025-07-01T16:45:55.246Z",
- "failedSince": "2025-07-01T16:45:55.246Z",
- "monitorInstances": [
- {
- "id": 1,
- "checkResultStatus": "PASSED",
- "collectionDescription": "Curl call to the website",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z",
- "checkTypes": [
- "INFRASTRUCTURE"
]
}
], - "disabledByUser": {
- "id": 1,
- "firstName": "Sally",
- "lastName": "Smith",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z"
}, - "controls": [
- {
- "id": 1,
- "code": "AC-1",
- "name": "Access Control",
- "description": "Drata has implemented tools to monitor Drata's databases and notify appropriate personnel of any events or incidents based on\n predetermined criteria. Incidents are escalated per policy.",
- "isReady": true,
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z"
}
]
}Find Monitor Exclusions for a specific Monitoring Test
🔒 Requires Monitoring: Get Monitor permission.
| cursor | string This parameter is used to paginate through results. No value is needed for the first request. If there are additional results, the response will contain a |
| size | number [ 1 .. 500 ] Default: 50 Number of results to return |
| sort | string (SortTypeLimitedEnum) Which field to sort by |
| sortDir | string (SortDirectionEnum) The direction to sort the data |
| includeTotalCount | boolean Default: false Include total count of all matching records in response. Only honored on first page (when cursor is null). Example: includeTotalCount=false |
| expand[] | Array of strings (MonitorExclusionExpandEnum) List of subcollections and sub-objects to expand |
| targetId | string <= 30000 characters Filter exclusions by target resource ID Example: targetId=sg-0a1b2c3d4e5f67890 |
Successful
Malformed data and/or validation errors
Invalid Authorization
You are not allowed to perform this action
Not Found
You must accept the Drata terms and conditions to use the API
Internal server error
{- "data": [
- {
- "id": 1,
- "targetId": "sg-0a1b2c3d4e5f67890",
- "targetName": "Production Security Group - Web Servers",
- "exclusionReason": "Legacy system scheduled for decommission in Q2 2024 - approved by security team",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z",
- "connection": {
- "id": "1",
- "clientType": "GOOGLE",
- "clientId": "drata.com",
- "clientAlias": "My-connection-alias-1",
- "state": "ACTIVE",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z",
- "connectedAt": "2025-07-01T16:45:55.246Z",
- "failedAt": "2025-07-01T16:45:55.246Z",
- "deletedAt": "2025-07-01T16:45:55.246Z"
}, - "exclusionDesignator": {
- "id": 1,
- "firstName": "Sally",
- "lastName": "Smith",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z"
}
}
], - "pagination": {
- "cursor": "string",
- "totalCount": 0
}
}Find Monitoring Test Failures for a specific Monitoring Test. By default, excludes failures that have been manually excluded unless includeExclusions is set to true.
🔒 Requires Monitoring: Get Monitor permission.
| cursor | string This parameter is used to paginate through results. No value is needed for the first request. If there are additional results, the response will contain a |
| size | number [ 1 .. 500 ] Default: 50 Number of results to return |
| sort | string (SortTypeLimitedEnum) Which field to sort by |
| sortDir | string (SortDirectionEnum) The direction to sort the data |
| includeTotalCount | boolean Default: false Include total count of all matching records in response. Only honored on first page (when cursor is null). Example: includeTotalCount=false |
| includeExclusions | boolean Default: false Include excluded Monitor Test failures in the results Example: includeExclusions=false |
| expand[] | Array of strings (MonitorTestFailureExpandEnum) List of subcollections and sub-objects to expand. Note: |
Successful
Malformed data and/or validation errors
Invalid Authorization
You are not allowed to perform this action
Not Found
You must accept the Drata terms and conditions to use the API
Internal server error
{- "data": [
- {
- "id": "sg-0a1b2c3d4e5f67890",
- "providerName": "Amazon Web Services",
- "resourceName": "sg-0a1b2c3d4e5f67890",
- "accountName": "Production Account",
- "clientId": "123456789012",
- "resourceArn": "arn:aws:iam::123456789012:user/TestUser",
- "organizationalUnitId": "ou-root-123456789",
- "region": "us-east-1",
- "tags": {
- "cost-center": "cc-1234",
- "system.id": "example-system-id",
- "environment": "production"
}
}
], - "pagination": {
- "cursor": "string",
- "totalCount": 0
}
}