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
PUT
/user/email

Authorization

accessToken
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

otp*string
Length6 <= length <= 6

Send a password reset email POST

Send a password reset email to an existing user. Wait at least 60 seconds between successive calls

Time until the next recovery code guess GET

Get the minimum time until the next recovery code guess may be made

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://authentication.eniris.be/user/email" \  -H "Content-Type: application/json" \  -d '{    "otp": "string"  }'
null
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Invalid email address"
}
{
  "statusCode": 401,
  "error": "Unauthorized",
  "message": "NO_TOKEN_PROVIDED"
}
{
  "statusCode": 409,
  "error": "Conflict",
  "message": "NEW_EMAIL_ALREADY_IN_USE"
}

Complete an account email transfer

A valid access token (proof of identity) can be obtained via the /accesstoken endpoint. It has a 5 minutes validity period.