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.sandbox.lerian.net 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
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
Activate the limit the same way you activated the rule:
cURL
Step 4: Validate a transaction
Send a transaction to Tracer for real-time validation against the rules and limits that apply to it.
cURL
Decision types
Tracer returns decisions as recommendations. Your system is responsible for acting on the decision (block, approve, or queue the transaction).
Transaction types
transactionType accepts only the four values above. subType is a free-form string (up to 50 characters, normalized to lowercase) — the subtypes listed are common examples, not a closed list.
Step 5: Check limit usage
Review a limit’s cumulative consumption. For the consumption behind a single decision, read
limitUsageDetails on the POST /v1/validations response.
cURL
currentUsage here adds up the usage counters recorded for the limit, across periods and scopes.
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
This table shows the most common event types. For the complete list — including update, delete, draft, and reservation lifecycle events — see Audit and compliance.
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.

