Validate verification 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 the Administrator [64] user role. See Roles.

Path Params
int32
required

The unique ID of the user.

Body Params
string
required

The verification code sent in the send-verification request.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

400

Returned if your request specified invalid parameters, if your request was improperly formatted, or if the verification code was empty, incorrect, or expired.

404

Returned if Tenable Vulnerability Management cannot find the specified user.

Language
Credentials
Header
Request
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/html