Looking for an API which gives incorrect password attempts

Hi All,

My current application has a use case where we allow 5 incorrect password attempts before the user account is locked. On the 4th incorrect password attempt we give a warning message to the user that you have 1 attempt left before the account will be locked.

How can we do this using OKTA API’s? Is there any API which can give me how many incorrect password attempts made?


There is no API that will return how many attempts a user has made.
Okta does log an event for invalid credentials attempt, but there is no counter associated with it.

If what @erik says is true - I would check to see if there is an event hook associated with that. That way you can setup your own automation via Okta Workflows/any other API automation platfrom