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

Enrolls a supported Factor for the specified user

Note: All responses return the enrolled Factor with a status of either PENDING_ACTIVATION`` orACTIVE`.

Additional SMS/Call Factor information

Additional WebAuthn Factor information

Enroll WebAuthn response parameters

Additional Custom TOTP Factor information

Enroll Custom TOTP Factor

Servers

Path parameters

Name Type Required Description
userId String Yes

ID of an existing Okta user

Request headers

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

Default value: "application/json"

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
updatePhone Boolean No

If true, indicates that you are replacing the currently registered phone number for the specified user. This parameter is ignored if the existing phone number is used by an activated Factor.

Default value: false

templateId String No

ID of an existing custom SMS template. See the SMS Templates API. This parameter is only used by sms Factors. If the provided ID doesn't exist, the default template is used instead.

activate Boolean No

If true, the factor is immediately activated as part of the enrollment. An activation process isn't required. Currently auto-activation is supported by sms, call, email and token:hotp (Custom TOTP) Factor.

Default value: false

tokenLifetimeSeconds Integer No

Defines how long the token remains valid

Default value: 300

Request body fields

Name Type Required Description
id String No

ID of the Factor

profile Object No

Specific attributes related to the Factor

provider String No

Provider for the Factor

Possible values:

  • "CUSTOM"
  • "RSA"
  • "FIDO"
  • "YUBICO"
  • "SYMANTEC"
  • "OKTA"
  • "DUO"
  • "GOOGLE"
_embedded Object No
created String No

Timestamp when the Factor was enrolled

vendorName String No

Name of the Factor vendor. This is usually the same as the provider except for On-Prem MFA where it depends on administrator settings.

status String No

Status of the Factor

Possible values:

  • "PENDING_ACTIVATION"
  • "ENROLLED"
  • "NOT_SETUP"
  • "EXPIRED"
  • "ACTIVE"
  • "INACTIVE"
  • "DISABLED"
factorType String No

Type of Factor

Possible values:

  • "push"
  • "token:software:totp"
  • "web"
  • "call"
  • "token:hardware"
  • "token:hotp"
  • "u2f"
  • "email"
  • "webauthn"
  • "question"
  • "signed_nonce"
  • "sms"
  • "token"
lastUpdated String No

Timestamp when the Factor was last updated

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.