Drata Monitoring Tests API

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](https://help.drata.com/en/articles/4790546-monitoring) have more information.

Business capability
Compliance Management BC-130

Operations 6

GET /workspaces/{workspaceId}/monitoring-tests List Monitoring Tests #
GET /workspaces/{workspaceId}/monitoring-tests/{testId} Get Monitoring Test #
PUT /workspaces/{workspaceId}/monitoring-tests/{testId} Update Monitoring Test #
GET /workspaces/{workspaceId}/monitoring-tests/{testId}/exclusions List Monitoring Test Exclusions #
GET /workspaces/{workspaceId}/monitoring-tests/{testId}/failures List Monitoring Test Failures #
GET /workspaces/{workspaceId}/monitoring-tests/{testId}/passes List Monitoring Test Passes #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/drata-monitoring-tests-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

drata-monitoring-tests-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Drata Monitoring Tests API
  version: V2
  contact: {}
  description: 'Operations tagged Monitoring Tests across 2 of this provider''s published API definitions: drata-api-v2-openapi.json, drata-api-v2-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://public-api.drata.com/public/v2
- url: https://public-api.eu.drata.com/public/v2
- url: https://public-api.apac.drata.com/public/v2
tags:
- name: Monitoring Tests
  description: 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](https://help.drata.com/en/articles/4790546-monitoring) have more information.
paths:
  /workspaces/{workspaceId}/monitoring-tests:
    get:
      description: 'Find Monitoring Tests matching the provided filters


        🔒 Requires **Monitoring: List Monitors** permission.'
      operationId: MonitorsPublicV2Controller_listMonitors
      parameters:
      - name: workspaceId
        required: true
        in: path
        description: The Workspace ID associated to the Account
        schema:
          type: number
      - name: cursor
        required: false
        in: query
        description: 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 `pagination.cursor` value that can be used in the subsequent request to retrieve the next page of results
        schema:
          type: string
      - name: size
        required: false
        in: query
        description: Number of results to return
        schema:
          minimum: 1
          maximum: 500
          default: 50
          type: number
      - name: sort
        required: false
        in: query
        description: Which field to sort by
        schema:
          $ref: '#/components/schemas/SortTypeLimitedEnum'
      - name: sortDir
        required: false
        in: query
        description: The direction to sort the data
        schema:
          $ref: '#/components/schemas/SortDirectionEnum'
      - name: includeTotalCount
        required: false
        in: query
        description: Include total count of all matching records in response. Only honored on first page (when cursor is null).
        schema:
          default: false
          example: false
          type: boolean
      - name: expand[]
        required: false
        in: query
        description: List of subcollections and sub-objects to expand
        schema:
          type: array
          items:
            $ref: '#/components/schemas/MonitorExpandEnum'
      - name: checkResultStatus
        required: false
        in: query
        description: Filter Monitors by result status
        schema:
          $ref: '#/components/schemas/CheckResultStatusEnum'
      - name: checkStatus
        required: false
        in: query
        description: Filter Monitors by system status
        schema:
          $ref: '#/components/schemas/CheckStatusEnum'
      - name: type
        required: false
        in: query
        description: Filter Monitors by check type (associated monitor instances)
        schema:
          $ref: '#/components/schemas/CheckTypeEnum'
      - name: testSource
        required: false
        in: query
        description: Filter monitors by test source type (DRATA for built-in tests, CUSTOM for user-created tests, ACORN for compliance-as-code tests, EXTERNAL for external tests, DRATA_LIBRARY for Drata library tests)
        schema:
          $ref: '#/components/schemas/TestSourceEnum'
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitoringTestsResponsePublicV2Dto'
        '400':
          description: Malformed data and/or validation errors
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponsePublicV2Dto'
        '401':
          description: Invalid Authorization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '403':
          description: You are not allowed to perform this action
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponsePublicV2Dto'
        '412':
          description: You must accept the Drata terms and conditions to use the API
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
      security:
      - bearer: []
      summary: List Monitoring Tests
      tags:
      - Monitoring Tests
      x-drata-permissions:
      - monitors-get
      x-product-area:
      - MONITOR_TEST_DETAILS_UI
    servers:
    - url: https://public-api.drata.com/public/v2
    - url: https://public-api.eu.drata.com/public/v2
    - url: https://public-api.apac.drata.com/public/v2
  /workspaces/{workspaceId}/monitoring-tests/{testId}:
    get:
      description: 'Get a specific Monitoring Test by Test ID


        🔒 Requires **Monitoring: Get Monitor** permission.'
      operationId: MonitorsPublicV2Controller_getMonitor
      parameters:
      - name: workspaceId
        required: true
        in: path
        description: The Workspace ID associated to the Account
        schema:
          type: number
      - name: testId
        required: true
        in: path
        description: The `testId` field returned in the Monitoring Test response (workspace-scoped). Do not pass the `id` field — `id` is an internal account-wide database key and is not accepted here.
        schema:
          example: 1
          type: number
      - name: cursor
        required: false
        in: query
        description: 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 `pagination.cursor` value that can be used in the subsequent request to retrieve the next page of results
        schema:
          type: string
      - name: size
        required: false
        in: query
        description: Number of results to return
        schema:
          minimum: 1
          maximum: 500
          default: 50
          type: number
      - name: sort
        required: false
        in: query
        description: Which field to sort by
        schema:
          $ref: '#/components/schemas/SortTypeLimitedEnum'
      - name: sortDir
        required: false
        in: query
        description: The direction to sort the data
        schema:
          $ref: '#/components/schemas/SortDirectionEnum'
      - name: expand[]
        required: false
        in: query
        description: List of subcollections and sub-objects to expand
        schema:
          type: array
          items:
            $ref: '#/components/schemas/MonitorExpandEnum'
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitoringTestResponsePublicV2Dto'
        '400':
          description: Malformed data and/or validation errors
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponsePublicV2Dto'
        '401':
          description: Invalid Authorization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '403':
          description: You are not allowed to perform this action
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponsePublicV2Dto'
        '412':
          description: You must accept the Drata terms and conditions to use the API
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
      security:
      - bearer: []
      summary: Get Monitoring Test
      tags:
      - Monitoring Tests
      x-drata-permissions:
      - monitors-get-monitor
      x-product-area:
      - MONITOR_TEST_DETAILS_UI
    put:
      description: 'Update a Monitoring Test''s name, description, and/or enabled state.


        🔒 Requires **monitors-put-monitor** permission.'
      operationId: MonitorsPublicV2Controller_updateMonitor
      parameters:
      - name: workspaceId
        required: true
        in: path
        description: The Workspace ID associated to the Account
        schema:
          type: number
      - name: testId
        required: true
        in: path
        description: The `testId` field returned in the Monitoring Test response (workspace-scoped). Do not pass the `id` field — `id` is an internal account-wide database key and is not accepted here.
        schema:
          example: 1
          type: number
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MonitoringTestUpdateRequestPublicV2Dto'
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitoringTestResponsePublicV2Dto'
        '204':
          description: No Content
        '400':
          description: Malformed data and/or validation errors
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponsePublicV2Dto'
        '401':
          description: Invalid Authorization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '403':
          description: You are not allowed to perform this action
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponsePublicV2Dto'
        '409':
          description: There is a conflict in the business rules with this request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponsePublicV2Dto'
        '412':
          description: You must accept the Drata terms and conditions to use the API
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
      security:
      - bearer: []
      summary: Update Monitoring Test
      tags:
      - Monitoring Tests
      x-drata-permissions:
      - monitors-put-monitor
      x-product-area:
      - MONITOR_TEST_DETAILS_UI
    servers:
    - url: https://public-api.drata.com/public/v2
    - url: https://public-api.eu.drata.com/public/v2
    - url: https://public-api.apac.drata.com/public/v2
  /workspaces/{workspaceId}/monitoring-tests/{testId}/exclusions:
    get:
      description: 'Find Monitor Exclusions for a specific Monitoring Test


        🔒 Requires **Monitoring: Get Monitor** permission.'
      operationId: MonitorsPublicV2Controller_listMonitorExclusions
      parameters:
      - name: workspaceId
        required: true
        in: path
        description: The Workspace ID associated to the Account
        schema:
          type: number
      - name: testId
        required: true
        in: path
        description: The `testId` field returned in the Monitoring Test response (workspace-scoped). Do not pass the `id` field — `id` is an internal account-wide database key and is not accepted here.
        schema:
          example: 1
          type: number
      - name: cursor
        required: false
        in: query
        description: 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 `pagination.cursor` value that can be used in the subsequent request to retrieve the next page of results
        schema:
          type: string
      - name: size
        required: false
        in: query
        description: Number of results to return
        schema:
          minimum: 1
          maximum: 500
          default: 50
          type: number
      - name: sort
        required: false
        in: query
        description: Which field to sort by
        schema:
          $ref: '#/components/schemas/SortTypeLimitedEnum'
      - name: sortDir
        required: false
        in: query
        description: The direction to sort the data
        schema:
          $ref: '#/components/schemas/SortDirectionEnum'
      - name: includeTotalCount
        required: false
        in: query
        description: Include total count of all matching records in response. Only honored on first page (when cursor is null).
        schema:
          default: false
          example: false
          type: boolean
      - name: expand[]
        required: false
        in: query
        description: List of subcollections and sub-objects to expand
        schema:
          type: array
          items:
            $ref: '#/components/schemas/MonitorExclusionExpandEnum'
      - name: targetId
        required: false
        in: query
        description: Filter exclusions by target resource ID
        schema:
          maxLength: 30000
          example: sg-0a1b2c3d4e5f67890
          type: string
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorExclusionsResponsePublicV2Dto'
        '400':
          description: Malformed data and/or validation errors
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponsePublicV2Dto'
        '401':
          description: Invalid Authorization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '403':
          description: You are not allowed to perform this action
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponsePublicV2Dto'
        '412':
          description: You must accept the Drata terms and conditions to use the API
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
      security:
      - bearer: []
      summary: List Monitoring Test Exclusions
      tags:
      - Monitoring Tests
      x-drata-permissions:
      - monitors-get-monitor
      x-product-area:
      - MONITOR_TEST_DETAILS_UI
    servers:
    - url: https://public-api.drata.com/public/v2
    - url: https://public-api.eu.drata.com/public/v2
    - url: https://public-api.apac.drata.com/public/v2
  /workspaces/{workspaceId}/monitoring-tests/{testId}/failures:
    get:
      description: '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.'
      operationId: MonitorsPublicV2Controller_listMonitorTestFailures
      parameters:
      - name: workspaceId
        required: true
        in: path
        description: The Workspace ID associated to the Account
        schema:
          type: number
      - name: testId
        required: true
        in: path
        description: The `testId` field returned in the Monitoring Test response (workspace-scoped). Do not pass the `id` field — `id` is an internal account-wide database key and is not accepted here.
        schema:
          example: 1
          type: number
      - name: cursor
        required: false
        in: query
        description: 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 `pagination.cursor` value that can be used in the subsequent request to retrieve the next page of results
        schema:
          type: string
      - name: size
        required: false
        in: query
        description: Number of results to return
        schema:
          minimum: 1
          maximum: 500
          default: 50
          type: number
      - name: sort
        required: false
        in: query
        description: Which field to sort by
        schema:
          $ref: '#/components/schemas/SortTypeLimitedEnum'
      - name: sortDir
        required: false
        in: query
        description: The direction to sort the data
        schema:
          $ref: '#/components/schemas/SortDirectionEnum'
      - name: includeTotalCount
        required: false
        in: query
        description: Include total count of all matching records in response. Only honored on first page (when cursor is null).
        schema:
          default: false
          example: false
          type: boolean
      - name: includeExclusions
        required: false
        in: query
        description: Include excluded Monitor Test failures in the results
        schema:
          default: false
          example: false
          type: boolean
      - name: expand[]
        required: false
        in: query
        description: List of subcollections and sub-objects to expand. Pass `tags` to include cloud-provider resource tags on each item when available. Tag resolution may add latency to the response. Tags are not present for every resource.
        schema:
          type: array
          items:
            $ref: '#/components/schemas/MonitorTestFailureExpandEnum'
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorTestFailuresResponsePublicV2Dto'
        '400':
          description: Malformed data and/or validation errors
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponsePublicV2Dto'
        '401':
          description: Invalid Authorization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '403':
          description: You are not allowed to perform this action
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponsePublicV2Dto'
        '412':
          description: You must accept the Drata terms and conditions to use the API
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
      security:
      - bearer: []
      summary: List Monitoring Test Failures
      tags:
      - Monitoring Tests
      x-drata-permissions:
      - monitors-get-monitor
      x-product-area:
      - MONITOR_TEST_DETAILS_UI
    servers:
    - url: https://public-api.drata.com/public/v2
    - url: https://public-api.eu.drata.com/public/v2
    - url: https://public-api.apac.drata.com/public/v2
  /workspaces/{workspaceId}/monitoring-tests/{testId}/passes:
    get:
      description: 'Find resources that are currently passing a specific Monitoring Test. Returns an empty page for tests that do not emit passing-resource data (see the Drata documentation for the per-test passing-data status).


        🔒 Requires **Monitoring: Get Monitor** permission.'
      operationId: MonitorsPublicV2Controller_listMonitorTestPasses
      parameters:
      - name: workspaceId
        required: true
        in: path
        description: The Workspace ID associated to the Account
        schema:
          type: number
      - name: testId
        required: true
        in: path
        description: The `testId` field returned in the Monitoring Test response (workspace-scoped). Do not pass the `id` field — `id` is an internal account-wide database key and is not accepted here.
        schema:
          example: 1
          type: number
      - name: cursor
        required: false
        in: query
        description: 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 `pagination.cursor` value that can be used in the subsequent request to retrieve the next page of results
        schema:
          type: string
      - name: size
        required: false
        in: query
        description: Number of results to return
        schema:
          minimum: 1
          maximum: 500
          default: 50
          type: number
      - name: sort
        required: false
        in: query
        description: Which field to sort by
        schema:
          $ref: '#/components/schemas/SortTypeLimitedEnum'
      - name: sortDir
        required: false
        in: query
        description: The direction to sort the data
        schema:
          $ref: '#/components/schemas/SortDirectionEnum'
      - name: includeTotalCount
        required: false
        in: query
        description: Include total count of all matching records in response. Only honored on first page (when cursor is null).
        schema:
          default: false
          example: false
          type: boolean
      - name: expand[]
        required: false
        in: query
        description: List of subcollections and sub-objects to expand. Pass `tags` to include cloud-provider resource tags on each item when available. Tag resolution may add latency to the response. Tags are not present for every resource.
        schema:
          type: array
          items:
            $ref: '#/components/schemas/MonitorTestPassExpandEnum'
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorTestPassesResponsePublicV2Dto'
        '400':
          description: Malformed data and/or validation errors
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponsePublicV2Dto'
        '401':
          description: Invalid Authorization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '403':
          description: You are not allowed to perform this action
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponsePublicV2Dto'
        '412':
          description: You must accept the Drata terms and conditions to use the API
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponseDto'
      security:
      - bearer: []
      summary: List Monitoring Test Passes
      tags:
      - Monitoring Tests
      x-drata-permissions:
      - monitors-get-monitor
      x-product-area:
      - MONITOR_TEST_DETAILS_UI
    servers:
    - url: https://public-api.drata.com/public/v2
    - url: https://public-api.eu.drata.com/public/v2
    - url: https://public-api.apac.drata.com/public/v2
components:
  schemas:
    MonitoringTestsResponsePublicV2Dto:
      type: object
      properties:
        data:
          description: Data set based on the pagination limits
          type: array
          items:
            $ref: '#/components/schemas/MonitoringTestResponsePublicV2Dto'
        pagination:
          $ref: '#/components/schemas/PaginationTotalCountResponsePublicV2Dto'
      required:
      - data
      - pagination
    ControlCompactResponsePublicV2Dto:
      type: object
      properties:
        id:
          type: number
          example: 1
          description: Control ID
        code:
          type: string
          example: AC-1
          description: Control code
        name:
          type: string
          example: Access Control
          description: Control name
        description:
          type:
          - string
          - 'null'
          example: "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."
          description: Control description
        isReady:
          type: boolean
          example: true
          description: Indicates if the control is ready for compliance assessment. A control is considered ready when it has at least one valid component (tests, evidence, policies, or reports) and no failing components (no failing tests, invalid evidence, unapproved policies, etc.). This is calculated in real-time based on the current state of all control components.
        createdAt:
          type: string
          format: date-time
          example: '2025-07-01T16:45:55.246Z'
          description: Date the Control was created
        updatedAt:
          type: string
          format: date-time
          example: '2025-07-01T16:45:55.246Z'
          description: Date the Control was last updated
      required:
      - id
      - code
      - name
      - description
      - createdAt
      - updatedAt
    ExceptionResponseDto:
      type: object
      properties:
        statusCode:
          type: number
        message:
          type: string
        code:
          type: number
        debugInfo:
          type: object
          properties:
            name:
              type: string
            message:
              type: string
            stack:
              type: string
          required:
          - name
          - message
      required:
      - statusCode
      - message
      - code
    MonitorExclusionsResponsePublicV2Dto:
      type: object
      properties:
        data:
          description: Data set based on the pagination limits
          type: array
          items:
            $ref: '#/components/schemas/MonitorExclusionResponsePublicV2Dto'
        pagination:
          $ref: '#/components/schemas/PaginationTotalCountResponsePublicV2Dto'
      required:
      - data
      - pagination
    MonitoringTestResponsePublicV2Dto:
      type: object
      properties:
        id:
          type: number
          example: 1
          description: Internal database identifier of this Monitoring Test record. Unique across the account (spanning all workspaces). Not accepted by any public API endpoint — use the `testId` field below when referencing this test (e.g., as the `:testId` path parameter on single-test endpoints).
        name:
          type: string
          example: A Version Control System is being Used
          description: Name of the Monitoring Test
        description:
          type: string
          example: Inspected Drata's version control system...
          description: The description of the Monitoring Test
        checkResultStatus:
          example: PASSED
          description: The compliance status of this Monitoring Test
          allOf:
          - $ref: '#/components/schemas/CheckResultStatusEnum'
        checkStatus:
          example: ENABLED
          description: The system status of this Monitoring Test
          allOf:
          - $ref: '#/components/schemas/CheckStatusEnum'
        testSource:
          example: DRATA
          description: The source of this Monitoring Test
          allOf:
          - $ref: '#/components/schemas/TestSourceEnum'
        testId:
          type: number
          example: 1
          description: Stable identifier of this Monitoring Test. Unique within a workspace — the same `testId` may appear in multiple workspaces (one record per workspace), which is why the response also includes `id` (the account-wide internal database key). Use `testId` as the `:testId` path parameter on single-test endpoints (e.g., `GET /workspaces/{workspaceId}/monitoring-tests/{testId}`). This is the identifier clients should persist when referencing a Monitoring Test.
        createdAt:
          type: string
          format: date-time
          example: '2025-07-01T16:45:55.246Z'
          description: Monitoring Test creation timestamp
        updatedAt:
          type: string
          format: date-time
          example: '2025-07-01T16:45:55.246Z'
          description: Monitoring Test updated timestamp
        lastPassedAt:
          type:
          - string
          - 'null'
          format: date-time
          example: '2025-07-01T16:45:55.246Z'
          description: Timestamp of the most recent successful run, or null if this test has never passed
        failedSince:
          type:
          - string
          - 'null'
          format: date-time
          example: '2025-07-01T16:45:55.246Z'
          description: Timestamp when the current failing streak began. Null when the test is not currently failing
        monitorInstances:
          description: Monitor associated to this monitor test
          type: array
          items:
            $ref: '#/components/schemas/MonitorCompactResponsePublicV2Dto'
        disabledByUser:
          description: The user who has disabled this Monitoring Test
          allOf:
          - $ref: '#/components/schemas/UserCompactResponsePublicV2Dto'
        controls:
          description: Controls associated to this Monitoring Test
          type: array
          items:
            $ref: '#/components/schemas/ControlCompactResponsePublicV2Dto'
      required:
      - id
      - name
      - description
      - checkResultStatus
      - checkStatus
      - testSource
      - testId
      - createdAt
      - updatedAt
      - lastPassedAt
      - failedSince
    ConnectionCompactResponsePublicV2Dto:
      type: object
      properties:
        id:
          type: number
          example: '1'
          description: The Connection ID
        clientType:
          type: string
          enum:
          - GOOGLE
          - OKTA
       

# --- truncated at 32 KB (58 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/drata/refs/heads/main/openapi/drata-monitoring-tests-api-openapi.yml