Skip to main content
POST
Validate a code

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

The unique ID of the 2FA verification session.

Example:

"2953d4308f2e11ecb75fcdafd6d2d687"

Body

application/json

OTP to validate.

code
string
required

The code entered by an end user

Example:

"123456"

Response

Returns the validation result in is_valid.

is_valid
boolean
required

Indicates whether the entered code is valid

Example:

true