MFA User API provides a way to enroll, activating and resetting/revoking users for any available 2nd Factor.
POST /api/v1/users/{userId}/factors
POST /api/v1/users/{userId}/factors/{factorId}/lifecycle/activate
Parameter
Description
Param Type
DataType
Required
Default
userId
User Id of the User
URL
String
Yes
factorId
Id of the User Factor
URL
String
Yes
[Activation Response] (https://gist.github.com/srinivasanagandla-okta/66edede6f7c51f7973fe#response-parameters )
Notes:
_links will be populated with "self", "activate","user", "provider", "barcode", "appStore" links
_embedded will be populated with "activation" object
[Activation Failure]
POST /api/v1/users/{userId}/factors/{factorId}/lifecycle/activate
Parameter
Description
Param Type
DataType
Required
Default
userId
Id of the User
URL
String
Yes
factorId
Id of the User Factor
URL
String
Yes
activationCode1
Activation Code from the User
Body
String
Yes
activationCode2
Activation Code2 from the User
Body
String
Optional
[Activation Response] (https://gist.github.com/srinivasanagandla-okta/66edede6f7c51f7973fe#response-parameters )
Notes:
_links will be populated with "self", "activate","user", "provider", "barcode", "appStore" links
_embedded will be populated with "activation" object
[Activation Failure]
Get/Poll Factor Information
GET /api/v1/users/{userId}/factors/{factorId}
Parameter
Description
Param Type
DataType
Required
Default
userId
Id of the User
URL
String
Yes
factorId
Id of the User Factor
URL
String
Yes
Same as this ==> [Factor Information] (https://gist.github.com/srinivasanagandla-okta/66edede6f7c51f7973fe#response-parameters )
POST /api/v1/users/{userId}/factors/{factorId}/lifecycle/deactivate
Parameter
Description
Param Type
DataType
Required
Default
userId
User Id of the User
URL
String
Yes
factorId
Id of the User Factor
URL
String
Yes
Parameter
Description
Param Type
DataType
Required
Default
id
Id of the User Factor
Body
String
Yes
status
Status of the Factor
Body
Factor Status
Yes
DELETED
POST /api/v1/users/{userId}/factors/{factorId}/sync
Parameter
Description
Param Type
DataType
Required
Default
factorId
Id of the User Factor
Body
String
Yes
passCode1
PassCode1 to sync
Body
String
Yes
passCode2
PassCode2 to sync
Body
String
Yes
passCode3
PassCode3 to sync
Body
String
Yes
Parameter
Description
Param Type
DataType
Required
Default
factorId
Id of the User Factor
Body
String
Yes
syncStatus
Status of the Sync
Body
String
Yes
SYNC_PENDING