Validate verification code

POST {{baseUrl}}/users/:user_id/two-factor/verify-code

Validate the verification code sent to a phone number. If this request is successful, it enables two-factor authentication for the specified user.

Note: The workflow for two-factor authentication is as follows:

  1. Send a verification code.
  2. Validate the verification code.
  3. Configure two-factor authentication.

Requires ADMINISTRATOR [64] user permissions. See Permissions.

Request Body

{"verification_code"=>"est laboris"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{}