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

# Export rule changes as CSV

> Downloads the same history, with the same filters, as a CSV file: one line per changed field, with the timestamp in UTC, the rule, version, action, who, the field, its value before and after, and the reason. A change with no field-level diff — a creation, a deletion — is one line with an empty field. Cells a spreadsheet would run as a formula are prefixed with an apostrophe. Refused with `400` rather than truncated past 50000 lines. `exportFormat` is `csv`. Every export is itself recorded in the audit log, with who took it and the filter used.



## OpenAPI

````yaml /openapi/transaction-monitoring.json get /api/v1/rules/history/export/
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/export/:
    get:
      tags:
        - Rules
      summary: Export rule changes as CSV
      description: >-
        Downloads the same history, with the same filters, as a CSV file: one
        line per changed field, with the timestamp in UTC, the rule, version,
        action, who, the field, its value before and after, and the reason. A
        change with no field-level diff — a creation, a deletion — is one line
        with an empty field. Cells a spreadsheet would run as a formula are
        prefixed with an apostrophe. Refused with `400` rather than truncated
        past 50000 lines. `exportFormat` is `csv`. Every export is itself
        recorded in the audit log, with who took it and the filter used.
      operationId: rules_change_log_export
      parameters:
        - in: query
          name: export_format
          schema:
            enum:
              - csv
            type: string
            default: csv
            minLength: 1
          description: '* `csv` - csv'
      responses:
        '200':
          content:
            text/csv:
              schema:
                type: string
                format: binary
          description: ''
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

## Related topics

- [Export a rule's changes as CSV](https://documentation.idenfy.com/api-reference/transaction-monitoring/rules/export-a-rules-changes-as-csv.md)
- [Transaction Monitoring Dashboard: Detection Rules](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/rules.md)
- [List a rule's changes](https://documentation.idenfy.com/api-reference/transaction-monitoring/rules/list-a-rules-changes.md)
- [List rule changes](https://documentation.idenfy.com/api-reference/transaction-monitoring/rules/list-rule-changes.md)
- [Reviewing Risk Assessment Results](https://documentation.idenfy.com/guides/dashboard/risk/reviewing-the-risk-assessment-results.md)


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