Public
Switch an in-progress login challenge to a different enrolled mechanism.
When a user has more than one method enrolled (see available_mechanisms on the login response) they can switch the active challenge — for example from Totp to Email when they have lost access to their authenticator. Post the current challenge token and the desired mechanism:
{ "challenge_token": "eyJ...", "mechanism": "Email" }
A fresh challenge for that mechanism is returned (and, for Email, a code is sent), in the same shape as the 202 from POST /api/v1/tokens minus two_factor_required. An unrecognized mechanism returns 400 (invalid_mechanism); a mechanism the user has not enrolled returns 400 (not_enrolled). Rate limited to 5 requests per minute (429).
post/api/v1/tokens/two-factor/switch-mechanism
Request
- Base URL: https://go.outseta.com
- URL: https://go.outseta.com/api/v1/tokens/two-factor/switch-mechanism
- Auth: none declared
Query parameters
dataunknown required
Response
The challenge was reissued for the requested mechanism.
Example response
{
"two_factor_required": false,
"two_factor_enrollment_required": false,
"challenge_token": "string",
"mechanism": "string",
"masked_destination": "string",
"expires_in": 0,
"available_mechanisms": [
"string"
],
"recovery_codes_available": false
}Changes
No recorded changes to this operation across all 1 revision of this API.