POST /api/v1/users/{userId}/factors/{factorId}/verify

Verifies an OTP for a factor. Some factors (call, email, push, sms, u2f, and webauthn) must first issue a challenge before you can verify the factor. Do this by making a request without a body. After a challenge is issued, make another request to verify the factor.

Notes:

Servers

Path parameters

Name Type Required Description
userId String Yes

ID of an existing Okta user

factorId String Yes

ID of an existing user factor

Request headers

Name Type Required Description
X-Forwarded-For String No

Public IP address for the user agent

Content-Type String Yes The media type of the request body.

Default value: "application/json"

User-Agent String No

Type of user agent detected when the request is made. Required to verify push factors.

Accept-Language String No

An ISO 639-1 two-letter language code that defines a localized message to send. This parameter is only used by sms factors. If a localized message doesn't exist or the templateId is incorrect, the default template is used instead.

Query parameters

Name Type Required Description
templateId String No

ID of an existing custom SMS template. See the SMS Templates API. This parameter is only used by sms factors.

tokenLifetimeSeconds Integer No

Defines how long the token remains valid

Default value: 300

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.