Skip to main content

Security Events

These events track security-related activity including anti-fraud detection, two-factor authentication, and player restrictions.

Related Documentation

Anti-Fraud Events

OnFraudIncidentCreated

Triggered when a new anti-fraud incident is detected.

When it fires:

  • Anti-fraud system detects suspicious activity
  • New incident created based on configured rules
FieldTypeDescription
incidentIdintegerIncident ID
checkTypesIdarrayArray of check type codes
incidentConfidenceintegerConfidence level (0-100%)
createdAtstringCreation timestamp (YYYY-MM-DD HH:MM:SS)
participantsarrayArray of participant objects

Participant Object

FieldTypeDescription
playerIdintegerPlayer ID in EvenBet system
playerConfidenceintegerPlayer's confidence level (0-100%)
externalIdstringExternal system player ID
ipstringPlayer's last known IP address

Example:

{
"incidentId": 12345,
"checkTypesId": [1, 4],
"incidentConfidence": 85,
"createdAt": "2024-01-15 14:30:00",
"participants": [
{
"playerId": 81622,
"playerConfidence": 90,
"externalId": "EXT123",
"ip": "192.168.1.100"
},
{
"playerId": 81623,
"playerConfidence": 80,
"externalId": "EXT456",
"ip": "192.168.1.101"
}
]
}

OnFraudIncidentUpdated

Triggered when an anti-fraud incident is updated.

When it fires:

  • Incident status changed manually
  • Incident details modified
  • New information added to incident
FieldTypeDescription
incidentIdintegerIncident ID
checkTypesIdarrayArray of check type codes
incidentConfidenceintegerConfidence level (0-100%)
updatedAtstringUpdate timestamp
participantsarrayArray of participant objects
statusintegerIncident status code
managerIdinteger/stringAdmin ID who updated, or "System" if automatic

Incident Status Codes

CodeStatusDescription
1OpenNew incident, pending review
2ResolvedIssue addressed
3ClosedIncident closed
4False AlarmDetermined to be false positive
5ReopenedPreviously closed, now reopened
6ExpiredIncident expired without action
7DuplicatedDuplicate of another incident

Example:

{
"incidentId": 12345,
"checkTypesId": [1, 4],
"incidentConfidence": 85,
"updatedAt": "2024-01-15 15:00:00",
"participants": [
{
"playerId": 81622,
"playerConfidence": 90,
"externalId": "EXT123",
"ip": "192.168.1.100"
}
],
"status": 2,
"managerId": 100
}

OnFraudAutoReactionApplied

Triggered when an automatic reaction is applied to players due to a fraud incident.

When it fires:

  • Configured auto-reaction rule triggered
  • Players affected by automatic action
FieldTypeDescription
actionstringAction taken: "kick", "block", "forbid cash", "forbid tournament"
appliedAtstringTimestamp when action was applied
playersIdarrayArray of affected player IDs

Example:

{
"action": "kick",
"appliedAt": "2024-01-15 14:35:00",
"playersId": [81622, 81623]
}

OnFraudIncidentStatusChangedAutomatically

Triggered when an incident status changes automatically.

When it fires:

  • Incident auto-expires
  • System automatically closes or updates incident
FieldTypeDescription
incidentIdintegerIncident ID
previousStatusintegerStatus before change
changedStatusintegerStatus after change
changedAtstringTimestamp of change

Example:

{
"incidentId": 12345,
"previousStatus": 1,
"changedStatus": 6,
"changedAt": "2024-01-22 14:30:00"
}

OnCooperativeBlockUpdated

Triggered when a cooperative (team) block is updated.

When it fires:

  • Block created between two players
  • Block settings modified
FieldTypeDescription
recordIdintegerBlock record ID
playerId1integerFirst player ID
externalId1stringFirst player external ID
externalSystemCode1stringFirst player external system
skinId1integerFirst player skin ID
playerId2integerSecond player ID
externalId2stringSecond player external ID
externalSystemCode2stringSecond player external system
skinId2integerSecond player skin ID
block_cashbooleanBlock cash games between players
block_mttbooleanBlock scheduled tournaments
block_sngbooleanBlock Sit & Go tournaments
block_transferbooleanBlock P2P transfers
externalSessionIdstringExternal session identifier

Example:

{
"recordId": 123,
"playerId1": 1001,
"externalId1": "PLR-1001",
"externalSystemCode1": "SYS",
"skinId1": 0,
"playerId2": 1002,
"externalId2": "PLR-1002",
"externalSystemCode2": "SYS",
"skinId2": 1,
"block_cash": true,
"block_mtt": false,
"block_sng": false,
"block_transfer": false
}

OnCooperativeBlockDeleted

Triggered when a cooperative block is removed.

When it fires:

  • Block between two players deleted
FieldTypeDescription
recordIdintegerBlock record ID
playerId1integerFirst player ID
externalId1stringFirst player external ID
externalSystemCode1stringFirst player external system
skinId1integerFirst player skin ID
playerId2integerSecond player ID
externalId2stringSecond player external ID
externalSystemCode2stringSecond player external system
skinId2integerSecond player skin ID
externalSessionIdstringExternal session identifier

Example:

{
"recordId": 123,
"playerId1": 1001,
"externalId1": "PLR-1001",
"externalSystemCode1": "SYS",
"skinId1": 0,
"playerId2": 1002,
"externalId2": "PLR-1002",
"externalSystemCode2": "SYS",
"skinId2": 1
}

Authentication Events

OnTFAPreLogin

Triggered when a player initiates two-factor authentication.

When it fires:

  • Player enters login credentials
  • 2FA process begins

Required action: Your system should send or prepare an SMS code, email code, or other confirmation method.

FieldTypeDescription
loginstringLogin used for entry
playerIdintegerUser ID (resolved from login)
skinIdintegerUser's skin ID
tfaTypeinteger2FA type code (see below)

2FA Type Codes

CodeTypeDescription
83tfaSMSSMS verification
69tfaEmailEmail verification
71tfaGoogleAuthenticatorGoogle Authenticator
84tfaOneTimePasswordOne-time password
73tfaIdentityVerificationCodeIdentity verification
67tfaExtraClientCheckAdditional client-side verification (e.g., Xpoint)
Type Override

For tfaOneTimePassword, if the server matches the login with an email or phone, it may change the type to tfaEmail or tfaSMS.

Example:

{
"login": "john",
"playerId": 6158,
"skinId": 2,
"tfaType": 83
}

OnTFALogin

Triggered when a player submits their 2FA verification code.

When it fires:

  • Player enters SMS/email code
  • Player submits authenticator code

Required action: Validate the auth field and respond by calling the poker_player_tfa_login_result method.

FieldTypeDescription
loginstringLogin used for entry
playerIdintegerUser ID
skinIdintegerUser's skin ID
tfaTypeinteger2FA type code
authstringVerification code submitted by player

Example:

{
"login": "john",
"playerId": 6158,
"skinId": 2,
"tfaType": 83,
"auth": "1234"
}

OnExternalLogin

Triggered when a skin or player account requires external authentication.

When it fires:

  • Skin configured for external login validation
  • Player account requires external verification

Required action: Validate credentials and respond by calling the poker_external_login_validation_result method.

FieldTypeDescription
loginstringLogin used for entry
passwordstringPassword used for entry
skinKeystringSkin key
ipstringUser's IP address
authstringToken for subsequent logins

Example:

{
"login": "john",
"password": "123456",
"skinKey": "evenbet",
"ip": "127.0.0.1",
"auth": "BDAAB7E52ED69D597CA96CDFFCA68324"
}