ns_access_token cookie or as Authorization: Bearer, and the cookie wins when both are present. During a masquerade session, the masqueraded user is enrolled. The subscriber comes from the token, never from the body. The server checks mfa_passcode against mfa_key before it saves. The enrollment is published to the platform and takes effect once it is applied. A wrong passcode still returns 200, with status error and valid false, so check status rather than the HTTP code. A missing or invalid token returns 401.Authorization: Bearer ********************status: success means it was accepted, and error means a wrong passcode or a failed publish.curl --location 'https://awqacore01.crexendocloud.com/ns-api/v2/oauth/mfaEnrollWithToken' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"mfa_key": "JBSWY3DPEHPK3PXP",
"mfa_vendor": "google",
"mfa_type": "authenticator",
"mfa_passcode": "123456"
}'{
"status": "success",
"message": "MFA enrollment successful",
"enrolled": true,
"apiversion": "46.0.0"
}