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

# Histórico da configuração

> Cada versão de cada configuração, com quem aprovou.



## OpenAPI

````yaml openapi/pt/control.json GET /v1/config/history
openapi: 3.1.0
info:
  title: API de controle da Niadra
  version: '1'
  description: >-
    Tenants, projetos, fontes, chaves, pessoas, configuração e uso. Nunca recebe
    conteúdo de cliente.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/config/history:
    get:
      summary: Histórico da configuração
      description: >-
        Cada versão aplicada da configuração de um espaço, com filtro opcional
        por tipo.


        **Autenticação.** Token de pessoa emitido pelo controle (`Authorization:
        Bearer <JWT>`), com o papel que a operação pede.
      operationId: history_v1_config_history_get
      parameters:
        - in: query
          name: space_id
          required: true
          schema:
            format: uuid
            title: Space Id
            type: string
          description: O espaço cujo histórico você quer.
          example: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23
        - in: query
          name: type
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Type
          description: Só as versões deste tipo de configuração.
          example: webhook-endpoints
        - in: query
          name: limit
          required: false
          schema:
            default: 50
            maximum: 200
            minimum: 1
            title: Limit
            type: integer
          description: Até 200 versões. O padrão é 50.
          example: 50
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/VersionOut'
                title: Response History V1 Config History Get
                type: array
              example:
                - version: 8
                  type: webhook-endpoints
                  diff_id: 0192f7b2-6071-7283-9e94-0f1a2b3c4d56
                  created_at: '2026-09-22T18:25:00Z'
                  document:
                    - endpoint_id: whe_crm
                      url: https://crm.acme.example/hooks/niadra
                      source_id: 0192f0a0-5f60-7172-8d83-9e0f1a2b3c46
                      event_types:
                        - trigger.fired
                        - action.recorded
                      secret_refs:
                        - >-
                          spaces/0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23/webhook/whsec-crm
                      enabled: true
          description: As versões, da mais nova para a mais antiga.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: O pedido não bate com o contrato.
      security:
        - personToken: []
components:
  schemas:
    VersionOut:
      additionalProperties: false
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        diff_id:
          format: uuid
          title: Diff Id
          type: string
        document:
          title: Document
        type:
          title: Type
          type: string
        version:
          title: Version
          type: integer
      required:
        - version
        - type
        - diff_id
        - created_at
        - document
      title: VersionOut
      type: object
    Problem:
      additionalProperties: false
      description: >-
        Detalhes do problema no formato da RFC 9457; `code` vem do catálogo de
        erros versionado.
      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

````