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

# List datasource anomalies across workspaces



## OpenAPI

````yaml /api-reference/openapi.json post /api/v2/datasources/across-workspaces/anomalies
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: Cross-workspace incidents
  - name: Cross-workspace gamebooks
  - name: Cross-workspace data sources
  - name: Webhooks
  - name: Service accounts
  - name: Users
  - name: Azure resources
paths:
  /api/v2/datasources/across-workspaces/anomalies:
    post:
      tags:
        - Cross-workspace data sources
      summary: List datasource anomalies across workspaces
      operationId: v2-list-datasource-anomalies-across-workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListMultipleWorkspacesGeneralRequestDto'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseOfDataConnectorAnomaliesDto'
        '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:
    ListMultipleWorkspacesGeneralRequestDto:
      type: object
      properties:
        workspaceIds:
          type:
            - 'null'
            - array
          items:
            type: string
        timeFilterSelection:
          $ref: '#/components/schemas/TimeFilterSelection'
    ApiResponseOfDataConnectorAnomaliesDto:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/DataConnectorAnomaliesDto'
        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,\r\ntrace identifier, timestamp, optional target, and optional field-keyed validation\r\nerror map alongside the RFC 7807 members."
    TimeFilterSelection:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/TimeFilteringType'
        customStartUtc:
          type:
            - 'null'
            - string
          format: date-time
        customEndUtc:
          type:
            - 'null'
            - string
          format: date-time
      description: "Canonical representation of a global time filter.\r\nWhen Type == Custom, CustomStartUtc and CustomEndUtc must be provided (UTC)."
    DataConnectorAnomaliesDto:
      type: object
      properties:
        items:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/DataConnectorAnomalyItemDto'
    ResponseMeta:
      type: object
      properties:
        requestId:
          type:
            - 'null'
            - string
        timestamp:
          type:
            - 'null'
            - string
    TimeFilteringType:
      enum:
        - ThreeHours
        - SixHours
        - TwelveHours
        - TwentyFourHours
        - FourtyEightHours
        - Custom
        - null
    DataConnectorAnomalyItemDto:
      type: object
      properties:
        workspaceName:
          type:
            - 'null'
            - string
        dataConnector:
          $ref: '#/components/schemas/DataConnectorDto'
        status:
          $ref: '#/components/schemas/DataConnectorAnomalyStatus'
    DataConnectorDto:
      type: object
      properties:
        id:
          type:
            - 'null'
            - string
        name:
          type:
            - 'null'
            - string
        description:
          type:
            - 'null'
            - string
        icon:
          type:
            - 'null'
            - string
        link:
          type:
            - 'null'
            - string
        category:
          type:
            - 'null'
            - string
        provider:
          type:
            - 'null'
            - string
        isConnected:
          type: boolean
        isWaitingActivation:
          type: boolean
        directApiConnectionAvailable:
          type: boolean
          description: Indicates if the data connector has an API to connect/disconnect it
        metadata:
          type:
            - 'null'
            - string
          description: >-
            Defines a JSON / String that contains the configuration for a
            specific data source (ARN for AWS CloudTrail)
        isConfigurable:
          type: boolean
          description: >-
            Data Connector requires configuration before it can be used (Form of
            data is needed)
        plan:
          type:
            - 'null'
            - string
        isSupported:
          type: boolean
        isPrivate:
          type: boolean
        isSubscribedToDeployments:
          type: boolean
        deployedVersionDto:
          $ref: '#/components/schemas/VersionDto'
        cfCurrentVersionDto:
          $ref: '#/components/schemas/VersionDto'
        status:
          $ref: '#/components/schemas/DataSourceAnalysisStatus'
        modificationDate:
          type: string
          format: date-time
      description: Data Connector that is supported by the onboarding process and the
    DataConnectorAnomalyStatus:
      enum:
        - Active
        - Resolved
        - Investigating
        - Failed
    VersionDto:
      type: object
      properties:
        dataConnectorId:
          type:
            - 'null'
            - string
        version:
          type:
            - 'null'
            - string
        creationDate:
          type: string
          format: date-time
    DataSourceAnalysisStatus:
      enum:
        - RulesDeployed
        - UpdatesAvailable
        - PartiallyDeployed
        - NoRulesDeployed

````