Unlock user

POST https://app.speybooks.com/api/v1/admin/users/{id}/unlock

Unlock a user account that was locked due to failed login attempts. Sets locked_until = NULL and resets failed_attempts to 0.

Returns 404 if the user does not exist or is not currently locked.

Side Effects

  • Writes USER_UNLOCKED to admin_audit_log

Path parameters

id string required
User ID to unlock.

Response

200 Account unlocked. Failed attempts reset to zero.

Error codes

400 Invalid user ID.
404 User not found or not currently locked.