User
Authorization
accessToken AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
otp*string
Length
6 <= length <= 6application/json
application/json
application/json
application/json
curl -X POST "https://authentication.eniris.be/user/2fa/email-otp/enable" \ -H "Content-Type: application/json" \ -d '{ "otp": "string" }'{
"recoveryCodes": [
"string"
]
}{
"statusCode": 400,
"error": "Bad Request",
"message": "Invalid email address"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "NO_TOKEN_PROVIDED"
}{
"statusCode": 409,
"error": "Conflict",
"message": "EMAIL_OTP_UNINITIALIZED"
}Activate email OTP after it was initialized by providing a received OTP, enabling it as a 2FA method
A valid access token (proof of identity) can be obtained via the /accesstoken endpoint. It has a 5 minutes validity period.