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

# List configuration audit events

> Read the append-only audit trail for configuration and API-key changes.



## OpenAPI

````yaml /openapi.yaml get /v1/configuration/audit
openapi: 3.1.0
info:
  version: 1.0.0
  contact:
    name: Zelinqa
    url: https://docs.zelinqa.ai
  license:
    name: Proprietary — Zelinqa SAS
    identifier: LicenseRef-Zelinqa-Proprietary
  x-contract-status: frozen
  x-jira: NBQ-304
  x-supersedes: openapi/nbq-runtime-v2.openapi.yaml
  x-compatibility-note: docs/api-compat-0.9-to-v1.md
  title: NBQ Engine — API V1
  summary: Public runtime and question-bank configuration contract.
  description: >-
    NBQ Engine's public V1 contract, served from https://api.zelinqa.ai. The
    server resolves the tenant, NBQ instance, and scopes from the API key. Never
    send trusted identity headers from the client. Mutations use
    Idempotency-Key, and existing-session mutations also use state_version.
servers:
  - url: https://api.zelinqa.ai
security:
  - ApiKeyAuth: []
tags:
  - name: sessions
    description: Create, advance, inspect, and close server-side NBQ conversations.
  - name: configuration
    description: Read, edit, audit, compile, and publish a question-bank configuration.
paths:
  /v1/configuration/audit:
    get:
      tags:
        - configuration
      summary: List configuration audit events
      description: Read the append-only audit trail for configuration and API-key changes.
      operationId: listConfigurationAudit
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            minLength: 1
            maxLength: 512
        - name: action
          in: query
          required: false
          schema:
            type: string
            minLength: 1
            maxLength: 160
        - name: resource_type
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/ConfigurationAuditResourceType'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConfigurationAuditPage'
          description: Successful response.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/InsufficientScope'
        '404':
          $ref: '#/components/responses/UnknownConfiguration'
        '422':
          $ref: '#/components/responses/ConfigurationValidationFailed'
components:
  schemas:
    ConfigurationAuditResourceType:
      type: string
      enum:
        - objective
        - sub_objective
        - success_information
        - question
        - configuration
        - api_key
        - nbq
    ConfigurationAuditPage:
      type: object
      additionalProperties: false
      required:
        - request_id
        - events
        - next_cursor
      properties:
        request_id:
          type: string
        events:
          type: array
          items:
            $ref: '#/components/schemas/ConfigurationAuditEvent'
        next_cursor:
          type:
            - string
            - 'null'
    ConfigurationAuditEvent:
      type: object
      additionalProperties: false
      required:
        - id
        - occurred_at
        - action
        - origin
        - actor
        - scopes
        - request_id
        - resource
        - diff
        - details
      properties:
        id:
          type: string
          format: uuid
        occurred_at:
          type: string
          format: date-time
        action:
          type: string
          minLength: 1
          maxLength: 160
        origin:
          type: string
          enum:
            - public_api
            - studio_jwt
        actor:
          $ref: '#/components/schemas/ConfigurationAuditActor'
        scopes:
          type: array
          uniqueItems: true
          items:
            type: string
        request_id:
          type: string
          minLength: 1
          maxLength: 200
        resource:
          $ref: '#/components/schemas/ConfigurationAuditResource'
        diff:
          $ref: '#/components/schemas/ConfigurationAuditDiff'
        details:
          type: object
          additionalProperties: true
    ErrorEnvelope:
      type: object
      additionalProperties: false
      required:
        - code
        - message
        - request_id
        - details
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          minLength: 1
        request_id:
          type: string
          minLength: 1
        details:
          type: object
          additionalProperties: true
    ConfigurationAuditActor:
      type: object
      additionalProperties: false
      required:
        - type
        - id
      properties:
        type:
          type: string
          enum:
            - api_key
            - cognito_user
        id:
          type: string
          minLength: 1
          maxLength: 200
    ConfigurationAuditResource:
      type: object
      additionalProperties: false
      required:
        - type
        - id
      properties:
        type:
          $ref: '#/components/schemas/ConfigurationAuditResourceType'
        id:
          type: string
          minLength: 1
          maxLength: 200
    ConfigurationAuditDiff:
      type: object
      additionalProperties: false
      required:
        - before
        - after
      properties:
        before:
          type:
            - object
            - 'null'
          additionalProperties: true
        after:
          type:
            - object
            - 'null'
          additionalProperties: true
    ErrorCode:
      type: string
      enum:
        - unauthorized
        - insufficient_scope
        - idempotency_contention
        - state_version_conflict
        - idempotency_key_reused
        - unknown_session
        - invalid_previous_turn
        - constraint_no_match
        - invalid_choice
        - compiled_artifact_unavailable
        - configuration_validation_failed
        - compilation_in_progress
        - unknown_configuration
        - unknown_compilation
  responses:
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
      description: Unauthorized.
    InsufficientScope:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
      description: InsufficientScope.
    UnknownConfiguration:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
      description: UnknownConfiguration.
    ConfigurationValidationFailed:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
      description: ConfigurationValidationFailed.
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: NBQ API key

````