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

# Get public tenant config



## OpenAPI

````yaml /openapi.json get /config
openapi: 3.0.0
info:
  title: Korint Documentation
  description: Korint API Documentation
  version: 1.0.0
  contact: {}
servers: []
security:
  - bearerAuth: []
tags: []
paths:
  /config:
    get:
      tags:
        - config
      summary: Get public tenant config
      operationId: ConfigController_getPublicTenantConfig
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KorintPublicTenantConfigDto'
        '400':
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/InvalidTenantErrorDto'
              examples:
                INVALID_TENANT:
                  $ref: '#/components/schemas/InvalidTenantErrorDto'
          description: ''
components:
  schemas:
    KorintPublicTenantConfigDto:
      type: object
      properties:
        brokerageFirmCustomFields:
          type: array
          items:
            $ref: '#/components/schemas/BrokerageFirmCustomFieldConfigDto'
        distributionRequest:
          $ref: '#/components/schemas/DistributionRequestConfigDto'
        brokerageFirmDocuments:
          $ref: '#/components/schemas/BrokerageFirmDocumentsConfigDto'
        reports:
          type: array
          items:
            $ref: '#/components/schemas/ReportConfigDto'
        ai:
          description: Tenant-level AI configuration (classification, extraction)
          allOf:
            - $ref: '#/components/schemas/AIConfig'
        tenantName:
          type: string
      required:
        - brokerageFirmCustomFields
        - tenantName
    InvalidTenantErrorDto:
      type: object
      properties:
        code:
          type: string
          enum:
            - INVALID_TENANT
        message:
          type: string
          example: Invalid tenant {tenant}
        details:
          $ref: '#/components/schemas/InvalidTenantDetailsDto'
      required:
        - code
        - message
        - details
    BrokerageFirmCustomFieldConfigDto:
      type: object
      properties:
        key:
          type: string
        type:
          type: string
          enum:
            - BOOLEAN
            - STRING
            - NUMBER
            - INTEGER
            - ENUM
            - DATE
            - DATETIME
            - PHONE_NUMBER
            - EMAIL
            - REGISTRATION_NUMBER
            - SIRET
            - POSTCODE
            - URL
            - IBAN
            - BIC
        validationRules:
          type: array
          items:
            $ref: '#/components/schemas/ValidationRuleDto'
        integrationKey:
          type: string
      required:
        - key
        - type
    DistributionRequestConfigDto:
      type: object
      properties:
        approveOnSignature:
          type: boolean
        contractConfig:
          $ref: '#/components/schemas/DistributionRequestContractConfigDto'
      required:
        - approveOnSignature
    BrokerageFirmDocumentsConfigDto:
      type: object
      properties:
        brokerageFirmDocumentsList:
          type: array
          items:
            $ref: '#/components/schemas/ConfigBrokerageFirmDocumentDto'
        signatureDocumentsList:
          type: array
          items:
            $ref: '#/components/schemas/ConfigBrokerageFirmDocumentDto'
      required:
        - brokerageFirmDocumentsList
    ReportConfigDto:
      type: object
      properties:
        type:
          type: string
        columnsMapping:
          type: array
          items:
            oneOf:
              - type: object
        availableProductIds:
          description: If not set, all products are available
          type: array
          items:
            type: string
        allowedBusinessRoles:
          description: If not set, no business role can access
          type: array
          items:
            type: string
        automations:
          type: array
          items:
            type: object
      required:
        - type
        - columnsMapping
    AIConfig:
      type: object
      properties:
        classification:
          description: AI classification config
          allOf:
            - $ref: '#/components/schemas/AIClassificationConfig'
        extraction:
          description: AI extraction config
          allOf:
            - $ref: '#/components/schemas/AIExtractionConfig'
        compliance:
          description: AI compliance config
          allOf:
            - $ref: '#/components/schemas/AIComplianceConfig'
        conversationSystemPrompt:
          type: string
          description: System prompt for in-app AI conversation
    InvalidTenantDetailsDto:
      type: object
      properties:
        tenant:
          type: string
      required:
        - tenant
    ValidationRuleDto:
      type: object
      properties:
        option:
          type: string
        value:
          oneOf:
            - type: string
            - type: number
            - type: boolean
            - type: array
              items:
                type: string
      required:
        - option
        - value
    DistributionRequestContractConfigDto:
      type: object
      properties:
        templateId:
          type: string
        signature:
          $ref: '#/components/schemas/ConfigSignedDocumentDto'
        provider:
          type: string
          description: Document generation provider to use for this distribution contract
          enum:
            - CraftMyPdf
            - Carbone
      required:
        - templateId
        - signature
        - provider
    ConfigBrokerageFirmDocumentDto:
      type: object
      properties:
        category:
          type: string
        required:
          type: boolean
        allowMultiple:
          type: boolean
        extractionFields:
          description: Fields to extract from this document category
          type: array
          items:
            $ref: '#/components/schemas/ExtractionFieldConfigDto'
        compliance:
          description: Compliance rules for this document category
          type: array
          items:
            $ref: '#/components/schemas/DocumentComplianceRuleDto'
      required:
        - category
    AIClassificationConfig:
      type: object
      properties:
        enabled:
          type: boolean
          description: Master switch for AI classification
        interfaces:
          description: Per-interface configuration
          allOf:
            - $ref: '#/components/schemas/AIClassificationInterfacesConfig'
      required:
        - enabled
        - interfaces
    AIExtractionConfig:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether AI extraction is enabled
        promptSlug:
          type: string
          description: Extraction prompt template slug
      required:
        - enabled
    AIComplianceConfig:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether AI compliance checking is enabled
      required:
        - enabled
    ConfigSignedDocumentDto:
      type: object
      properties:
        signature:
          type: string
          enum:
            - VIEW
            - SIGN
        signers:
          type: array
          items:
            $ref: '#/components/schemas/SignerConfigItemDto'
        anchor:
          $ref: '#/components/schemas/ConfigSignedDocumentAnchorDto'
        mentions:
          type: array
          items:
            $ref: '#/components/schemas/ConfigSignedDocumentMentionDto'
        texts:
          type: array
          items:
            $ref: '#/components/schemas/ConfigSignedDocumentTextDto'
        checkboxes:
          type: array
          items:
            $ref: '#/components/schemas/ConfigSignedDocumentCheckboxDto'
        type:
          type: string
      required:
        - signature
        - type
    ExtractionFieldConfigDto:
      type: object
      properties:
        key:
          type: string
          description: Field key to extract
        type:
          type: string
          description: Field type (e.g. STRING, DATE, NUMBER)
        sides:
          description: Which sides of a document this field appears on
          type: array
          items:
            type: string
      required:
        - key
        - type
    DocumentComplianceRuleDto:
      type: object
      properties:
        type:
          type: string
          description: Compliance rule type
          enum:
            - READABLE
            - REQUIRED_FIELDS
            - PROMPT
            - FIELD_VALIDATION
        promptSlug:
          type: string
          description: Prompt slug for PROMPT rule type
        requiredFields:
          description: Required field keys for REQUIRED_FIELDS rule type
          type: array
          items:
            type: array
        validations:
          description: Validation rules for FIELD_VALIDATION rule type
          type: array
          items:
            $ref: '#/components/schemas/FieldValidationRuleConfig'
      required:
        - type
    AIClassificationInterfacesConfig:
      type: object
      properties:
        policyholderDashboard:
          $ref: '#/components/schemas/AIClassificationInterfaceConfig'
        brokerageFirmDocuments:
          $ref: '#/components/schemas/AIClassificationInterfaceConfig'
        nonDelegatedDocuments:
          $ref: '#/components/schemas/AIClassificationInterfaceConfig'
    SignerConfigItemDto:
      type: object
      properties:
        recipient:
          type: string
          enum:
            - BROKER
            - WHOLESALE_BROKER
            - USER
            - AUTHOR
        role:
          type: string
        anchor:
          $ref: '#/components/schemas/ConfigSignedDocumentAnchorDto'
        mentions:
          type: array
          items:
            $ref: '#/components/schemas/ConfigSignedDocumentMentionDto'
        texts:
          type: array
          items:
            $ref: '#/components/schemas/ConfigSignedDocumentTextDto'
        checkboxes:
          type: array
          items:
            $ref: '#/components/schemas/ConfigSignedDocumentCheckboxDto'
      required:
        - recipient
    ConfigSignedDocumentAnchorDto:
      type: object
      properties:
        page:
          type: object
        x:
          type: number
        'y':
          type: number
        height:
          type: number
        width:
          type: number
      required:
        - page
        - x
        - 'y'
        - height
        - width
    ConfigSignedDocumentMentionDto:
      type: object
      properties:
        page:
          type: object
        x:
          type: number
        'y':
          type: number
        width:
          type: number
        mention:
          type: string
      required:
        - page
        - x
        - 'y'
        - mention
    ConfigSignedDocumentTextDto:
      type: object
      properties:
        page:
          type: object
        x:
          type: number
        'y':
          type: number
        width:
          type: number
        height:
          type: number
        maxLength:
          type: number
        question:
          type: string
        instruction:
          type: string
        optional:
          type: boolean
      required:
        - page
        - x
        - 'y'
        - width
        - maxLength
        - question
    ConfigSignedDocumentCheckboxDto:
      type: object
      properties:
        page:
          type: object
        x:
          type: number
        'y':
          type: number
        size:
          type: number
        name:
          type: string
        optional:
          type: boolean
        checked:
          type: boolean
      required:
        - page
        - x
        - 'y'
        - size
        - name
    FieldValidationRuleConfig:
      type: object
      properties:
        fieldKey:
          type: string
          description: Extracted field key to validate
        operator:
          type: string
          description: Validation operator
          enum:
            - DATE_IS_AFTER
            - DATE_IS_BEFORE
            - DATE_IS_NOT_OLDER_THAN
            - DATE_IS_NOT_NEWER_THAN
            - STRING_MATCHES
            - STRING_EQUALS
            - STRING_NOT_EMPTY
            - NUMBER_GT
            - NUMBER_LT
            - NUMBER_BETWEEN
        reference:
          description: Reference for date comparison
          allOf:
            - $ref: '#/components/schemas/FieldValidationReferenceDto'
        duration:
          description: Duration for relative date operators
          allOf:
            - $ref: '#/components/schemas/FieldValidationDurationDto'
        pattern:
          type: string
          description: Regex pattern for STRING_MATCHES
        expectedValue:
          type: string
          description: Expected value for STRING_EQUALS (case insensitive)
        numericValue:
          type: number
          description: Numeric value for NUMBER_GT / NUMBER_LT
        numericMin:
          type: number
          description: Min value for NUMBER_BETWEEN
        numericMax:
          type: number
          description: Max value for NUMBER_BETWEEN
        errorMessage:
          type: string
          description: Human-readable failure message
      required:
        - fieldKey
        - operator
    AIClassificationInterfaceConfig:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether AI classification is enabled for this interface
        systemPromptSlug:
          type: string
          description: System prompt template slug
        judgePromptSlug:
          type: string
          description: Judge prompt template slug
        judges:
          description: Judge configurations
          type: array
          items:
            $ref: '#/components/schemas/AIClassificationJudgeConfig'
      required:
        - enabled
        - systemPromptSlug
        - judgePromptSlug
        - judges
    FieldValidationReferenceDto:
      type: object
      properties:
        ref:
          type: string
          description: Reference type
          enum:
            - NOW
            - FIELD
            - LITERAL
        fieldKey:
          type: string
          description: Field key when ref is FIELD
        value:
          type: string
          description: Literal value when ref is LITERAL (e.g. ISO date string)
      required:
        - ref
    FieldValidationDurationDto:
      type: object
      properties:
        amount:
          type: number
          description: Duration amount
        unit:
          type: string
          description: Duration unit
          enum:
            - MONTH
            - DAY
            - YEAR
      required:
        - amount
        - unit
    AIClassificationJudgeConfig:
      type: object
      properties:
        model:
          type: string
          description: Judge model identifier (fast or quality)
        enabled:
          type: boolean
          description: Whether this judge is enabled
      required:
        - model
        - enabled

````