Skip to content

Verify OTP

POST/web/v1/users/self/security/mfa/otp/verify JWT

Verifies the OTP setup by validating a code from the user's authenticator app. On success, the OTP method is automatically enabled. Returns 204 No Content.

Required Headers

HeaderExample ValueDescription
Content-Typeapplication/jsonRequest content type
Acceptapplication/jsonExpected response type
X-Client-HashClient device fingerprint
Accept-Languageen, zh, zh-Hant, ja, viResponse language (default: en)
AuthorizationBearerJWT access token

Request Parameters

NameTypeRequiredInDescription
requestObjectRequiredbodyOtpVerifyRequest object (see request body schema)

Success Response

No Content 204

Error Responses

Unauthorized 401
{
  "success": false,
  "code": "4010",
  "message": "Invalid or expired token"
}

Notes

  • Returns HTTP 204 No Content on success.
  • The OTP setup session is valid for a limited time.
  • On successful verification, the OTP MFA method is automatically enabled.
  • If this is the first MFA method, account-level MFA is automatically enabled.
  • Rate limited to 5 requests per 300-second window.

SlaunchX Internal Documentation