Event Types
AntifraudAI supports three event types, each designed for a distinct category of user action. Transaction events represent financial or payment actions — a card charge, a bank transfer, a crypto withdrawal. Transaction events carry payment-specific fields likeamount, currency, payment_method, and billing address information. They are typically screened at the moment of authorization, before funds move.
User events capture account-level lifecycle actions: login attempts, new account registrations, password resets, email or address changes, and similar identity actions. Screening user events lets AntifraudAI build a behavioral baseline for each user over time and detect account takeover attempts early.
Custom events are fully flexible and let you define any action that matters to your business — promo code redemptions, referral link clicks, API key generation, content publishing, or anything else. Custom events accept arbitrary metadata, so you can include whatever context is relevant to your detection logic.
Core Event Fields
The following fields are accepted across event types. Including as many as possible improves scoring accuracy.Signals
Signals are computed automatically by AntifraudAI during event enrichment — you don’t define them, you receive them. Each detected signal is returned in thesignals array of the API response and contributes to the event’s risk score.
Signals are purely informational in the API response — they tell you why a score is high, but they don’t directly determine the decision. That mapping is handled by the ML models and your configured rules.
Enriching Events
Metadata
Themetadata field accepts any valid JSON object and is your escape hatch for business-specific context that doesn’t fit the standard schema. For example:
metadata.* field path — for example, metadata.account_tier eq premium — giving you fine-grained control without modifying your core event schema.
