> ## 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.

# Get the workspace's integration health

> Returns the health of every integration module checked for the workspace: its state (Connected, Degraded or Disconnected), a stable reason code, the reason, the fix, whether someone needs to act, and when it was last checked and last changed. A module not checked yet is absent.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/workspaces/{workspaceId}/health
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:
    get:
      tags:
        - Integration health
      summary: Get the workspace's integration health
      description: >-
        Returns the health of every integration module checked for the
        workspace: its state (Connected, Degraded or Disconnected), a stable
        reason code, the reason, the fix, whether someone needs to act, and when
        it was last checked and last changed. A module not checked yet is
        absent.
      operationId: v2-get-workspace-integration-health
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ApiResponseOfWorkspaceIntegrationHealthResponse
        '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:
    ApiResponseOfWorkspaceIntegrationHealthResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/WorkspaceIntegrationHealthResponse'
          description: >-
            v2 view of a workspace's integration health: every integration
            module checked for it.
        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.
    WorkspaceIntegrationHealthResponse:
      type: object
      properties:
        workspaceId:
          type: string
          description: The workspace.
          format: uuid
        modules:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/IntegrationModuleHealthResponse'
            description: v2 view of the health of one integration module for a workspace.
          description: >-
            One entry per checked integration module, ordered by source then
            module.
      description: >-
        v2 view of a workspace's integration health: every integration module
        checked for it.
    ResponseMeta:
      type: object
      properties:
        requestId:
          type:
            - 'null'
            - string
        timestamp:
          type:
            - 'null'
            - string
    IntegrationModuleHealthResponse:
      type: object
      properties:
        source:
          type:
            - 'null'
            - string
          description: >-
            The integration, for example `Sentinel`. More values are added as
            integrations report health.
        module:
          type:
            - 'null'
            - string
          description: 'The module of the integration: `Detection` or `Response`.'
        state:
          type:
            - 'null'
            - string
          description: '`Connected`, `Degraded` or `Disconnected`.'
        reasonCode:
          type:
            - 'null'
            - string
          description: >-
            The stable reason code, for example `AzureSubscriptionSuspended`;
            null while `Connected`.
        reason:
          type:
            - 'null'
            - string
          description: What is wrong, in plain words; null while `Connected`.
        fix:
          type:
            - 'null'
            - string
          description: What fixes it; null while `Connected`.
        needsUserAction:
          type: boolean
          description: >-
            Whether someone has to act (anywhere, for example in Azure) for the
            module to recover.
        checkedAt:
          type: string
          description: When a check last produced an answer.
          format: date-time
        changedAt:
          type: string
          description: When the state or reason last changed.
          format: date-time
        lastConnectedAt:
          type:
            - 'null'
            - string
          description: When the module was last seen connected; null if it never was.
          format: date-time
        missingAccess:
          type:
            - 'null'
            - array
          items:
            type: string
          description: >-
            The scopes, roles or permissions found missing, in the integration's
            own words, for example `Alerts: Read`; empty while `Connected` or
            when the check cannot name them.
      description: v2 view of the health of one integration module for a workspace.

````

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