Update password via OTP | Sofar EMS DocumentationActivate email OTP POST
Activate TOTP POST
Get active 2FA methods GET
Set or reset email OTP POST
Initiate email OTP challenge POST
Initiate an email address transfer POST
Set or reset TOTP POST
Time until the next email OTP may be generated GET
Send a password reset email POST
Complete an email address transfer PUT
Time until the next recovery code guess GET
Deactivate email OTP DELETE
Deactivate TOTP DELETE
Reset the recovery codes of a user POST
Send a password reset OTP POST
Time until the next TOTP guess GET
Update password via OTP PUT
Update password via sudo token PUT
Check a password reset OTP POST
Complete email OTP challenge POST
Verify a recovery code POST
Verify TOTP code POST
User
Change a user password, authenticating by providing an OTP
TypeScript Definitions
Use the request body type in TypeScript.
curl -X PUT "https://authentication.eniris.be/user/password/otp" \ -H "Content-Type: application/json" \ -d '{ "userEmail": "user@example.com", "otp": "string", "newPassword": "stringst" }'
{
"statusCode": 400,
"error": "Bad Request",
"message": "Password must contain at least one uppercase character"
}
{
"statusCode": 401,
"error": "Unauthorized",
"message": "OTP_INVALID_EXPIRED"
}
userEmail*string
Formatemail
Lengthlength <= 256
newPassword*string
Must contain uppercase, lowercase, and a digit
Match^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).*$
Length8 <= length <= 256