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

# List changes

> Proposed, approved, rejected and rolled back diffs.



## OpenAPI

````yaml openapi/en/control.json GET /v1/config/diffs
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/diffs:
    get:
      summary: List changes
      description: >-
        The diffs of a space, newest first, optionally filtered by status.


        **Authentication.** Person token issued by the control plane
        (`Authorization: Bearer <JWT>`), with the role the operation needs.
      operationId: list_diffs_v1_config_diffs_get
      parameters:
        - in: query
          name: space_id
          required: true
          schema:
            format: uuid
            title: Space Id
            type: string
          description: The space whose diffs you want.
          example: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23
        - in: query
          name: status
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/DiffStatus'
              - type: 'null'
            title: Status
          description: >-
            Only diffs with this status: `pending`, `proposed`, `applied` or
            `rejected`.
          example: pending
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/DiffOut'
                title: Response List Diffs V1 Config Diffs Get
                type: array
              example:
                - diff_id: 0192f7b2-6071-7283-9e94-0f1a2b3c4d56
                  space_id: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23
                  type: webhook-endpoints
                  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
                  reason: Send trigger firings and agent actions to the CRM
                  status: pending
                  base_version: 7
                  applied_version: null
                  author_id: 0192f0a0-4e5f-7061-9c72-8d9e0f1a2b34
                  author_label: null
                  created_at: '2026-09-22T18:10:00Z'
                  decided_at: null
                  decided_by: null
                  rollback_of: null
          description: The diffs.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - personToken: []
components:
  schemas:
    DiffStatus:
      enum:
        - pending
        - proposed
        - applied
        - rejected
      title: DiffStatus
      type: string
    DiffOut:
      additionalProperties: false
      properties:
        applied_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Applied Version
          description: The version the diff created when it was applied.
        author_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Author Id
        author_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Author Label
          description: Set when a cell proposed the diff, such as `assistant@cell-1`.
        base_version:
          title: Base Version
          type: integer
          description: >-
            The configuration version the diff was written against. A diff
            written against an outdated document is refused at approval.
        created_at:
          format: date-time
          title: Created At
          type: string
        decided_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Decided At
        decided_by:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Decided By
        diff_id:
          format: uuid
          title: Diff Id
          type: string
        document:
          title: Document
        reason:
          title: Reason
          type: string
        rollback_of:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Rollback Of
          description: The diff this one rolled back.
        space_id:
          format: uuid
          title: Space Id
          type: string
        status:
          $ref: '#/components/schemas/DiffStatus'
        type:
          title: Type
          type: string
      required:
        - diff_id
        - space_id
        - type
        - status
        - reason
        - base_version
        - author_id
        - author_label
        - decided_by
        - decided_at
        - applied_version
        - rollback_of
        - created_at
        - document
      title: DiffOut
      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

````