session_id to a transaction or identity call, FraudEG enriches the risk assessment with signals collected from that session — including device fingerprint, behavioral biometrics, bot likelihood, and whether the device has been seen and trusted before across the FraudEG network. Sessions expire after 30 minutes, so create one at the start of each user flow (login, checkout, onboarding) and attach it to every subsequent API call made within that flow.
Endpoint
Request Headers
Request Body
string
required
The full URL of the page where the session is being initialized (e.g.,
"https://www.yourapp.com/checkout"). FraudEG uses this to contextualize behavioral signals and flag mismatches between the declared URL and the actual browsing context.string
Your internal user ID. Provide this to associate the device session with a known user and link it to their existing behavioral profile and device history.
string
An intent hint that tells FraudEG which fraud model to weight most heavily for this session. Accepted values:
login— User is authenticating into an existing account.checkout— User is completing a purchase flow.onboarding— User is creating a new account.account_change— User is modifying sensitive account details (e.g., password, payout method).
Response Fields
string
Unique session identifier. Pass this value as the
session_id field in POST /v1/transactions/score and POST /v1/identity/verify to attach device intelligence to those calls.string
ISO 8601 timestamp indicating when this session expires. Sessions are valid for 30 minutes from creation. After expiry, create a new session before making further API calls.
string
A persistent identifier for this device, stable across sessions and browser restarts. FraudEG generates this from a combination of hardware and software signals. Use it to track device-level history independently of sessions.
boolean
true if FraudEG has seen this device before across your account and it has a clean history. false for new or previously flagged devices. You can use this value to skip step-up authentication for returning users on trusted devices.Code Examples
Example Response
Pass the
session_id returned by this endpoint in the session_id field of both POST /v1/transactions/score and POST /v1/identity/verify. Without a session ID, those endpoints will score the request without device intelligence signals, which may reduce model accuracy — particularly for detecting account takeover and bot-driven fraud.