List Rules
API Reference
List Rules
Query and filter rules with pagination β in the gu1 rules engine for compliance and risk detection, with examples for list use cases.
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
Page number for pagination
Number of rules per page (max: 100)
Filter by status:
draft, active, shadow, archived, inactiveFilter by category:
kyc, kyb, aml, fraud, compliance, customFilter by enabled status:
true or falseFilter by entity type:
person, company, transactionFilter by risk matrix UUID
Filter by tags (comma-separated):
high-risk,pep,sanctionsSearch in rule name and description
Sort field:
name, priority, createdAt, updatedAt, scoreSort order:
asc or descResponse
Array of rule objects
Total number of rules matching filters
Current page number
Number of items per page
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
- Use Pagination: Always paginate when fetching large rule sets
- Filter Efficiently: Combine filters to narrow results (category + status + enabled)
- Cache Results: Cache frequently accessed rule lists
- Sort Strategically: Sort by priority for execution order, by updatedAt for recent changes
- Monitor Performance: Track rules with high failure rates using stats
- 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
- Get Rule - Retrieve specific rule details
- Create Rule - Create new rules
- Update Rule - Modify existing rules
- Execute Rule - Test rule execution