Skip to main content
GET
List Rules

Overview

Retrieves a paginated list of rules with support for filtering by status, category, entity type, tags, and search. Useful for displaying rule libraries, dashboards, and management interfaces.

Endpoint

Authentication

Requires a valid API key in the Authorization header:

Query Parameters

number
default:"1"
Page number for pagination
number
default:"20"
Number of rules per page (max: 100)
string
Filter by status: draft, active, shadow, archived, inactive
string
Filter by category: kyc, kyb, aml, fraud, compliance, custom
boolean
Filter by enabled status: true or false
string
Filter by entity type: person, company, transaction
string
Filter by risk matrix UUID
string
Filter by tags (comma-separated): high-risk,pep,sanctions
Search in rule name and description
string
default:"updatedAt"
Sort field: name, priority, createdAt, updatedAt, score
string
default:"desc"
Sort order: asc or desc

Response

array
Array of rule objects
string
Total number of rules matching filters
number
Current page number
number
Number of items per page
number
Total number of pages

Example Requests

List All Active Rules

Search Rules

Filter by Entity Type and Risk Matrix

Sort by Priority

Filter by Tags

Response Example

Pagination Example

Use Cases

Build Rule Dashboard

Monitor High-Priority Rules

Find Rules by Risk Matrix

Search and Filter

Export Rules for Backup

Best Practices

  1. Use Pagination: Always paginate when fetching large rule sets
  2. Filter Efficiently: Combine filters to narrow results (category + status + enabled)
  3. Cache Results: Cache frequently accessed rule lists
  4. Sort Strategically: Sort by priority for execution order, by updatedAt for recent changes
  5. Monitor Performance: Track rules with high failure rates using stats
  6. Use Tags: Leverage tags for custom organization and filtering

Performance Notes

  • Default page size: 20 rules
  • Maximum page size: 100 rules
  • Average response time: 50-150ms
  • Search indexes: name, description
  • Filter indexes: status, category, enabled, targetEntityType, riskMatrixId

See Also