Complete a pending login with a code or recovery code
const url = 'https://example.com/v1/auth/totp/challenge';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"code":"example","mfa_token":"example","recovery_code":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/auth/totp/challenge \ --header 'Content-Type: application/json' \ --data '{ "code": "example", "mfa_token": "example", "recovery_code": "example" }'Completes a primary-verified pending login with an authenticator code or a single-use recovery code. Wrong codes are throttled; successful proof and session issuance are transactional.
Authorizations
Section titled “ Authorizations ”- None
Request Body required
Section titled “ Request Body required ”Responses
Section titled “ Responses ”OK
object
Opaque session token (olvs_…)
object
Example generated
{ "expires_at": "2026-04-15T12:00:00Z", "session_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "token": "example"}Request refused
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Request refused
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Request refused
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Request refused
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Request refused
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Request refused
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Request refused
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}