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

# Get validation configuration

> Retrieve the current data validation configuration for a specific workflow, including enabled rules and alerting settings



## OpenAPI

````yaml get /v4/data-validation/workflows/{workflowId}/validation/config
openapi: 3.0.3
info:
  title: Kadoa API
  version: 3.0.0
  contact:
    name: Support
    email: support@kadoa.com
servers:
  - url: https://api.kadoa.com
security: []
paths:
  /v4/data-validation/workflows/{workflowId}/validation/config:
    get:
      tags:
        - Data Validation
        - Core Validation
      summary: Get data validation configuration for a workflow
      description: >-
        Retrieves the current data validation configuration for a specific
        workflow
      parameters:
        - name: workflowId
          in: path
          required: true
          schema:
            type: string
          description: The workflow ID to get validation configuration for
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  workflowId:
                    type: string
                  dataValidation:
                    $ref: '#/components/schemas/DataValidationConfig'
                  error:
                    type: boolean
                required:
                  - workflowId
                  - error
        '401':
          description: Unauthorized - Authentication required or failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: boolean
                    description: Indicates an error occurred
                    example: true
                  message:
                    type: string
                    description: Error message
                    example: Authentication required
                required:
                  - error
                  - message
        '500':
          description: Internal Server Error - Unexpected system error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: boolean
                    description: Indicates an error occurred
                    example: true
                  message:
                    type: string
                    description: Error message
                    example: Internal server error
                  details:
                    type: object
                    description: Additional error details
                required:
                  - error
                  - message
      security:
        - ApiKeyAuth: []
components:
  schemas:
    DataValidationConfig:
      type: object
      properties:
        enabled:
          type: boolean
        alerting:
          type: object
          properties:
            system:
              type: object
              properties:
                enabled:
                  type: boolean
                threshold:
                  default: 1
                  type: number
              required:
                - enabled
              description: System alerting configuration
            user:
              type: object
              properties:
                enabled:
                  type: boolean
                threshold:
                  default: 1
                  type: number
              required:
                - enabled
              description: User alerting configuration
        ruleCounts:
          $ref: '#/components/schemas/ValidationRuleCounts'
      required:
        - enabled
      title: DataValidationConfig
      description: Configuration for data validation
    ValidationRuleCounts:
      type: object
      properties:
        enabled:
          type: integer
          minimum: 0
          description: Number of enabled validation rules
        disabled:
          type: integer
          minimum: 0
          description: Number of disabled validation rules
        preview:
          type: integer
          minimum: 0
          description: Number of preview validation rules
        error:
          type: boolean
          description: Whether an error occurred while fetching counts
      title: ValidationRuleCounts
      description: Counts of validation rules by status
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication

````