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

# Read a configuration

> The current document of one configuration type.



## OpenAPI

````yaml openapi/en/control.json GET /v1/config/{type}
openapi: 3.1.0
info:
  title: Niadra control API
  version: '1'
  description: >-
    Tenants, projects, sources, keys, people, configuration and usage. It never
    receives customer content.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/config/{type}:
    get:
      summary: Read a configuration
      description: >-
        The current document of one configuration type in a space, with its
        version. Version 0 means the type still has its default.


        **Authentication.** Person token issued by the control plane
        (`Authorization: Bearer <JWT>`), with the role the operation needs.
      operationId: config_document_v1_config__type__get
      parameters:
        - in: path
          name: type
          required: true
          schema:
            title: Type
            type: string
          description: >-
            A configuration type from `GET /v1/config/types`, such as `policies`
            or `trigger-rules`.
          example: review-sampling
        - in: query
          name: space_id
          required: true
          schema:
            format: uuid
            title: Space Id
            type: string
          description: The space whose configuration you want.
          example: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentOut'
              example:
                space_id: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23
                type: review-sampling
                version: 7
                document:
                  base_rate: 0.01
                  boosted_rate: 0.1
                  boost_on:
                    - new_source
                    - new_extractor
                    - measure_signal
                    - sensitive
                    - new_trait
                  daily_cap: 500
          description: The document and its version.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - personToken: []
components:
  schemas:
    DocumentOut:
      additionalProperties: false
      properties:
        document:
          title: Document
        space_id:
          format: uuid
          title: Space Id
          type: string
        type:
          title: Type
          type: string
        version:
          title: Version
          type: integer
      required:
        - space_id
        - type
        - version
        - document
      title: DocumentOut
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
  securitySchemes:
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````