> ## Documentation Index
> Fetch the complete documentation index at: https://docs.contraforce.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Test the workspace's integration connections now

> Runs the workspace's integration health checks now and returns what each found: Connected, Problem (with the reason code, reason and fix) or NoAnswer when the integration did not answer. A Connected result updates the workspace's health at once; a problem is reported but left to the scheduled checks. Pass source (for example CrowdStrike) and module (Detection or Response) to test only that module; without them every module of the workspace is tested.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v2/workspaces/{workspaceId}/health/test
openapi: 3.1.1
info:
  title: ContraForce API
  description: ContraForce platform API for security operations management.
  version: '2.0'
servers: []
security: []
tags:
  - name: Incidents
  - name: Gamebooks
  - name: Data sources
  - name: Service tickets
  - name: Investigation
  - name: Export
  - name: agent-tools
  - name: Cross-workspace incidents
  - name: Cross-workspace gamebooks
  - name: Cross-workspace data sources
  - name: Webhooks
  - name: Service accounts
  - name: Users
  - name: Azure resources
  - name: Reporting
paths:
  /api/v2/workspaces/{workspaceId}/health/test:
    post:
      tags:
        - Integration health
      summary: Test the workspace's integration connections now
      description: >-
        Runs the workspace's integration health checks now and returns what each
        found: Connected, Problem (with the reason code, reason and fix) or
        NoAnswer when the integration did not answer. A Connected result updates
        the workspace's health at once; a problem is reported but left to the
        scheduled checks. Pass source (for example CrowdStrike) and module
        (Detection or Response) to test only that module; without them every
        module of the workspace is tested.
      operationId: v2-test-workspace-integration-health
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: source
          in: query
          schema:
            type: string
        - name: module
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ApiResponseOfWorkspaceIntegrationHealthTestResponse
        '400':
          description: Bad request — validation or parameter binding failed.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
        '401':
          description: Unauthorized — missing or invalid Bearer token.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
        '403':
          description: Forbidden — insufficient scope or workspace access.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
        '404':
          description: Not found — workspace or resource is missing.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
        '500':
          description: Internal server error.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
components:
  schemas:
    ApiResponseOfWorkspaceIntegrationHealthTestResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/WorkspaceIntegrationHealthTestResponse'
          description: >-
            v2 view of a workspace's connection test: what testing each
            integration module found now.
        meta:
          $ref: '#/components/schemas/ResponseMeta'
      description: Standard v2 API response envelope for single-item responses.
    ApiProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
        code:
          type:
            - 'null'
            - string
        requestId:
          type:
            - 'null'
            - string
        timestamp:
          type:
            - 'null'
            - string
        target:
          type:
            - 'null'
            - string
        errors:
          type:
            - 'null'
            - object
          additionalProperties:
            type: array
            items:
              type: string
      description: >-
        API extension of ProblemDetails that surfaces the stable error code,

        trace identifier, timestamp, optional target, and optional field-keyed
        validation

        error map alongside the RFC 7807 members.
    WorkspaceIntegrationHealthTestResponse:
      type: object
      properties:
        workspaceId:
          type: string
          description: The workspace.
          format: uuid
        modules:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/IntegrationModuleHealthTestResponse'
            description: v2 view of what testing one integration module's connection found.
          description: >-
            One entry per tested integration module, ordered by source then
            module.
      description: >-
        v2 view of a workspace's connection test: what testing each integration
        module found now.
    ResponseMeta:
      type: object
      properties:
        requestId:
          type:
            - 'null'
            - string
        timestamp:
          type:
            - 'null'
            - string
    IntegrationModuleHealthTestResponse:
      type: object
      properties:
        source:
          type:
            - 'null'
            - string
          description: The integration, for example `Sentinel`.
        module:
          type:
            - 'null'
            - string
          description: 'The module of the integration: `Detection` or `Response`.'
        result:
          type:
            - 'null'
            - string
          description: >-
            `Connected`; `Problem`, named by the reason fields; or `NoAnswer`
            when the integration did not answer (throttling, an outage, a
            timeout) and the test says nothing about its health.
        reasonCode:
          type:
            - 'null'
            - string
          description: >-
            The stable reason code, the same codes as the health; set only for
            `Problem`.
        reason:
          type:
            - 'null'
            - string
          description: What is wrong, in plain words; set only for `Problem`.
        fix:
          type:
            - 'null'
            - string
          description: What fixes it; set only for `Problem`.
        needsUserAction:
          type: boolean
          description: Whether someone has to act for the module to recover.
        state:
          type:
            - 'null'
            - string
          description: >-
            `Degraded` when the problem only limits the module (it still does
            its work) or `Disconnected` when it stops it; set only for
            `Problem`.
        missingAccess:
          type:
            - 'null'
            - array
          items:
            type: string
          description: >-
            The scopes, roles or permissions the test found missing, in the
            integration's own words; empty unless `Problem` and the check can
            name them.
      description: v2 view of what testing one integration module's connection found.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.