---
title: "Validate a code"
method: POST
path: "/v1/two-fa/verification/{session_id}/check"
tags: ["2FA"]
---

# Validate a code

`POST /v1/two-fa/verification/{session_id}/check`

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

## Path parameters

- `session_id` string, required

## Request body

- TwoFactorVerificationCheckRequest
  - `code` string, required — The code entered by an end user

## Response `200`

Returns the validation result in `is_valid`.

- object
  - `is_valid` boolean, required — Indicates whether the entered code is valid

## Other responses

- `400` — Returns a validation error when a required field is missing or invalid.
- `403` — Request failed. The feature is disabled for your account.

---

[API](https://skmtc.net/wavix/apis/wavix-apis.md) · [All operations](https://skmtc.net/wavix/apis/wavix-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wavix/wavix-apis/versions/b22f170488b6/schema)
