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

# List rule changes

> Every rule change across your organisation. Every recorded change, newest first: when, who (a person, an API key or the system), what kind of change, the version it produced, each field before and after — nested configuration by dotted path, such as `velocity_config.threshold` — the full configuration after the change in `snapshot`, and the reason if one was given. The history is append-only: nothing here can be edited or removed. Filter with `action`, `actorId`, `createdAfter` and `createdBefore`; a date alone as the upper bound includes that whole day.



## OpenAPI

````yaml /openapi/transaction-monitoring.json get /api/v1/rules/history/
openapi: 3.0.3
info:
  title: iDenfy Transaction Monitoring API
  version: v1
  description: >-
    Submit transactions and events for AML monitoring, and read back the alerts,
    cases and reports they produce.
servers:
  - url: https://ivs-tx-monitoring.idenfy.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Ingest
    description: Submit transactions and events for monitoring.
  - name: Transactions
    description: Read back submitted transactions and their rule hits.
  - name: Rules
    description: Detection rules evaluated against every submission.
  - name: Alerts
    description: Alerts opened when a rule matches.
  - name: Investigations
    description: Cases opened from one or more alerts.
  - name: SARs
    description: Suspicious activity reports and their attachments.
  - name: Sanctions screening
    description: Sanctions and PEP screening of transaction parties.
  - name: AML monitoring
    description: Ongoing AML monitoring of screened parties.
  - name: Party suspensions
    description: ''
  - name: Webhooks
    description: Outbound event delivery to your endpoints.
  - name: Custom fields
    description: Your own transaction attributes, declared so rules can match them.
  - name: Reference lists
    description: Named value lists rules can reference.
  - name: Notification rules
    description: Slack and email notifications for alerts.
  - name: Reports
    description: Generated compliance reports.
paths:
  /api/v1/rules/history/:
    get:
      tags:
        - Rules
      summary: List rule changes
      description: >-
        Every rule change across your organisation. Every recorded change,
        newest first: when, who (a person, an API key or the system), what kind
        of change, the version it produced, each field before and after — nested
        configuration by dotted path, such as `velocity_config.threshold` — the
        full configuration after the change in `snapshot`, and the reason if one
        was given. The history is append-only: nothing here can be edited or
        removed. Filter with `action`, `actorId`, `createdAfter` and
        `createdBefore`; a date alone as the upper bound includes that whole
        day.
      operationId: rules_change_log_list
      parameters:
        - in: query
          name: action
          schema:
            type: string
            enum:
              - ACTIVATED
              - ARCHIVED
              - BASELINE
              - CREATED
              - DEACTIVATED
              - DELETED
              - IMPORTED
              - UNARCHIVED
              - UPDATED
          description: |-
            Only changes of this kind

            * `CREATED` - Created
            * `UPDATED` - Updated
            * `ACTIVATED` - Activated
            * `DEACTIVATED` - Deactivated
            * `DELETED` - Deleted
            * `ARCHIVED` - Archived
            * `UNARCHIVED` - Unarchived
            * `IMPORTED` - Imported
            * `BASELINE` - Baseline
        - in: query
          name: actor_id
          schema:
            type: number
          description: Only changes made by this user
        - in: query
          name: created_after
          schema:
            type: string
            format: date-time
          description: Only records created at or after this time
        - in: query
          name: created_before
          schema:
            type: string
          description: >-
            Only records created up to this bound. A date alone (`YYYY-MM-DD`)
            includes the whole of that day; a full timestamp is applied exactly
            as given
        - in: query
          name: rule_id
          schema:
            type: string
            format: uuid
          description: Only changes to this rule
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRuleChangeLogList'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PaginatedRuleChangeLogList:
      type: object
      required:
        - items
        - total
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/RuleChangeLog'
        total:
          type: integer
          description: How many items the list holds
    RuleChangeLog:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        ruleId:
          type: string
          format: uuid
          readOnly: true
          description: Rule the change was made to; kept after deletion
        ruleName:
          type: string
          readOnly: true
          description: Rule name at the time of the change
        version:
          type: integer
          readOnly: true
          description: The rule's version after the change
        action:
          allOf:
            - $ref: '#/components/schemas/RuleChangeLogActionEnum'
          readOnly: true
          description: |-
            What kind of change this was

            * `CREATED` - Created
            * `UPDATED` - Updated
            * `ACTIVATED` - Activated
            * `DEACTIVATED` - Deactivated
            * `DELETED` - Deleted
            * `ARCHIVED` - Archived
            * `UNARCHIVED` - Unarchived
            * `IMPORTED` - Imported
            * `BASELINE` - Baseline
        actorId:
          type: integer
          readOnly: true
          nullable: true
          description: User behind the change, if any
        actorLabel:
          type: string
          readOnly: true
          description: >-
            Who made the change as it read at the time: name, email, key name or
            System
        actorType:
          allOf:
            - $ref: '#/components/schemas/ActorTypeEnum'
          readOnly: true
          description: |-
            Kind of actor behind the change

            * `user` - User
            * `api_key` - API key
            * `system` - System
        changes:
          type: array
          items:
            $ref: '#/components/schemas/RuleFieldChange'
          readOnly: true
        snapshot:
          readOnly: true
          description: Full rule configuration after the change (before it, for a deletion)
        reason:
          type: string
          readOnly: true
          nullable: true
          description: Optional note on why the change was made
        createdAt:
          type: string
          format: date-time
          readOnly: true
      required:
        - action
        - actorId
        - actorLabel
        - actorType
        - changes
        - createdAt
        - id
        - reason
        - ruleId
        - ruleName
        - snapshot
        - version
    RuleChangeLogActionEnum:
      enum:
        - CREATED
        - UPDATED
        - ACTIVATED
        - DEACTIVATED
        - DELETED
        - ARCHIVED
        - UNARCHIVED
        - IMPORTED
        - BASELINE
      type: string
      description: |-
        * `CREATED` - Created
        * `UPDATED` - Updated
        * `ACTIVATED` - Activated
        * `DEACTIVATED` - Deactivated
        * `DELETED` - Deleted
        * `ARCHIVED` - Archived
        * `UNARCHIVED` - Unarchived
        * `IMPORTED` - Imported
        * `BASELINE` - Baseline
    ActorTypeEnum:
      enum:
        - user
        - api_key
        - system
      type: string
      description: |-
        * `user` - User
        * `api_key` - API key
        * `system` - System
    RuleFieldChange:
      type: object
      properties:
        field:
          type: string
          description: >-
            Changed field; nested config by dotted path, e.g.
            velocity_config.threshold
        before:
          nullable: true
          description: Value before the change
        after:
          nullable: true
          description: Value after the change
      required:
        - after
        - before
        - field
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

## Related topics

- [List a rule's changes](https://documentation.idenfy.com/api-reference/transaction-monitoring/rules/list-a-rules-changes.md)
- [List a reference list's changes](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/list-a-reference-lists-changes.md)
- [List rules](https://documentation.idenfy.com/api-reference/transaction-monitoring/rules/list-rules.md)
- [List rule templates](https://documentation.idenfy.com/api-reference/transaction-monitoring/rules/list-rule-templates.md)
- [List notification rules](https://documentation.idenfy.com/api-reference/transaction-monitoring/notification-rules/list-notification-rules.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.