Turn on Multi-Factor Authentication for Signing In

Turn on Multi-Factor Authentication for Signing In

This endpoint activates Multi-Factor Authentication for a user's account sign-in flow. Once enabled, the user must complete a second verification step — via SMS short code, a time-based one-time password (TOTP) app, or a legacy TOTP method — on every subsequent login. Activating MFA significantly reduces the risk of unauthorized account access.

Endpoint

POST /settings/MfaSignIn

Authentication

Bearer token required. Obtain via:

POST https://api.banking.netevia.dev/api/auth/v2

Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.

When to use

Call this endpoint when a user opts into MFA from their account security settings. It should be triggered after the user selects their preferred second-factor method and, where applicable, has provided and verified their phone number or email address. This is a one-time activation call; subsequent logins will automatically require the MFA step once enabled.

Query Parameters

ParameterTypeRequiredDescription
typestring (enum)NoThe MFA method to enable. Accepted values: ShortMessageCode (SMS one-time code), TimeBasedCode (TOTP authenticator app), LegacyTimeBasedCode (legacy TOTP). Defaults to the account's configured method if omitted.

Response

200 OK

MFA has been successfully enabled for the user's account. The response confirms the activation.

{
  "success": true,
  "message": "Multi-Factor Authentication has been enabled for sign-in."
}

Error Codes

CodeWhen it happens
400Invalid type value supplied, or required supporting data (e.g., phone number for ShortMessageCode) is missing or invalid
401Bearer token is missing, expired, or invalid
403Insufficient permissions to modify account security settings
404User account not found
500Internal server error while enabling MFA

Common Mistakes

  • Passing an unrecognized string for type — only ShortMessageCode, TimeBasedCode, and LegacyTimeBasedCode are valid values; any other value returns 400.
  • Calling this endpoint without first ensuring a verified phone number is on file when using ShortMessageCode; the platform requires a validated destination before MFA can be activated via SMS.
  • Using an expired Bearer token — tokens last only 10 minutes; refresh via POST /api/auth/refresh before making this call.
  • Calling this endpoint multiple times unnecessarily; if MFA is already enabled, verify the current state with GET /settings/MfaSignIn (or equivalent status endpoint) before re-activating.

Related Endpoints

  • POST /api/auth/v2 — Obtain a Bearer token to authenticate API requests
  • POST /api/auth/refresh — Refresh an expiring Bearer token
  • POST /settings/MfaTransaction — Enable MFA for individual transactions (separate from sign-in MFA)

Example

curl -X POST "https://api.banking.netevia.dev/settings/MfaSignIn?type=ShortMessageCode" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"
Query Params
string
enum
Allowed:
Body Params
string
required
length ≥ 1
Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Response
200

Success

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here!