Skip to content

Get login attempts

GET
/api/mfa/login-attempts
curl --request GET \
--url http://localhost:3001/api/mfa/login-attempts \
--header 'Authorization: <Authorization>'

Retrieve recent login attempts for the authenticated user

OK

Media typeapplication/json
object
attempts
Array<object>
object
created_at
string
failure_reason
string
ip_address
string
success
boolean
user_agent
string
success
boolean
total
integer
Examplegenerated
{
"attempts": [
{
"created_at": "example",
"failure_reason": "example",
"ip_address": "example",
"success": true,
"user_agent": "example"
}
],
"success": true,
"total": 1
}

Unauthorized

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Internal Server Error

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}