Skip to main content
POST
Record a security event

Authorizations

Authorization
string
header
required

API token authentication using format <api token id>:<api client secret>

Query Parameters

customerId
string
required

The unique identifier of the customer the security event is recorded for.

Body

application/json

Records a client-side security event for the customer so Grid can maintain the customer's login-security state (SCA session revocation and failed-login lockout).

eventType
enum<string>
required

The security event to record:

Available options:
RESET_PASSWORD_COMPLETED,
FAILED_LOGIN_ATTEMPT
Example:

"FAILED_LOGIN_ATTEMPT"

Response

Event recorded; the customer's resulting login-security state is returned (including any lockout).

The customer's login-security state after recording the event, so the integrator can surface a lockout to the end user.

eventType
enum<string>
required

The event that was recorded.

Available options:
RESET_PASSWORD_COMPLETED,
FAILED_LOGIN_ATTEMPT
Example:

"FAILED_LOGIN_ATTEMPT"

suspended
boolean
required

Whether the customer's login is currently suspended (locked with no automatic expiry). A suspended customer must go through a password reset (RESET_PASSWORD_COMPLETED) to clear the lockout.

failedAttempts
integer
required

The customer's current cumulative failed-login count.

Example:

5

lockedUntil
string<date-time> | null

When the customer may attempt to log in again, if temporarily locked. Null when not locked, or when suspended is true (no automatic expiry).

Example:

"2025-10-03T12:15:00Z"