Skip to main content
POST
/
v1
/
two-fa
/
verification
/
{session_id}
/
check
Validate a code
curl --request POST \
  --url https://api.wavix.com/v1/two-fa/verification/{session_id}/check \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "123456"
}
'
{
  "is_valid": true
}

Authorizations

Authorization
string
header
required

Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.

Path Parameters

session_id
string
required

2FA Verification ID.

Example:

"2953d4308f2e11ecb75fcdafd6d2d687"

Body

application/json

Code to validate.

code
string
required

The code entered by an end user

Example:

"123456"

Response

Validation results.

is_valid
boolean
required

Indicates whether the entered code is valid

Example:

true