Sofar logo
Sofar logo
Api
Activate email OTP POSTActivate TOTP POSTGet active 2FA methods GETSet or reset email OTP POSTInitiate email OTP challenge POSTInitiate an email address transfer POSTSet or reset TOTP POSTTime until the next email OTP may be generated GETSend a password reset email POSTComplete an email address transfer PUTTime until the next recovery code guess GETDeactivate email OTP DELETEDeactivate TOTP DELETEReset the recovery codes of a user POSTSend a password reset OTP POSTTime until the next TOTP guess GETUpdate password via OTP PUTUpdate password via sudo token PUTCheck a password reset OTP POSTComplete email OTP challenge POSTVerify a recovery code POSTVerify TOTP code POST
User
POST
/user/password/reset/validate

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

email*string
Formatemail
Lengthlength <= 256
otp*string
Length6 <= length <= 6

Response Body

application/json

Update password via sudo token PUT

Change a user password, authenticating by providing the old password and a sudo or access token (in 2FA is disabled)

Complete email OTP challenge POST

Providing an access token or a partial auth token and an email OTP, acquire a sudo token or a sudo, refresh and access token respectively

application/json

curl -X POST "https://authentication.eniris.be/user/password/reset/validate" \  -H "Content-Type: application/json" \  -d '{    "email": "user@example.com",    "otp": "string"  }'
null
{
  "statusCode": 401,
  "error": "Unauthorized",
  "message": "OTP_INVALID_EXPIRED"
}

Check a password reset OTP, to see if it is valid

An email address-password combination for which the validity must be checked