Skip to main content

The SecurityEvent object

Represents a security-related event in the audit log. Security events track authentication attempts, configuration changes, and suspicious activities for compliance and investigation purposes.

Fields

FieldTypeDescription
id
REQUIRED
stringUnique identifier for the event
merchantId
REQUIRED
stringID of the merchant this event relates to
type
REQUIRED
SecurityEventTypeType of security event SecurityEventType
severity
REQUIRED
'info'| 'warning'| 'critical'Severity level of the event
description
REQUIRED
stringHuman-readable description of the event
ipAddress
OPTIONAL
stringIP address associated with the event
userAgent
OPTIONAL
stringUser agent string from the request
userId
OPTIONAL
stringID of the user who triggered the event
metadata
OPTIONAL
Record<string, unknown>Additional event-specific data
createdAt
REQUIRED
stringISO 8601 timestamp when the event occurred

Example

{
"id": "obj_1a2b3c",
"merchantId": "merchant_1a2b3c",
"type": "login_success",
"severity": "info",
"description": "string",
"ipAddress": "string",
"userAgent": "string",
"userId": "user_1a2b3c",
"createdAt": "2026-01-15T09:30:00Z"
}