v50

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-06-16122182589.7 KB
2FA

Validate a code

Validates the OTP submitted by the end user against the verification identified by session_id.

post/v1/two-fa/verification/{session_id}/check

Path parameters

session_idstring required
Example:2953d4308f2e11ecb75fcdafd6d2d687

The unique ID of the 2FA verification session.

Request body

codestring required

The code entered by an end user

Example request

{
  "code": "123456"
}

Response

Returns the validation result in is_valid.

is_validboolean required

Indicates whether the entered code is valid

Example response

{
  "is_valid": true
}