Get Rule
API Reference
Get Rule
Retrieve details of a specific rule by ID β in the gu1 rules engine for compliance and risk detection, with examples for get use cases.
GET
Get Rule
Overview
Retrieves complete information about a specific rule, including its conditions, actions, execution statistics, and version history.Endpoint
Authentication
Requires a valid API key in the Authorization header:Path Parameters
string
required
UUID of the rule to retrieve
Response
string
UUID of the rule
string
Your organization ID
string
Rule name
string
Rule description
string
Rule category (kyc, kyb, aml, fraud, compliance, custom)
string
Current status (draft, active, shadow, archived, inactive)
boolean
Whether the rule is enabled
number
Rule priority (1-100)
number
Risk score assigned when rule matches
object
Complete condition structure with nested logic
string
JSON string representation of conditions (for storage)
array
Array of actions to execute when rule matches
object
Rule scope configuration (countries, entity types, temporal windows)
array
Array of entity types the rule applies to
string
Evaluation mode (sync or async)
string
Associated risk matrix UUID (if any)
number
Current version number
string
UUID of the previous version (if any)
array
Array of tags for organization
object
Execution statistics (executions, successes, failures)
string
User ID who created the rule
string
ISO timestamp of creation
string
User ID who last updated the rule
string
ISO timestamp of last update
Example Requests
Response Example
Error Responses
404 Not Found
401 Unauthorized
403 Forbidden
Use Cases
Display Rule Details in UI
Monitor Rule Performance
Clone Rule Configuration
Export Rule Configuration
Best Practices
- Cache Rule Data: Cache frequently accessed rules to reduce API calls
- Monitor Statistics: Regularly check
statsobject for performance insights - Track Versions: Use
versionandpreviousVersionIdfor audit trails - Check Status: Always verify
enabledandstatusbefore execution - Use Tags: Leverage tags for organization and filtering
See Also
- List Rules - Query and filter rules
- Update Rule - Modify rule configuration
- Execute Rule - Test rule against entities
- Create Rule - Create new rules