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
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, inactivestring
Filter by category:
kyc, kyb, aml, fraud, compliance, customboolean
Filter by enabled status:
true or falsestring
Filter by entity type:
person, company, transactionstring
Filter by risk matrix UUID
string
Filter by tags (comma-separated):
high-risk,pep,sanctionsstring
Search in rule name and description
string
default:"updatedAt"
Sort field:
name, priority, createdAt, updatedAt, scorestring
default:"desc"
Sort order:
asc or descResponse
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
- 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