Skip to main content
GET
List rule templates

Authorizations

X-API-Key
string
header
required

Response

200 - application/json
id
string<uuid>
required
read-only

Primary key

partnerId
integer
required
read-only
partnerInSandbox
boolean
required
read-only

Whether the rule's partner is in the sandbox, where rules cannot be archived

name
string
required
read-only

Human-readable rule name

description
string | null
required
read-only

Free-form description of what the rule detects

sqlQuery
string
required
read-only

Bare WHERE-clause fragment for single rules; auto-summary text for velocity rules

module
enum<string>
required

Ingest surface this rule evaluates against

  • BANK_PAYMENT - Bank Payment
  • CREDIT_CARD - Credit Card
  • CRYPTO_TRANSFER - Crypto Transfer
  • CUSTOM_EVENT - Custom Event
  • ALL - All
Available options:
ALL,
BANK_PAYMENT,
CREDIT_CARD,
CRYPTO_TRANSFER,
CUSTOM_EVENT
severity
enum<string>
required

Severity copied onto matches

  • CRITICAL - Critical
  • HIGH - High
  • MEDIUM - Medium
  • LOW - Low
Available options:
CRITICAL,
HIGH,
MEDIUM,
LOW
status
enum<string>
required

Lifecycle state of the rule

  • DRAFT - Draft
  • ACTIVE - Active
  • INACTIVE - Inactive
  • ARCHIVED - Archived
Available options:
DRAFT,
ACTIVE,
INACTIVE,
ARCHIVED
version
integer
required
read-only

Bumped on every update via Rule.apply_update()

isSystem
boolean
required
read-only

True for partner-seeded starter rules

createdBy
integer
required
read-only

Unique identifier of the user

riskScore
integer
required
read-only

Risk score copied onto matching alerts (0-100)

startingTier
integer
required
read-only

Tier level alerts from this rule open at

outcomeStatus
enum<string>
required

What a match does: FLAGGED (review, not held), BLOCKED (held), REJECTED (refused, no alert) or SUSPEND_PROFILE (held, and the customer suspended)

  • FLAGGED - Flagged
  • BLOCKED - Blocked
  • REJECTED - Rejected
  • SUSPEND_PROFILE - Suspend profile
Available options:
FLAGGED,
BLOCKED,
REJECTED,
SUSPEND_PROFILE
blocksTransaction
boolean
required
read-only

True when outcome_status holds the payment (BLOCKED or SUSPEND_PROFILE). Read-only: set it through outcome_status, which this field mirrors

testPayload
any | null
required
read-only

Saved sample payload used by the rule test/sandbox endpoint

ruleType
enum<string>
required

Evaluation mechanism for this rule

  • SINGLE - Single
  • VELOCITY - Velocity
  • BEHAVIOURAL - Unusual behaviour
Available options:
SINGLE,
VELOCITY,
BEHAVIOURAL
velocityConfig
any | null
required
read-only

Velocity window config: metric/field/group_by_fields/window/threshold. group_by_fields is an ordered 1-6 element allow-listed list; group_by mirrors group_by_fields[0] and is maintained for backward compatibility

behaviourConfig
any | null
required
read-only

Unusual-behaviour config: how this transaction is compared against the party's own history. Keyed by behaviour_type — DEVIATION carries observation/baseline_metric/deviation_type, NOVELTY carries novel_attribute; both carry subject_fields, the window and min_baseline_count. Separate from velocity_config because the two shapes share only filter_sql and the comparator, and a reader could not tell them apart without first consulting rule_type

createdAt
string<date-time>
required
read-only
updatedAt
string<date-time>
required
read-only
hitCount
integer
required
read-only

Alerts this rule has produced, test-transaction firings included

testHitCount
integer
required
read-only

How many of hit_count came from test transactions rather than live traffic

lastTriggeredAt
string<date-time> | null
required
read-only

When the rule last produced an alert

evaluationCount
integer
required
read-only

Times this rule has been evaluated against a transaction since counters_reset_at

noOpinionCount
integer
required
read-only

Times this rule could reach no verdict because the party had too little history. Only behavioural rules can produce this; a threshold rule always has an opinion

noOpinionRate
number<double>
required
read-only

Share of evaluations this rule reached no verdict on, or null below a usable sample. Only behavioural rules can be non-null

countersResetAt
string<date-time> | null
required
read-only

When evaluation_count/no_opinion_count last started from zero. Reset whenever the config changes, so the counters describe the rule as it is now rather than as it once was

referencedLists
object[]
required
read-only

Reference lists the rule tests against with IN LIST, as {id, name, valueType}; id is null for a list that no longer exists, which makes the rule fail on every transaction