Get Tracer running in minutes. This guide walks you through the complete journey, from creating your first rule and spending limit to validating a transaction and reviewing the audit trail.Documentation Index
Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
Use this file to discover all available pages before exploring further.
Before you begin
You need:
- A running Tracer instance
- Credentials for one of the two supported auth modes
cURL. Replace $API_KEY with your API key (single-tenant) or $JWT with your Bearer token (multi-tenant), and https://tracer.lerian.io with your Tracer URL.
Auth mode depends on deployment. Single-tenant deployments use
X-API-Key. Multi-tenant deployments (SaaS / BYOC Multi-Tenant) use Authorization: Bearer <jwt> — the JWT is issued by Access Manager and carries the tenantId claim. In multi-tenant mode, replace every -H "X-API-Key: $API_KEY" in this guide with -H "Authorization: Bearer $JWT". Tracer resolves the tenant from the token automatically — never pass the tenant identifier in any other field. See Multi-tenancy for the model.Step 1: Create a rule
Create a validation rule with a CEL expression. Rules are always created in
DRAFT status — they do not affect transactions until you activate them.
cURL
ruleId. You will use it to activate the rule.
Monetary values (transaction
amount, spending limit maxAmount, and usage counters) are expressed as decimal strings, for example "1500.00" or "10000.00".Step 2: Activate the rule
Activate the rule so it is evaluated against incoming transactions.
cURL
DRAFT to ACTIVE.
Rule lifecycle
| Status | Behavior |
|---|---|
DRAFT | Created but not evaluated during validations |
ACTIVE | Evaluated against every incoming transaction |
INACTIVE | Paused and excluded from evaluation |
INACTIVE rules can transition back to DRAFT for re-editing using POST /v1/rules/{id}/draft.
Step 3: Create a spending limit
Create a spending limit to control transaction amounts by scope and time period. Like rules, limits start in
DRAFT status.
cURL
Limit types
| Type | Reset behavior | Use case |
|---|---|---|
DAILY | Resets at midnight UTC | Daily spending caps |
WEEKLY | Resets weekly | Weekly spending caps |
MONTHLY | Resets on the 1st of each month | Monthly budget control |
CUSTOM | Resets after the configured custom period | Fixed campaign or event windows |
PER_TRANSACTION | No tracking — evaluated per transaction | Per-transaction maximums |
cURL
Step 4: Validate a transaction
Send a transaction to Tracer for real-time validation against all active rules and limits. Tracer does not make external calls during evaluation, so response times stay under 80ms (p99).
cURL
Decision types
| Decision | Meaning | Your system should |
|---|---|---|
ALLOW | All rules passed, all limits within threshold | Proceed with the transaction |
DENY | A deny rule matched or a limit was exceeded | Block the transaction |
REVIEW | A review rule matched, no deny rules triggered | Route to manual review |
Tracer returns decisions as recommendations. Your system is responsible for acting on the decision (block, approve, or queue the transaction).
Transaction types
| Type | Subtypes | Description |
|---|---|---|
CARD | debit, credit, prepaid | Card transactions |
WIRE | domestic, international, ach | Wire transfers |
PIX | instant, scheduled | Brazilian instant payments |
CRYPTO | bitcoin, ethereum, stablecoin | Cryptocurrency transactions |
Step 5: Check limit usage
Monitor how much of a spending limit has been consumed in the current period.
cURL
nearLimit flag activates at 80% utilization, enabling proactive limit management.
Step 6: Review audit events
Every validation decision and configuration change is recorded in an immutable audit log. Query audit events for compliance reporting and debugging.
cURL
Audit event types
| Event type | Description |
|---|---|
TRANSACTION_VALIDATED | A transaction was validated |
RULE_CREATED | A new rule was created |
RULE_ACTIVATED | A rule was activated |
RULE_DEACTIVATED | A rule was deactivated |
LIMIT_CREATED | A new limit was created |
LIMIT_ACTIVATED | A limit was activated |
LIMIT_DEACTIVATED | A limit was deactivated |
Step 7: Verify audit integrity
Verify the cryptographic hash chain of audit events to confirm that no records have been tampered with. This is essential for SOX and GLBA compliance.
cURL
Next steps
Getting started with Tracer
Business overview of the validation lifecycle and core concepts.
Rule engine
Deep dive into CEL expressions and advanced rule configuration.
Spending limits
Configure and manage limits by scope, period, and transaction type.
Error handling
Complete list of error codes and how to resolve them.

